[8.7] [Stack Functional Integration] Dismiss uptime tour message (#153900) (#153907)

# Backport

This will backport the following commits from `main` to `8.7`:
- [[Stack Functional Integration] Dismiss uptime tour message
(#153900)](https://github.com/elastic/kibana/pull/153900)

<!--- 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-03-29T00:26:19Z","message":"[Stack
Functional Integration] Dismiss uptime tour message (#153900)\n\n##
Summary\r\n\r\nWe need to dismiss the uptime tour pop-up because it
overlaps the time\r\npicker that we're using in the uptime
test.\r\n\r\n\r\n![heartbeat app check heartbeat overview page Uptime
app should show
1\r\nUP\r\nmonitor-a90540b07152e95d346a0b8c52c4e3a5cad6a74cf5f6f3acce0988d95515c316](https://user-images.githubusercontent.com/5196019/228361006-c4338ffc-9e35-4999-b93f-58bd2c918bdd.png)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"68a782aa4c5046dfe1fa70a81987bd99c8bfe6cf","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["test","Team:QA","release_note:skip","test-stack-integration","v8.7.0","v8.8.0"],"number":153900,"url":"https://github.com/elastic/kibana/pull/153900","mergeCommit":{"message":"[Stack
Functional Integration] Dismiss uptime tour message (#153900)\n\n##
Summary\r\n\r\nWe need to dismiss the uptime tour pop-up because it
overlaps the time\r\npicker that we're using in the uptime
test.\r\n\r\n\r\n![heartbeat app check heartbeat overview page Uptime
app should show
1\r\nUP\r\nmonitor-a90540b07152e95d346a0b8c52c4e3a5cad6a74cf5f6f3acce0988d95515c316](https://user-images.githubusercontent.com/5196019/228361006-c4338ffc-9e35-4999-b93f-58bd2c918bdd.png)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"68a782aa4c5046dfe1fa70a81987bd99c8bfe6cf"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/153900","number":153900,"mergeCommit":{"message":"[Stack
Functional Integration] Dismiss uptime tour message (#153900)\n\n##
Summary\r\n\r\nWe need to dismiss the uptime tour pop-up because it
overlaps the time\r\npicker that we're using in the uptime
test.\r\n\r\n\r\n![heartbeat app check heartbeat overview page Uptime
app should show
1\r\nUP\r\nmonitor-a90540b07152e95d346a0b8c52c4e3a5cad6a74cf5f6f3acce0988d95515c316](https://user-images.githubusercontent.com/5196019/228361006-c4338ffc-9e35-4999-b93f-58bd2c918bdd.png)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"68a782aa4c5046dfe1fa70a81987bd99c8bfe6cf"}}]}]
BACKPORT-->

Co-authored-by: Marius Dragomir <marius-dr@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2023-03-28 21:23:16 -04:00 committed by GitHub
parent 5e3c8bc271
commit 3a33952eb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,12 +11,13 @@ import { FtrProviderContext } from '../../../functional/ftr_provider_context';
export default function ({ getService, getPageObjects }: FtrProviderContext) {
const retry = getService('retry');
const PageObjects = getPageObjects(['common', 'uptime', 'timePicker']);
const testSubjects = getService('testSubjects');
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');
await PageObjects.timePicker.setCommonlyUsedTime('Last_1 year');
await retry.try(async function () {
const upCount = parseInt((await PageObjects.uptime.getSnapshotCount()).up, 10);
expect(upCount).to.eql(1);