Stabilize dashboard save modal functional test (#52761) (#52871)

This commit is contained in:
Joe Reuter 2019-12-12 15:30:18 +01:00 committed by GitHub
parent 5ad2732861
commit 22499087f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -55,6 +55,7 @@ export default function ({ getPageObjects }) {
await PageObjects.dashboard.clickNewDashboard();
await PageObjects.dashboard.enterDashboardTitleAndClickSave(dashboardName, { waitDialogIsClosed: false });
await PageObjects.dashboard.ensureDuplicateTitleCallout();
await PageObjects.dashboard.clickSave();
// This is important since saving a new dashboard will cause a refresh of the page. We have to

View file

@ -376,6 +376,10 @@ export function DashboardPageProvider({ getService, getPageObjects }) {
}
}
async ensureDuplicateTitleCallout() {
await testSubjects.existOrFail('titleDupicateWarnMsg');
}
/**
* @param dashboardTitle {String}
*/