[Stack Functional Integration] Fix test from #154115 (#154289)

## Summary

Fixes the context in the check added by #154115
This commit is contained in:
Marius Dragomir 2023-04-04 00:16:18 +02:00 committed by GitHub
parent 1df6fc7b8d
commit b41e6cf4f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('Uptime app should show 1 UP monitor', async function () {
await PageObjects.common.navigateToApp('uptime', { insertTimestamp: false });
// dismiss the Management tour if it's present
if (await this.testSubjects.exists('syntheticsManagementTourDismiss')) {
if (await testSubjects.exists('syntheticsManagementTourDismiss')) {
await testSubjects.click('syntheticsManagementTourDismiss');
}
await PageObjects.timePicker.setCommonlyUsedTime('Last_1 year');