[Stack Management Integration] Add extra checks in Uptime test (#154115)

## Summary
Add a check for the tour popup being present in the Uptime app. It does
not show up on all the current configs.
This commit is contained in:
Marius Dragomir 2023-03-31 17:25:54 +02:00 committed by GitHub
parent 33599ad414
commit 35654305bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,10 @@ 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 testSubjects.click('syntheticsManagementTourDismiss');
// dismiss the Management tour if it's present
if (await this.testSubjects.exists('syntheticsManagementTourDismiss')) {
await testSubjects.click('syntheticsManagementTourDismiss');
}
await PageObjects.timePicker.setCommonlyUsedTime('Last_1 year');
await retry.try(async function () {
const upCount = parseInt((await PageObjects.uptime.getSnapshotCount()).up, 10);