Skip to content

Commit

Permalink
[Synthetics] Fix flaky tests for alerting default !! (elastic#203220)
Browse files Browse the repository at this point in the history
## Summary

Fix flaky tests for alerting default, removed unecessary code.

I tested locally 30 times and it has been fixed now.
  • Loading branch information
shahzad31 authored and CAWilson94 committed Dec 12, 2024
1 parent e1b88cd commit 07a5130
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import { journey, step, expect, before, after } from '@elastic/synthetics';
import { journey, step, before, after } from '@elastic/synthetics';
import { byTestId } from '../../helpers/utils';
import { syntheticsAppPageProvider } from '../page_objects/synthetics_app';
import { cleanSettings } from './services/settings';
Expand All @@ -29,13 +29,10 @@ journey('AlertingDefaults', async ({ page, params }) => {
step('Go to Settings page', async () => {
await page.click('[aria-label="Toggle primary navigation"]');
await page.click('text=Synthetics');
await page.click('text=Settings');
await page.getByTestId('settings-page-link').click();
});

step('Click text=Synthetics', async () => {
expect(page.url()).toBe('http://localhost:5620/app/synthetics/settings/alerting');
await page.click('.euiComboBox__inputWrap');
await page.click("text=There aren't any options available");
await page.click('button:has-text("Add connector")');
await page.click('p:has-text("Slack")');
await page.click('input[type="text"]');
Expand Down

0 comments on commit 07a5130

Please sign in to comment.