-
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
Adjust global loading indicator data-test-subj for projects #163697
Conversation
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
Thanks for working on this!
💚 Build Succeeded
Metrics [docs]Page load bundle
History
To update your PR or re-run it, just comment with: cc @pheyos |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…163697) ## Summary This PR adjusts the `data-test-subj` for the global loading indicator in serverless projects such that at matches the stateful version. This makes sure that functional tests and corresponding test helper methods continue to work the same in stateful and serverless environments when comes to waiting for global loading to finish, which is a key mechanism to avoid test flakiness. ### Additional information - The serverless project specific global loading indicator was introduced with elastic#158523 - The stateful loading indicator `data-test-subj` naming is implemented here: https://github.com/elastic/kibana/blob/main/packages/core/chrome/core-chrome-browser-internal/src/ui/loading_indicator.tsx#L61 Co-authored-by: Tim Sullivan <[email protected]> (cherry picked from commit fd08c62)
…63697) (#163745) # Backport This will backport the following commits from `main` to `8.9`: - [Adjust global loading indicator data-test-subj for projects (#163697)](#163697) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Robert Oskamp","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-08-11T17:40:26Z","message":"Adjust global loading indicator data-test-subj for projects (#163697)\n\n## Summary\r\n\r\nThis PR adjusts the `data-test-subj` for the global loading indicator in\r\nserverless projects such that at matches the stateful version. This\r\nmakes sure that functional tests and corresponding test helper methods\r\ncontinue to work the same in stateful and serverless environments when\r\ncomes to waiting for global loading to finish, which is a key mechanism\r\nto avoid test flakiness.\r\n\r\n### Additional information\r\n\r\n- The serverless project specific global loading indicator was\r\nintroduced with #158523\r\n- The stateful loading indicator `data-test-subj` naming is implemented\r\nhere:\r\nhttps://github.com/elastic/kibana/blob/main/packages/core/chrome/core-chrome-browser-internal/src/ui/loading_indicator.tsx#L61\r\n\r\nCo-authored-by: Tim Sullivan <[email protected]>","sha":"fd08c62f052d065e677b670a381840ae80dc9724","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","v8.10.0","v8.9.1"],"number":163697,"url":"https://github.com/elastic/kibana/pull/163697","mergeCommit":{"message":"Adjust global loading indicator data-test-subj for projects (#163697)\n\n## Summary\r\n\r\nThis PR adjusts the `data-test-subj` for the global loading indicator in\r\nserverless projects such that at matches the stateful version. This\r\nmakes sure that functional tests and corresponding test helper methods\r\ncontinue to work the same in stateful and serverless environments when\r\ncomes to waiting for global loading to finish, which is a key mechanism\r\nto avoid test flakiness.\r\n\r\n### Additional information\r\n\r\n- The serverless project specific global loading indicator was\r\nintroduced with #158523\r\n- The stateful loading indicator `data-test-subj` naming is implemented\r\nhere:\r\nhttps://github.com/elastic/kibana/blob/main/packages/core/chrome/core-chrome-browser-internal/src/ui/loading_indicator.tsx#L61\r\n\r\nCo-authored-by: Tim Sullivan <[email protected]>","sha":"fd08c62f052d065e677b670a381840ae80dc9724"}},"sourceBranch":"main","suggestedTargetBranches":["8.9"],"targetPullRequestStates":[{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/163697","number":163697,"mergeCommit":{"message":"Adjust global loading indicator data-test-subj for projects (#163697)\n\n## Summary\r\n\r\nThis PR adjusts the `data-test-subj` for the global loading indicator in\r\nserverless projects such that at matches the stateful version. This\r\nmakes sure that functional tests and corresponding test helper methods\r\ncontinue to work the same in stateful and serverless environments when\r\ncomes to waiting for global loading to finish, which is a key mechanism\r\nto avoid test flakiness.\r\n\r\n### Additional information\r\n\r\n- The serverless project specific global loading indicator was\r\nintroduced with #158523\r\n- The stateful loading indicator `data-test-subj` naming is implemented\r\nhere:\r\nhttps://github.com/elastic/kibana/blob/main/packages/core/chrome/core-chrome-browser-internal/src/ui/loading_indicator.tsx#L61\r\n\r\nCo-authored-by: Tim Sullivan <[email protected]>","sha":"fd08c62f052d065e677b670a381840ae80dc9724"}},{"branch":"8.9","label":"v8.9.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Robert Oskamp <[email protected]>
This pr didn't make it into the build candidate for v8.9.1. Updating the labels. |
Summary
This PR adjusts the
data-test-subj
for the global loading indicator in serverless projects such that at matches the stateful version. This makes sure that functional tests and corresponding test helper methods continue to work the same in stateful and serverless environments when comes to waiting for global loading to finish, which is a key mechanism to avoid test flakiness.Additional information
data-test-subj
naming is implemented here: https://github.com/elastic/kibana/blob/main/packages/core/chrome/core-chrome-browser-internal/src/ui/loading_indicator.tsx#L61