mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Synthetics] Fix broken tests !! (#214357)
## Summary Fix broken tests !! These got broken due to changes on alerts overview page, i am also expanding the scope to run on all observability plugin changes !!
This commit is contained in:
parent
cf73559e2d
commit
005124a9ed
2 changed files with 9 additions and 22 deletions
|
@ -127,30 +127,12 @@ const getPipeline = (filename: string, removeSteps = true) => {
|
|||
}
|
||||
|
||||
if (
|
||||
(await doAnyChangesMatch([/^x-pack\/solutions\/observability\/plugins\/exploratory_view/])) ||
|
||||
GITHUB_PR_LABELS.includes('ci:synthetics-runner-suites')
|
||||
) {
|
||||
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/exploratory_view_plugin.yml'));
|
||||
}
|
||||
|
||||
if (
|
||||
(await doAnyChangesMatch([
|
||||
/^x-pack\/solutions\/observability\/plugins\/synthetics/,
|
||||
/^x-pack\/solutions\/observability\/plugins\/exploratory_view/,
|
||||
])) ||
|
||||
(await doAnyChangesMatch([/^x-pack\/solutions\/observability\/plugins/])) ||
|
||||
GITHUB_PR_LABELS.includes('ci:synthetics-runner-suites')
|
||||
) {
|
||||
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/synthetics_plugin.yml'));
|
||||
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/uptime_plugin.yml'));
|
||||
}
|
||||
|
||||
if (
|
||||
(await doAnyChangesMatch([
|
||||
/^x-pack\/solutions\/observability\/plugins\/ux/,
|
||||
/^x-pack\/solutions\/observability\/plugins\/exploratory_view/,
|
||||
])) ||
|
||||
GITHUB_PR_LABELS.includes('ci:synthetics-runner-suites')
|
||||
) {
|
||||
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/exploratory_view_plugin.yml'));
|
||||
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/ux_plugin_e2e.yml'));
|
||||
}
|
||||
|
||||
|
|
|
@ -195,7 +195,11 @@ journey(`DefaultStatusAlert`, async ({ page, params }) => {
|
|||
|
||||
step('Deleting the monitor recovers the alert', async () => {
|
||||
await services.deleteTestMonitorByQuery('"Test Monitor 2"');
|
||||
await page.click(byTestId('alert-status-filter-recovered-button'));
|
||||
const recoveredFilter = 'kibana.alert.status : "recovered" ';
|
||||
await page.getByTestId('queryInput').fill(recoveredFilter);
|
||||
await page.click(byTestId('querySubmitButton'));
|
||||
await page.getByTestId('optionsList-control-0').hover();
|
||||
await page.getByTestId('control-action-0-erase').click();
|
||||
await retry.tryForTime(3 * 60 * 1000, async () => {
|
||||
await page.click(byTestId('querySubmitButton'));
|
||||
|
||||
|
@ -203,7 +207,8 @@ journey(`DefaultStatusAlert`, async ({ page, params }) => {
|
|||
expect(await alertsCount.isVisible()).toBe(true);
|
||||
});
|
||||
|
||||
await page.click(byTestId('alert-status-filter-active-button'));
|
||||
await page.getByTestId('queryInput').fill('kibana.alert.status : "active" ');
|
||||
await page.click(byTestId('querySubmitButton'));
|
||||
await syntheticsApp.waitForLoadingToFinish();
|
||||
await page.waitForTimeout(10 * 1000);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue