Conversation
pheyos
left a comment
There was a problem hiding this comment.
Sharing some early observations, didn't check the tests yet.
41e799d to
935c9d5
Compare
…as the add layer button is not in the dom with the viewer role.
Co-authored-by: Robert Oskamp <traeluki@gmail.com>
8c462e3 to
8e43cfa
Compare
…h ambiguity regarding the kbn app wrapper, aka kibana chrome
889563d to
dfc483e
Compare
nreese
left a comment
There was a problem hiding this comment.
Thanks for starting the MapsPage and demoing how to create a test in scout
code review only
| constructor(private readonly page: ScoutPage) {} | ||
|
|
||
| async gotoNewMap() { | ||
| await this.page.gotoApp(this.directNavigationOrigin); |
There was a problem hiding this comment.
nit: I don't think there is value in putting maps/map into a constant in the class. In the name of "keeping simple things simple", how about just await this.page.gotoApp('maps/map');
| constructor(private readonly page: ScoutPage) {} | ||
|
|
||
| async gotoNewMap() { | ||
| // see: https://github.com/elastic/kibana/pull/204607/files#r1932558888 |
There was a problem hiding this comment.
One more nit, why keep this comment? The method is very straightforward and I don't think we need to link the code back to this discussion. Its just more noise in the code base that does not provide value.
There was a problem hiding this comment.
To me, it's good to keep it as this "feels" like it's going to come up again in the future. But no worries, I'll remove.
|
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Public APIs missing comments
Public APIs missing exports
Unknown metric groupsAPI count
ESLint disabled line counts
Total ESLint disabled count
History
|
|
Starting backport for target branches: 8.x, 9.0 https://github.com/elastic/kibana/actions/runs/13333518306 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
## Summary Add MapsPage to the scout core to be re-used by others. Add rudimentary docs to show how to run these tests. Added a `waitForRender` method. Add test id. --------- Co-authored-by: Robert Oskamp <traeluki@gmail.com> Co-authored-by: Nick Partridge <nicholas.partridge@elastic.co> Co-authored-by: Nick Partridge <nick.ryan.partridge@gmail.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co> (cherry picked from commit ce19045) # Conflicts: # .buildkite/scripts/steps/functional/scout_ui_tests.sh # .github/CODEOWNERS # x-pack/platform/plugins/shared/maps/tsconfig.json
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [[Scout] add maps test (#204607)](#204607) <!--- Backport version: 9.6.4 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Tre","email":"wayne.seymour@elastic.co"},"sourceCommit":{"committedDate":"2025-01-30T11:55:35Z","message":"[Scout] add maps test (#204607)\n\n## Summary\r\n\r\nAdd MapsPage to the scout core to be re-used by others.\r\nAdd rudimentary docs to show how to run these tests.\r\nAdded a `waitForRender` method.\r\nAdd test id.\r\n\r\n---------\r\n\r\nCo-authored-by: Robert Oskamp <traeluki@gmail.com>\r\nCo-authored-by: Nick Partridge <nicholas.partridge@elastic.co>\r\nCo-authored-by: Nick Partridge <nick.ryan.partridge@gmail.com>\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>\r\nCo-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>","sha":"ce1904533d46e3b1e02d0d177fe4503ad0e495df","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:version","test:scout","v9.1.0","v8.19.0"],"title":"[Scout] add maps test","number":204607,"url":"https://github.com/elastic/kibana/pull/204607","mergeCommit":{"message":"[Scout] add maps test (#204607)\n\n## Summary\r\n\r\nAdd MapsPage to the scout core to be re-used by others.\r\nAdd rudimentary docs to show how to run these tests.\r\nAdded a `waitForRender` method.\r\nAdd test id.\r\n\r\n---------\r\n\r\nCo-authored-by: Robert Oskamp <traeluki@gmail.com>\r\nCo-authored-by: Nick Partridge <nicholas.partridge@elastic.co>\r\nCo-authored-by: Nick Partridge <nick.ryan.partridge@gmail.com>\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>\r\nCo-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>","sha":"ce1904533d46e3b1e02d0d177fe4503ad0e495df"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204607","number":204607,"mergeCommit":{"message":"[Scout] add maps test (#204607)\n\n## Summary\r\n\r\nAdd MapsPage to the scout core to be re-used by others.\r\nAdd rudimentary docs to show how to run these tests.\r\nAdded a `waitForRender` method.\r\nAdd test id.\r\n\r\n---------\r\n\r\nCo-authored-by: Robert Oskamp <traeluki@gmail.com>\r\nCo-authored-by: Nick Partridge <nicholas.partridge@elastic.co>\r\nCo-authored-by: Nick Partridge <nick.ryan.partridge@gmail.com>\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>\r\nCo-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>","sha":"ce1904533d46e3b1e02d0d177fe4503ad0e495df"}},{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Tre <wayne.seymour@elastic.co>
Summary
Add MapsPage to the scout core to be re-used by others.
Add rudimentary docs to show how to run these tests.
Added a
waitForRendermethod.Add test id.