Skip to content

Commit 9ce6494

Browse files
committed
Update synthetics test.
1 parent d71cb1a commit 9ce6494

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

x-pack/solutions/observability/plugins/synthetics/e2e/synthetics/journeys/alert_rules/default_status_alert.journey.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,20 @@ journey(`DefaultStatusAlert`, async ({ page, params }) => {
5656
await syntheticsApp.navigateToOverview(true, 15);
5757
});
5858

59-
step('should create default status alert', async () => {
59+
step('should edit default status alert', async () => {
60+
// Wait for the default alert to be created asynchronously after monitor creation
6061
await page.getByTestId('syntheticsAlertsRulesButton').click();
62+
63+
await retry.tryForTime(30 * 1000, async () => {
64+
await page.waitForSelector(byTestId('manageStatusRuleName'), { timeout: 5 * 1000 });
65+
});
66+
6167
await page.getByTestId('manageStatusRuleName').click();
68+
69+
await retry.tryForTime(30 * 1000, async () => {
70+
await page.waitForSelector(byTestId('editDefaultStatusRule'), { timeout: 5 * 1000 });
71+
});
72+
6273
await page.isDisabled(byTestId('editDefaultStatusRule'));
6374
await page.getByTestId('editDefaultStatusRule').click();
6475

0 commit comments

Comments
 (0)