-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[application_deep_links] Unify / improve navigation between apps #170228
Conversation
}); | ||
|
||
it('should navigate to Home when navlink is clicked inside the defined category group', async () => { | ||
await appsMenu.clickLink('DL Home', { category: 'securitySolution' }); |
There was a problem hiding this comment.
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.
💚 Build Succeeded
Metrics [docs]
To update your PR or re-run it, just comment with: |
Pinging @elastic/kibana-core (Team:Core) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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); | ||
}; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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!
…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
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:
Flaky test runner pipeline - 100x 🟢
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3840