diff --git a/test/functional/apps/dashboard/dashboard_save.js b/test/functional/apps/dashboard/dashboard_save.js index 8e4c4d66b3844..88a1c592ec74e 100644 --- a/test/functional/apps/dashboard/dashboard_save.js +++ b/test/functional/apps/dashboard/dashboard_save.js @@ -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 diff --git a/test/functional/page_objects/dashboard_page.js b/test/functional/page_objects/dashboard_page.js index 73424a3df55da..f7b0cf41d30e4 100644 --- a/test/functional/page_objects/dashboard_page.js +++ b/test/functional/page_objects/dashboard_page.js @@ -376,6 +376,10 @@ export function DashboardPageProvider({ getService, getPageObjects }) { } } + async ensureDuplicateTitleCallout() { + await testSubjects.existOrFail('titleDupicateWarnMsg'); + } + /** * @param dashboardTitle {String} */