Skip to content

Commit

Permalink
[8.4] add a dismiss to the uptime tour popup (#142879) (#142942)
Browse files Browse the repository at this point in the history
* add a dismiss to the uptime tour popup (#142879)

(cherry picked from commit a873c3f)

* 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 <[email protected]>
  • Loading branch information
marius-dr and kibanamachine authored Oct 8, 2022
1 parent eee24f5 commit d9c9ee0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x-pack/test/functional/page_objects/uptime_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit d9c9ee0

Please sign in to comment.