Skip to content

[Lens][TSVB] Functional tests for converting of Top N.#143181

Merged
VladLasitsa merged 11 commits intoelastic:mainfrom
VladLasitsa:navigate_to_lens_timeseries_top_n_functional_tests
Oct 14, 2022
Merged

[Lens][TSVB] Functional tests for converting of Top N.#143181
VladLasitsa merged 11 commits intoelastic:mainfrom
VladLasitsa:navigate_to_lens_timeseries_top_n_functional_tests

Conversation

@VladLasitsa
Copy link
Copy Markdown
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 PR does not require backporting v8.6.0 Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@VladLasitsa
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Copy Markdown

💚 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 PR 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 Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// test_xpack_functional v8.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants