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

# Backport

This will backport the following commits from `main` to `8.7`:
- [[Stack Functional Integration] Fix test from #154115
(#154289)](https://github.com/elastic/kibana/pull/154289)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Marius
Dragomir","email":"marius-dr@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-04-03T22:16:18Z","message":"[Stack
Functional Integration] Fix test from #154115 (#154289)\n\n##
Summary\r\n\r\nFixes the context in the check added by
#154115","sha":"b41e6cf4f6f14c300006b03b578b3f4ab91833cf","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["test","Team:QA","release_note:skip","test-stack-integration","v8.8.0","v8.7.1"],"number":154289,"url":"https://github.com/elastic/kibana/pull/154289","mergeCommit":{"message":"[Stack
Functional Integration] Fix test from #154115 (#154289)\n\n##
Summary\r\n\r\nFixes the context in the check added by
#154115","sha":"b41e6cf4f6f14c300006b03b578b3f4ab91833cf"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/154289","number":154289,"mergeCommit":{"message":"[Stack
Functional Integration] Fix test from #154115 (#154289)\n\n##
Summary\r\n\r\nFixes the context in the check added by
#154115","sha":"b41e6cf4f6f14c300006b03b578b3f4ab91833cf"}},{"branch":"8.7","label":"v8.7.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Marius Dragomir <marius-dr@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2023-04-03 19:12:17 -04:00 committed by GitHub
parent f0334bf585
commit 1e2debad35
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');