Skip to content

Commit 622c7e0

Browse files
committed
stabilize test
1 parent b6ea699 commit 622c7e0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

test/functional/apps/dashboard/dashboard_save.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export default function ({ getPageObjects }) {
5555
await PageObjects.dashboard.clickNewDashboard();
5656
await PageObjects.dashboard.enterDashboardTitleAndClickSave(dashboardName, { waitDialogIsClosed: false });
5757

58+
await PageObjects.dashboard.ensureDuplicateTitleCallout();
5859
await PageObjects.dashboard.clickSave();
5960

6061
// This is important since saving a new dashboard will cause a refresh of the page. We have to

test/functional/page_objects/dashboard_page.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,10 @@ export function DashboardPageProvider({ getService, getPageObjects }) {
376376
}
377377
}
378378

379+
async ensureDuplicateTitleCallout() {
380+
await testSubjects.existOrFail('titleDupicateWarnMsg');
381+
}
382+
379383
/**
380384
* @param dashboardTitle {String}
381385
*/

0 commit comments

Comments
 (0)