From d9c9ee0391a1e2b24fa52d4b1f80746367508b43 Mon Sep 17 00:00:00 2001 From: Marius Dragomir Date: Fri, 7 Oct 2022 22:35:29 -0400 Subject: [PATCH] [8.4] add a dismiss to the uptime tour popup (#142879) (#142942) * add a dismiss to the uptime tour popup (#142879) (cherry picked from commit a873c3f974077a82cb0fb305f759667782cf74c5) * add tour dismiss method * [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- x-pack/test/functional/page_objects/uptime_page.ts | 4 ++++ .../stack_functional_integration/apps/heartbeat/_heartbeat.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/x-pack/test/functional/page_objects/uptime_page.ts b/x-pack/test/functional/page_objects/uptime_page.ts index 6ae8fe59ba3df..315513c5c4c3b 100644 --- a/x-pack/test/functional/page_objects/uptime_page.ts +++ b/x-pack/test/functional/page_objects/uptime_page.ts @@ -25,6 +25,10 @@ export class UptimePageObject extends FtrService { } } + public async dismissTour() { + await this.testSubjects.click('syntheticsManagementTourDismiss'); + } + public async setDateRange(start: string, end: string) { const { start: prevStart, end: prevEnd } = await this.timePicker.getTimeConfig(); if (start !== prevStart || prevEnd !== end) { diff --git a/x-pack/test/stack_functional_integration/apps/heartbeat/_heartbeat.ts b/x-pack/test/stack_functional_integration/apps/heartbeat/_heartbeat.ts index 9f402c019d0a7..e1122125c8665 100644 --- a/x-pack/test/stack_functional_integration/apps/heartbeat/_heartbeat.ts +++ b/x-pack/test/stack_functional_integration/apps/heartbeat/_heartbeat.ts @@ -15,6 +15,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('check heartbeat overview page', function () { it('Uptime app should show 1 UP monitor', async function () { await PageObjects.common.navigateToApp('uptime', { insertTimestamp: false }); + await PageObjects.uptime.dismissTour(); await PageObjects.timePicker.setCommonlyUsedTime('Last_1 year'); await retry.try(async function () {