-
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
[FTR] Implement scrollIntoView util #165080
[FTR] Implement scrollIntoView util #165080
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
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.
Where is scrollIntoViewOptions
defined?
It is the optional argument passed to the |
Globals always confuse me. |
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.
if we can do something about this then I'll give my thumbs up for sure
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.
awesome! thanks again.
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
## 📓 Summary Based on the need for [this test](https://github.com/elastic/kibana/pull/164493/files#diff-e0bb824023eef20a7b3742da023e25744a6c20406f59ae8400455c579153faeaR262) to scroll into the element independently of its existence in view, this PR exposes a new `scrollIntoView` method that replicates the behaviour of the native [Element .scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) method. --------- Co-authored-by: Marco Antonio Ghiani <[email protected]> Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit 56c04d8)
## 📓 Summary Based on the need for [this test](https://github.com/elastic/kibana/pull/164493/files#diff-e0bb824023eef20a7b3742da023e25744a6c20406f59ae8400455c579153faeaR262) to scroll into the element independently of its existence in view, this PR exposes a new `scrollIntoView` method that replicates the behaviour of the native [Element .scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) method. --------- Co-authored-by: Marco Antonio Ghiani <[email protected]> Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit 56c04d8)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
## 📓 Summary Based on the need for [this test](https://github.com/elastic/kibana/pull/164493/files#diff-e0bb824023eef20a7b3742da023e25744a6c20406f59ae8400455c579153faeaR262) to scroll into the element independently of its existence in view, this PR exposes a new `scrollIntoView` method that replicates the behaviour of the native [Element .scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) method. --------- Co-authored-by: Marco Antonio Ghiani <[email protected]> Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit 56c04d8)
# Backport This will backport the following commits from `main` to `8.9`: - [[FTR] Implement scrollIntoView util (#165080)](#165080) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Marco Antonio Ghiani","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-08-29T13:31:27Z","message":"[FTR] Implement scrollIntoView util (#165080)\n\n## 📓 Summary\r\n\r\nBased on the need for [this\r\ntest](https://github.com/elastic/kibana/pull/164493/files#diff-e0bb824023eef20a7b3742da023e25744a6c20406f59ae8400455c579153faeaR262)\r\nto scroll into the element independently of its existence in view, this\r\nPR exposes a new `scrollIntoView` method that replicates the behaviour\r\nof the native [Element\r\n.scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)\r\nmethod.\r\n\r\n---------\r\n\r\nCo-authored-by: Marco Antonio Ghiani <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"56c04d88872bb22d4c941fda6262746e198c5505","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","v7.17.13","v8.11.0"],"number":165080,"url":"https://github.com/elastic/kibana/pull/165080","mergeCommit":{"message":"[FTR] Implement scrollIntoView util (#165080)\n\n## 📓 Summary\r\n\r\nBased on the need for [this\r\ntest](https://github.com/elastic/kibana/pull/164493/files#diff-e0bb824023eef20a7b3742da023e25744a6c20406f59ae8400455c579153faeaR262)\r\nto scroll into the element independently of its existence in view, this\r\nPR exposes a new `scrollIntoView` method that replicates the behaviour\r\nof the native [Element\r\n.scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)\r\nmethod.\r\n\r\n---------\r\n\r\nCo-authored-by: Marco Antonio Ghiani <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"56c04d88872bb22d4c941fda6262746e198c5505"}},"sourceBranch":"main","suggestedTargetBranches":["7.17"],"targetPullRequestStates":[{"branch":"7.17","label":"v7.17.13","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/165080","number":165080,"mergeCommit":{"message":"[FTR] Implement scrollIntoView util (#165080)\n\n## 📓 Summary\r\n\r\nBased on the need for [this\r\ntest](https://github.com/elastic/kibana/pull/164493/files#diff-e0bb824023eef20a7b3742da023e25744a6c20406f59ae8400455c579153faeaR262)\r\nto scroll into the element independently of its existence in view, this\r\nPR exposes a new `scrollIntoView` method that replicates the behaviour\r\nof the native [Element\r\n.scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)\r\nmethod.\r\n\r\n---------\r\n\r\nCo-authored-by: Marco Antonio Ghiani <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"56c04d88872bb22d4c941fda6262746e198c5505"}}]}] BACKPORT--> Co-authored-by: Marco Antonio Ghiani <[email protected]>
# Backport This will backport the following commits from `main` to `8.10`: - [[FTR] Implement scrollIntoView util (#165080)](#165080) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Marco Antonio Ghiani","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-08-29T13:31:27Z","message":"[FTR] Implement scrollIntoView util (#165080)\n\n## 📓 Summary\r\n\r\nBased on the need for [this\r\ntest](https://github.com/elastic/kibana/pull/164493/files#diff-e0bb824023eef20a7b3742da023e25744a6c20406f59ae8400455c579153faeaR262)\r\nto scroll into the element independently of its existence in view, this\r\nPR exposes a new `scrollIntoView` method that replicates the behaviour\r\nof the native [Element\r\n.scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)\r\nmethod.\r\n\r\n---------\r\n\r\nCo-authored-by: Marco Antonio Ghiani <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"56c04d88872bb22d4c941fda6262746e198c5505","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","v7.17.13","v8.11.0"],"number":165080,"url":"https://github.com/elastic/kibana/pull/165080","mergeCommit":{"message":"[FTR] Implement scrollIntoView util (#165080)\n\n## 📓 Summary\r\n\r\nBased on the need for [this\r\ntest](https://github.com/elastic/kibana/pull/164493/files#diff-e0bb824023eef20a7b3742da023e25744a6c20406f59ae8400455c579153faeaR262)\r\nto scroll into the element independently of its existence in view, this\r\nPR exposes a new `scrollIntoView` method that replicates the behaviour\r\nof the native [Element\r\n.scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)\r\nmethod.\r\n\r\n---------\r\n\r\nCo-authored-by: Marco Antonio Ghiani <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"56c04d88872bb22d4c941fda6262746e198c5505"}},"sourceBranch":"main","suggestedTargetBranches":["7.17"],"targetPullRequestStates":[{"branch":"7.17","label":"v7.17.13","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/165080","number":165080,"mergeCommit":{"message":"[FTR] Implement scrollIntoView util (#165080)\n\n## 📓 Summary\r\n\r\nBased on the need for [this\r\ntest](https://github.com/elastic/kibana/pull/164493/files#diff-e0bb824023eef20a7b3742da023e25744a6c20406f59ae8400455c579153faeaR262)\r\nto scroll into the element independently of its existence in view, this\r\nPR exposes a new `scrollIntoView` method that replicates the behaviour\r\nof the native [Element\r\n.scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)\r\nmethod.\r\n\r\n---------\r\n\r\nCo-authored-by: Marco Antonio Ghiani <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"56c04d88872bb22d4c941fda6262746e198c5505"}}]}] BACKPORT--> Co-authored-by: Marco Antonio Ghiani <[email protected]>
# Backport This will backport the following commits from `main` to `7.17`: - [[FTR] Implement scrollIntoView util (#165080)](#165080) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Marco Antonio Ghiani","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-08-29T13:31:27Z","message":"[FTR] Implement scrollIntoView util (#165080)\n\n## 📓 Summary\r\n\r\nBased on the need for [this\r\ntest](https://github.com/elastic/kibana/pull/164493/files#diff-e0bb824023eef20a7b3742da023e25744a6c20406f59ae8400455c579153faeaR262)\r\nto scroll into the element independently of its existence in view, this\r\nPR exposes a new `scrollIntoView` method that replicates the behaviour\r\nof the native [Element\r\n.scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)\r\nmethod.\r\n\r\n---------\r\n\r\nCo-authored-by: Marco Antonio Ghiani <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"56c04d88872bb22d4c941fda6262746e198c5505","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","v7.17.13","v8.11.0"],"number":165080,"url":"https://github.com/elastic/kibana/pull/165080","mergeCommit":{"message":"[FTR] Implement scrollIntoView util (#165080)\n\n## 📓 Summary\r\n\r\nBased on the need for [this\r\ntest](https://github.com/elastic/kibana/pull/164493/files#diff-e0bb824023eef20a7b3742da023e25744a6c20406f59ae8400455c579153faeaR262)\r\nto scroll into the element independently of its existence in view, this\r\nPR exposes a new `scrollIntoView` method that replicates the behaviour\r\nof the native [Element\r\n.scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)\r\nmethod.\r\n\r\n---------\r\n\r\nCo-authored-by: Marco Antonio Ghiani <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"56c04d88872bb22d4c941fda6262746e198c5505"}},"sourceBranch":"main","suggestedTargetBranches":["7.17"],"targetPullRequestStates":[{"branch":"7.17","label":"v7.17.13","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/165080","number":165080,"mergeCommit":{"message":"[FTR] Implement scrollIntoView util (#165080)\n\n## 📓 Summary\r\n\r\nBased on the need for [this\r\ntest](https://github.com/elastic/kibana/pull/164493/files#diff-e0bb824023eef20a7b3742da023e25744a6c20406f59ae8400455c579153faeaR262)\r\nto scroll into the element independently of its existence in view, this\r\nPR exposes a new `scrollIntoView` method that replicates the behaviour\r\nof the native [Element\r\n.scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)\r\nmethod.\r\n\r\n---------\r\n\r\nCo-authored-by: Marco Antonio Ghiani <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"56c04d88872bb22d4c941fda6262746e198c5505"}}]}] BACKPORT--> Co-authored-by: Marco Antonio Ghiani <[email protected]>
📓 Summary
Based on the need for this test to scroll into the element independently of its existence in view, this PR exposes a new
scrollIntoView
method that replicates the behaviour of the native Element .scrollIntoView method.