Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
# Backport This will backport the following commits from `main` to `8.x`: - [[scout] migrate more Discover tests (#201842)](#201842) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Dzmitry Lemechko","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-02T19:57:29Z","message":"[scout] migrate more Discover tests (#201842)\n\n## Summary\r\n\r\nThis PR migrates the following FTR tests to `@kbn/scout`:\r\n\r\n`x-pack/test/functional/apps/discover/error_handling.ts` =>\r\n`x-pack/plugins/discover_enhanced/ui_tests/tests/error_handling.spec.ts`\r\n\r\n`x-pack/test/functional/apps/discover/saved_search_embeddable.ts` =>\r\n\r\n`x-pack/plugins/discover_enhanced/ui_tests/tests/saved_search_embeddable.spec.ts`\r\n\r\n`x-pack/test/functional/apps/discover/saved_searches.ts` =>\r\n`x-pack/plugins/discover_enhanced/ui_tests/tests/saved_searches.spec.ts`\r\n\r\n`x-pack/test/functional/apps/discover/value_suggestions.ts` 2nd describe\r\nblock =>\r\n\r\n`x-pack/plugins/discover_enhanced/ui_tests/tests/value_suggestions_use_time_range_disabled.spec.ts`\r\n\r\nSome other changes to mention:\r\n\r\n**packages/kbn-test-subj-selector**:\r\n- support of `^foo` syntax similar to `CSS [attribute^=value] Selector`\r\n\r\n**packages/kbn-scout**:\r\n- new worker fixture `uiSettings` to wrap Advanced Settings set/unset\r\ncapability\r\n- extend `ScoutPage` fixture with `typeWithDelay` method required for\r\nmany Kibana input fields\r\n- extend `PageObjects` fixture with `DashboardApp` & `FilterBar`, also\r\nextending existing ones.\r\n\r\nHow to test:\r\n\r\n```bash\r\n// ESS\r\nnode scripts/scout_start_servers.js --stateful\r\nnpx playwright test --config x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts --grep @ess\r\n\r\n// Serverless\r\nnode scripts/scout_start_servers.js --serverless=es\r\nnpx playwright test --config x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts --grep @svlSearch\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by: Robert Oskamp <[email protected]>","sha":"d4094c17bec4692e1ee942adeaa174e2404e2dfc","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:skip","v9.0.0","test:scout"],"number":201842,"url":"https://github.com/elastic/kibana/pull/201842","mergeCommit":{"message":"[scout] migrate more Discover tests (#201842)\n\n## Summary\r\n\r\nThis PR migrates the following FTR tests to `@kbn/scout`:\r\n\r\n`x-pack/test/functional/apps/discover/error_handling.ts` =>\r\n`x-pack/plugins/discover_enhanced/ui_tests/tests/error_handling.spec.ts`\r\n\r\n`x-pack/test/functional/apps/discover/saved_search_embeddable.ts` =>\r\n\r\n`x-pack/plugins/discover_enhanced/ui_tests/tests/saved_search_embeddable.spec.ts`\r\n\r\n`x-pack/test/functional/apps/discover/saved_searches.ts` =>\r\n`x-pack/plugins/discover_enhanced/ui_tests/tests/saved_searches.spec.ts`\r\n\r\n`x-pack/test/functional/apps/discover/value_suggestions.ts` 2nd describe\r\nblock =>\r\n\r\n`x-pack/plugins/discover_enhanced/ui_tests/tests/value_suggestions_use_time_range_disabled.spec.ts`\r\n\r\nSome other changes to mention:\r\n\r\n**packages/kbn-test-subj-selector**:\r\n- support of `^foo` syntax similar to `CSS [attribute^=value] Selector`\r\n\r\n**packages/kbn-scout**:\r\n- new worker fixture `uiSettings` to wrap Advanced Settings set/unset\r\ncapability\r\n- extend `ScoutPage` fixture with `typeWithDelay` method required for\r\nmany Kibana input fields\r\n- extend `PageObjects` fixture with `DashboardApp` & `FilterBar`, also\r\nextending existing ones.\r\n\r\nHow to test:\r\n\r\n```bash\r\n// ESS\r\nnode scripts/scout_start_servers.js --stateful\r\nnpx playwright test --config x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts --grep @ess\r\n\r\n// Serverless\r\nnode scripts/scout_start_servers.js --serverless=es\r\nnpx playwright test --config x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts --grep @svlSearch\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by: Robert Oskamp <[email protected]>","sha":"d4094c17bec4692e1ee942adeaa174e2404e2dfc"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201842","number":201842,"mergeCommit":{"message":"[scout] migrate more Discover tests (#201842)\n\n## Summary\r\n\r\nThis PR migrates the following FTR tests to `@kbn/scout`:\r\n\r\n`x-pack/test/functional/apps/discover/error_handling.ts` =>\r\n`x-pack/plugins/discover_enhanced/ui_tests/tests/error_handling.spec.ts`\r\n\r\n`x-pack/test/functional/apps/discover/saved_search_embeddable.ts` =>\r\n\r\n`x-pack/plugins/discover_enhanced/ui_tests/tests/saved_search_embeddable.spec.ts`\r\n\r\n`x-pack/test/functional/apps/discover/saved_searches.ts` =>\r\n`x-pack/plugins/discover_enhanced/ui_tests/tests/saved_searches.spec.ts`\r\n\r\n`x-pack/test/functional/apps/discover/value_suggestions.ts` 2nd describe\r\nblock =>\r\n\r\n`x-pack/plugins/discover_enhanced/ui_tests/tests/value_suggestions_use_time_range_disabled.spec.ts`\r\n\r\nSome other changes to mention:\r\n\r\n**packages/kbn-test-subj-selector**:\r\n- support of `^foo` syntax similar to `CSS [attribute^=value] Selector`\r\n\r\n**packages/kbn-scout**:\r\n- new worker fixture `uiSettings` to wrap Advanced Settings set/unset\r\ncapability\r\n- extend `ScoutPage` fixture with `typeWithDelay` method required for\r\nmany Kibana input fields\r\n- extend `PageObjects` fixture with `DashboardApp` & `FilterBar`, also\r\nextending existing ones.\r\n\r\nHow to test:\r\n\r\n```bash\r\n// ESS\r\nnode scripts/scout_start_servers.js --stateful\r\nnpx playwright test --config x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts --grep @ess\r\n\r\n// Serverless\r\nnode scripts/scout_start_servers.js --serverless=es\r\nnpx playwright test --config x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts --grep @svlSearch\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by: Robert Oskamp <[email protected]>","sha":"d4094c17bec4692e1ee942adeaa174e2404e2dfc"}}]}] BACKPORT-->
- Loading branch information