mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
# Backport This will backport the following commits from `main` to `8.x`: - [[Synthetics] Fix flakiness for overview flyout tests !! (#206401)](https://github.com/elastic/kibana/pull/206401) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Shahzad","email":"shahzad31comp@gmail.com"},"sourceCommit":{"committedDate":"2025-01-13T17:02:26Z","message":"[Synthetics] Fix flakiness for overview flyout tests !! (#206401)\n\n## Summary\r\n\r\n Fix flakiness for overview flyout tests !!","sha":"1857cac07047274ffeef40f3c495d47d8c75c2f0","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:prev-minor","Team:obs-ux-management"],"title":"[Synthetics] Fix flakiness for overview flyout tests !!","number":206401,"url":"https://github.com/elastic/kibana/pull/206401","mergeCommit":{"message":"[Synthetics] Fix flakiness for overview flyout tests !! (#206401)\n\n## Summary\r\n\r\n Fix flakiness for overview flyout tests !!","sha":"1857cac07047274ffeef40f3c495d47d8c75c2f0"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/206401","number":206401,"mergeCommit":{"message":"[Synthetics] Fix flakiness for overview flyout tests !! (#206401)\n\n## Summary\r\n\r\n Fix flakiness for overview flyout tests !!","sha":"1857cac07047274ffeef40f3c495d47d8c75c2f0"}}]}] BACKPORT--> Co-authored-by: Shahzad <shahzad31comp@gmail.com>
This commit is contained in:
parent
56ea9a5bf8
commit
345c1879bb
2 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
|||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
import { expect, Page } from '@elastic/synthetics';
|
||||
import { Page } from '@elastic/synthetics';
|
||||
import { waitForLoadingToFinish } from '@kbn/ux-plugin/e2e/journeys/utils';
|
||||
|
||||
export function utilsPageProvider({ page }: { page: Page }) {
|
||||
|
@ -19,7 +19,7 @@ export function utilsPageProvider({ page }: { page: Page }) {
|
|||
|
||||
async assertText({ text }: { text: string }) {
|
||||
await page.waitForSelector(`text=${text}`);
|
||||
expect(await page.$(`text=${text}`)).toBeTruthy();
|
||||
await page.getByText(text).isVisible();
|
||||
},
|
||||
|
||||
async fillByTestSubj(dataTestSubj: string, value: string) {
|
||||
|
|
|
@ -39,7 +39,7 @@ journey('TestMonitorDetailFlyout', async ({ page, params }) => {
|
|||
});
|
||||
|
||||
step('open overview flyout', async () => {
|
||||
await syntheticsApp.navigateToOverview();
|
||||
await page.getByTestId('syntheticsMonitorOverviewTab').click();
|
||||
await syntheticsApp.assertText({ text: monitorName });
|
||||
await page.click(`[data-test-subj="${monitorName}-${locationId}-metric-item"]`);
|
||||
const flyoutHeader = await page.waitForSelector('.euiFlyoutHeader');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue