Skip to content

Commit

Permalink
save more screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
stacey-gammon committed Feb 23, 2017
1 parent 807b190 commit 3d025e9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/functional/apps/dashboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ bdd.describe('dashboard app', function () {
return remote.setWindowSize(1200,800);
});

// require('./_dashboard');
require('./_dashboard');
require('./_dashboard_save');
// require('./_dashboard_time');
require('./_dashboard_time');
});
2 changes: 1 addition & 1 deletion test/support/page_objects/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export default class Common {
.findByCssSelector(selector)
.then(() => true)
.catch(() => false);
this.remote.setFindTimeout(defaultFindTimeout);
await this.remote.setFindTimeout(defaultFindTimeout);

PageObjects.common.debug(`exists? ${exists}`);
return exists;
Expand Down
4 changes: 3 additions & 1 deletion test/support/page_objects/dashboard_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default class DashboardPage {
const searchFilter = await PageObjects.common.findTestSubject('searchFilter');
PageObjects.common.debug('gotoDashboardLandingPage: search filter found? ' + searchFilter);
});
await PageObjects.common.saveScreenshot('dashboard-should-be-on-landing-page');
}
}

Expand Down Expand Up @@ -200,11 +201,12 @@ export default class DashboardPage {
const searchFilter = await PageObjects.common.findTestSubject('searchFilter');
PageObjects.common.debug('searchForDashboardWithName: search Filter object found: ' + searchFilter);
await searchFilter.click();
await PageObjects.common.saveScreenshot('searchForDashboardWithName-after-click');
// Note: this replacement of - to space is to preserve original logic but I'm not sure why or if it's needed.
await searchFilter.type(dashName.replace('-',' '));
});

return await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.header.waitUntilLoadingHasFinished();
}

async getDashboardCountWithName(dashName) {
Expand Down
1 change: 0 additions & 1 deletion test/support/utils/try.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class Try {
let prevMessage;

function attempt() {
Log.debug('--- tryForTime: Retrying...');
lastTry = Date.now();

if (lastTry - start > timeout) {
Expand Down

0 comments on commit 3d025e9

Please sign in to comment.