mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
parent
fda06ee06a
commit
46dcea538f
2 changed files with 9 additions and 2 deletions
|
@ -50,7 +50,7 @@ export default function({ getService, getPageObjects, updateBaselines }) {
|
|||
await PageObjects.dashboard.clickNewDashboard();
|
||||
await PageObjects.timePicker.setLogstashDataRange();
|
||||
await dashboardAddPanel.addVisualization('Rendering Test: tsvb-ts');
|
||||
await PageObjects.common.closeToast();
|
||||
await PageObjects.common.closeToastIfExists();
|
||||
|
||||
await PageObjects.dashboard.saveDashboard('tsvb');
|
||||
await PageObjects.dashboard.clickFullScreenMode();
|
||||
|
@ -73,7 +73,7 @@ export default function({ getService, getPageObjects, updateBaselines }) {
|
|||
await PageObjects.dashboard.clickNewDashboard();
|
||||
await PageObjects.timePicker.setLogstashDataRange();
|
||||
await dashboardAddPanel.addVisualization('Rendering Test: area with not filter');
|
||||
await PageObjects.common.closeToast();
|
||||
await PageObjects.common.closeToastIfExists();
|
||||
|
||||
await PageObjects.dashboard.saveDashboard('area');
|
||||
await PageObjects.dashboard.clickFullScreenMode();
|
||||
|
|
|
@ -429,6 +429,13 @@ export function CommonPageProvider({ getService, getPageObjects }: FtrProviderCo
|
|||
return title;
|
||||
}
|
||||
|
||||
async closeToastIfExists() {
|
||||
const toastShown = await find.existsByCssSelector('.euiToast');
|
||||
if (toastShown) {
|
||||
await this.closeToast();
|
||||
}
|
||||
}
|
||||
|
||||
async clearAllToasts() {
|
||||
const toasts = await find.allByCssSelector('.euiToast');
|
||||
for (const toastElement of toasts) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue