try around some failing dashboard test steps

This commit is contained in:
LeeDr 2016-06-16 10:23:42 -05:00
parent 65f74e08b9
commit 4234c9f6e3

View file

@ -81,10 +81,16 @@ bdd.describe('dashboard tab', function describeIndexTests() {
return dashboardPage.saveDashboard(dashboardName)
// click New Dashboard just to clear the one we just created
.then(function () {
return dashboardPage.clickNewDashboard();
return common.try(function () {
common.debug('saved Dashboard, now click New Dashboard');
return dashboardPage.clickNewDashboard();
});
})
.then(function () {
return dashboardPage.loadSavedDashboard(dashboardName);
return common.try(function () {
common.debug('now re-load previously saved dashboard');
return dashboardPage.loadSavedDashboard(dashboardName);
});
})
.then(function () {
common.saveScreenshot('Dashboard-load-saved');