Skip to content

Conversation

@nreese
Copy link
Contributor

@nreese nreese commented Jan 23, 2023

Fixes #89073 and #106547

Flaky test runner https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1785

Issue with flaky maps_integration.ts is that there was not await when filtering maps list by tags. This resulted in list page refreshing after const links = await this.find.allByCssSelector('.euiTableRow-isSelectable .euiLink'); and then getting an elemented unmounted on future await links[i].getVisibleText() calls.

A similar fix was implemented for visualize and dashboard listing pages.

#82930 introduced listingTable.waitUntilTableIsLoaded but did not introduce the method in a consistent way. Other methods that search table were not updated to use listingTable.waitUntilTableIsLoaded, but instead used this.header.waitUntilLoadingHasFinished(). This PR resolved this issue by updating all listingTable methods that search to use listingTable.waitUntilTableIsLoaded and then updated listingTable.waitUntilTableIsLoaded with a call to this.header.waitUntilLoadingHasFinished()

#82930 did not update maps_integration tests, only resolving the issue for visualize and dashboard. To avoid future situations where fixes only resolve a few usages, this PR moves selectFilterTags into listing_table and replaces all implementations of selectFilterTags with listingTable.selectFilterTags.

While investigating dashboard_integrations test, I found x-pack/test/functional/apps/dashboard/group2/dashboard_tagging.ts, which duplicated most of dashboard_integrations test. This PR removes x-pack/test/functional/apps/dashboard/group2/dashboard_tagging.ts adds the unique test case to dashboard_integrations

@nreese
Copy link
Contributor Author

nreese commented Jan 25, 2023

@elasticmachine merge upstream

@nreese nreese marked this pull request as ready for review January 25, 2023 16:48
@nreese nreese requested a review from a team as a code owner January 25, 2023 16:48
@nreese nreese added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// release_note:skip Skip the PR/issue when compiling release notes v8.7.0 labels Jan 25, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@nreese nreese requested a review from pgayvallet January 25, 2023 16:49
expect(itemNames).to.contain('dashboard 4 with real data (tag-1)');
});

it('retains dashboard saved object tags after quicksave', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

🔥 Thanks for combining these!

@nreese
Copy link
Contributor Author

nreese commented Jan 26, 2023

@elasticmachine merge upstream

@kibana-ci
Copy link

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@nreese nreese merged commit c484069 into elastic:main Jan 26, 2023
@kibanamachine kibanamachine added the backport:skip This PR does not require backporting label Jan 26, 2023
kqualters-elastic pushed a commit to kqualters-elastic/kibana that referenced this pull request Feb 6, 2023
…t/saved_object_tagging/functional/tests/maps_integration·ts - saved objects tagging (elastic#149356)

Fixes elastic#89073 and
elastic#106547

Flaky test runner
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1785

Issue with flaky maps_integration.ts is that there was not await when
filtering maps list by tags. This resulted in list page refreshing after
`const links = await
this.find.allByCssSelector('.euiTableRow-isSelectable .euiLink');` and
then getting an elemented unmounted on future `await
links[i].getVisibleText()` calls.

A [similar fix](elastic#82930) was
implemented for visualize and dashboard listing pages.

elastic#82930 introduced
`listingTable.waitUntilTableIsLoaded` but did not introduce the method
in a consistent way. Other methods that search table were not updated to
use `listingTable.waitUntilTableIsLoaded`, but instead used
`this.header.waitUntilLoadingHasFinished()`. This PR resolved this issue
by updating all listingTable methods that search to use
`listingTable.waitUntilTableIsLoaded` and then updated
`listingTable.waitUntilTableIsLoaded` with a call to
`this.header.waitUntilLoadingHasFinished()`

elastic#82930 did not update
maps_integration tests, only resolving the issue for visualize and
dashboard. To avoid future situations where fixes only resolve a few
usages, this PR moves selectFilterTags into listing_table and replaces
all implementations of selectFilterTags with
listingTable.selectFilterTags.

While investigating dashboard_integrations test, I found
`x-pack/test/functional/apps/dashboard/group2/dashboard_tagging.ts`,
which duplicated most of dashboard_integrations test. This PR removes
x-pack/test/functional/apps/dashboard/group2/dashboard_tagging.ts adds
the unique test case to dashboard_integrations

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
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 release_note:skip Skip the PR/issue when compiling release notes Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v8.7.0

Projects

None yet

6 participants