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

[application_deep_links] Unify / improve navigation between apps #170228

Merged

Conversation

gsoldevila
Copy link
Contributor

@gsoldevila gsoldevila commented Oct 31, 2023

Summary

Attempt at fixing #166893

PR #168741 forgot to update one of the tests to exclusively use navigateToAppLinks.
Thus, the impacted test had a duplicated navigation logic.

This PR:

  • removes that unintended call (this should hopefully fix flakiness).
  • simplifies and unifies test logic, improving readability.

Flaky test runner pipeline - 100x 🟢
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3840

@gsoldevila gsoldevila added the Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc label Oct 31, 2023
});

it('should navigate to Home when navlink is clicked inside the defined category group', async () => {
await appsMenu.clickLink('DL Home', { category: 'securitySolution' });
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the previous/old navigation logic that should have been removed.
I believe this is the source of the new / reoccurring flakiness.

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

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

@gsoldevila gsoldevila marked this pull request as ready for review October 31, 2023 14:47
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@gsoldevila gsoldevila requested review from a team and TinaHeiligers October 31, 2023 14:48
Copy link
Member

@afharo afharo left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +22 to +28
const clickAppLink = async (app: string) => {
const appLink = `dlNav${app}`;
if (!(await testSubjects.exists(appLink))) {
log.debug(`App ${app} not found on side nav`);
}
await testSubjects.click(appLink);
};
Copy link
Member

Choose a reason for hiding this comment

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

Super cool! I'd be great to have this in the helpers.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one is custom to the deep links apps (note the dlNav), but perhaps we can generalise it somehow.
In fact, I have a few more improvements in the pipes for other tests in the test_suites/core_plugins. Stay tunned!

@gsoldevila gsoldevila removed the request for review from TinaHeiligers November 2, 2023 09:03
@gsoldevila gsoldevila added the release_note:skip Skip the PR/issue when compiling release notes label Nov 2, 2023
@gsoldevila gsoldevila merged commit 8315d8c into elastic:main Nov 2, 2023
5 checks passed
@kibanamachine kibanamachine added v8.12.0 backport:skip This commit does not require backporting labels Nov 2, 2023
delanni pushed a commit to delanni/kibana that referenced this pull request Nov 6, 2023
…stic#170228)

## Summary

Attempt at fixing elastic#166893

PR [elastic#168741](elastic#168741) forgot to
update one of the tests to **exclusively** use `navigateToAppLinks`.
Thus, the impacted test had a duplicated navigation logic.

This PR:
* removes that unintended call (this should hopefully fix flakiness).
* simplifies and unifies test logic, improving readability.

Flaky test runner pipeline - 100x 🟢  
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3840
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 release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants