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][TSVB] Functional tests for converting of Top N. #143181

Conversation

VladLasitsa
Copy link
Contributor

@VladLasitsa VladLasitsa commented Oct 12, 2022

Summary

Completes part of #138236

  • Static value (reference lines/formula/static value column for different visualizations)
  • Count
  • Metric with source field
  • Sibling pipeline
  • Parent pipeline
  • Not supported aggregations
  • Invalid aggregations
  • Last value mode

Ran it 100 times - https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1422 - it was successful

@VladLasitsa VladLasitsa self-assigned this Oct 12, 2022
@VladLasitsa VladLasitsa added Feature:TSVB TSVB (Time Series Visual Builder) release_note:skip Skip the PR/issue when compiling release notes Feature:Lens backport:skip This commit does not require backporting v8.6.0 Team:Visualizations Visualization editors, elastic-charts and infrastructure test_xpack_functional labels Oct 12, 2022
@VladLasitsa VladLasitsa marked this pull request as ready for review October 12, 2022 15:03
@VladLasitsa VladLasitsa requested a review from a team as a code owner October 12, 2022 15:03
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors)

@VladLasitsa VladLasitsa requested a review from flash1293 October 12, 2022 15:03
Copy link
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

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

LGTM, one nit and one question but no blockers

it('should not allow converting of not valid panel', async () => {
await visualBuilder.selectAggType('Max');
await header.waitUntilLoadingHasFinished();
const canEdit = await testSubjects.exists('visualizeEditInLensButton');
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we have it in other places too, but could we move this to the visualize page as it's such a common call?

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 moved this part and also click by this button in visualize page. Updated all existing functional tests which used this.

it('should preserve query in lens', async () => {
let button = await testSubjects.find('visualizeEditInLensButton');
await button.click();
await lens.waitForVisualization('xyVisChart');
Copy link
Contributor

Choose a reason for hiding this comment

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

why going to Lens, then back, then setting the query instead of directly setting it?

Copy link
Contributor Author

@VladLasitsa VladLasitsa Oct 14, 2022

Choose a reason for hiding this comment

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

You are right, removed this part

@VladLasitsa
Copy link
Contributor Author

@elasticmachine merge upstream

@VladLasitsa
Copy link
Contributor Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

cc @VladLasitsa

@VladLasitsa VladLasitsa merged commit 1055ec1 into elastic:main Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Lens Feature:TSVB TSVB (Time Series Visual Builder) release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure test_xpack_functional v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants