mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
parent
5ad2732861
commit
22499087f3
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -376,6 +376,10 @@ export function DashboardPageProvider({ getService, getPageObjects }) {
|
|||
}
|
||||
}
|
||||
|
||||
async ensureDuplicateTitleCallout() {
|
||||
await testSubjects.existOrFail('titleDupicateWarnMsg');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param dashboardTitle {String}
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue