Skip to content

[Infra] Fix anomalies flyout navigation failing test#197999

Merged
jennypavlova merged 1 commit intoelastic:mainfrom
jennypavlova:192882-fix-failing-test-with-anomalies-present-should-take-users-to-hosts-list-when-show-affected-hosts-is-clicked
Oct 29, 2024
Merged

[Infra] Fix anomalies flyout navigation failing test#197999
jennypavlova merged 1 commit intoelastic:mainfrom
jennypavlova:192882-fix-failing-test-with-anomalies-present-should-take-users-to-hosts-list-when-show-affected-hosts-is-clicked

Conversation

@jennypavlova
Copy link
Copy Markdown
Member

@jennypavlova jennypavlova commented Oct 28, 2024

Closes #192882

The issue was that the url was checked too early which resulted in checking the locator url instead of the page url after navigating so I added a check for loading before the URL check and this solved the issue.

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

@jennypavlova jennypavlova added release_note:skip Skip the PR/issue when compiling release notes v9.0.0 Team:obs-ux-infra_services - DEPRECATED DEPRECATED - Use Team:obs-presentation. v8.16.0 backport:version Backport to applied version labels labels Oct 28, 2024
@jennypavlova jennypavlova self-assigned this Oct 28, 2024
@jennypavlova jennypavlova requested a review from a team October 28, 2024 13:44
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@kibanamachine
Copy link
Copy Markdown
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#7284

[✅] x-pack/test/functional/apps/infra/config.ts: 25/25 tests passed.

see run history

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @jennypavlova

Copy link
Copy Markdown
Contributor

@MiriamAparicio MiriamAparicio left a comment

Choose a reason for hiding this comment

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

thanks for the fix

@jennypavlova jennypavlova merged commit 3131dd9 into elastic:main Oct 29, 2024
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.16

https://github.com/elastic/kibana/actions/runs/11570215577

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 29, 2024
Closes elastic#192882

The issue was that the url was checked too early which resulted in
checking the locator url instead of the page url after navigating so I
added a check for loading before the URL check and this solved the
issue.

https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7284
(cherry picked from commit 3131dd9)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.16

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 29, 2024
…#198115)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[Infra] Fix anomalies flyout navigation failing test
(#197999)](#197999)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"jennypavlova","email":"dzheni.pavlova@elastic.co"},"sourceCommit":{"committedDate":"2024-10-29T08:42:43Z","message":"[Infra]
Fix anomalies flyout navigation failing test (#197999)\n\nCloses #192882
\r\n\r\nThe issue was that the url was checked too early which resulted
in\r\nchecking the locator url instead of the page url after navigating
so I\r\nadded a check for loading before the URL check and this solved
the\r\nissue.\r\n\r\n\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7284","sha":"3131dd9bfa1ee28fa12f90bb6ae8060da9e44665","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:obs-ux-infra_services","v8.16.0","backport:version"],"title":"[Infra]
Fix anomalies flyout navigation failing
test","number":197999,"url":"https://github.com/elastic/kibana/pull/197999","mergeCommit":{"message":"[Infra]
Fix anomalies flyout navigation failing test (#197999)\n\nCloses #192882
\r\n\r\nThe issue was that the url was checked too early which resulted
in\r\nchecking the locator url instead of the page url after navigating
so I\r\nadded a check for loading before the URL check and this solved
the\r\nissue.\r\n\r\n\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7284","sha":"3131dd9bfa1ee28fa12f90bb6ae8060da9e44665"}},"sourceBranch":"main","suggestedTargetBranches":["8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197999","number":197999,"mergeCommit":{"message":"[Infra]
Fix anomalies flyout navigation failing test (#197999)\n\nCloses #192882
\r\n\r\nThe issue was that the url was checked too early which resulted
in\r\nchecking the locator url instead of the page url after navigating
so I\r\nadded a check for loading before the URL check and this solved
the\r\nissue.\r\n\r\n\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7284","sha":"3131dd9bfa1ee28fa12f90bb6ae8060da9e44665"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: jennypavlova <dzheni.pavlova@elastic.co>
tiansivive pushed a commit to tiansivive/kibana that referenced this pull request Oct 29, 2024
Closes elastic#192882 

The issue was that the url was checked too early which resulted in
checking the locator url instead of the page url after navigating so I
added a check for loading before the URL check and this solved the
issue.


https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7284
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services - DEPRECATED DEPRECATED - Use Team:obs-presentation. v8.16.0 v9.0.0

Projects

None yet

4 participants