mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
* add a dismiss to the uptime tour popup (#142879)
(cherry picked from commit a873c3f974
)
* 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 <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
eee24f55f6
commit
d9c9ee0391
2 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||
|
|
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue