Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Lens] adding some functional tests #77863

Merged
merged 5 commits into from
Sep 18, 2020

Conversation

mbondyra
Copy link
Contributor

@mbondyra mbondyra commented Sep 18, 2020

Summary

Another part of #72585

This PR adds the following tests:

  • filtering of the pie chart in dashboard
  • removing all the layers
  • configuring filters aggregation
  • editing options of configured dimension:
    • type of operation
    • the field
    • active color
    • dimension label
    • format
    • missing Values for line chart

I also removed the field testing the saved visualisation as it repeats the logic of 'should transition from metric to table to metric'.

@mbondyra mbondyra added Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.0.0 Feature:Lens v7.10.0 labels Sep 18, 2020
@mbondyra mbondyra force-pushed the lens/functional_tests_debt branch from 6ed291a to 66a9f75 Compare September 18, 2020 13:23
@mbondyra mbondyra marked this pull request as ready for review September 18, 2020 13:33
@mbondyra mbondyra requested a review from a team September 18, 2020 13:33
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@mbondyra mbondyra added the release_note:skip Skip the PR/issue when compiling release notes label Sep 18, 2020
@@ -40,18 +40,21 @@ export default function ({ getPageObjects, getService }) {
operation: 'date_histogram',
field: '@timestamp',
});
await PageObjects.lens.closeDimensionEditor();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect you had to put these because the flyout does not close on outside click?

Copy link
Contributor Author

@mbondyra mbondyra Sep 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually removed the line that was closing the dimension from the configureDimension method:
https://github.com/elastic/kibana/pull/77863/files#diff-593978ac44529e71d36a3c038cb91c00R114

I was having doubts here – I've done it because in two cases here and here I want to keep modifying the dimension after configuring it so I've decided to not close it inside the method.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the configureDimention could have a params object as argument to disable the closing of the panel? This will reduce a bit the code here and you would be still able to do things manually

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll merge it for now so the branch is not stale during my time off. Will address this in the next PR.

Copy link
Contributor

@dej611 dej611 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

page load bundle size

id value diff baseline
lens 1.1MB +686.0B 1.1MB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Lens release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants