Skip to content
Permalink
Browse files

Add refresh and wait to integration test

  • Loading branch information...
rileyjbauer committed Apr 17, 2019
1 parent 3567930 commit bc6072c4f6f17f59fec8042f66ac055323c1739b
Showing with 12 additions and 3 deletions.
  1. +12 −3 test/frontend-integration-test/helloworld.spec.js
@@ -229,9 +229,18 @@ describe('deploy helloworld sample run', () => {
});

it('displays both runs in all runs page', () => {
$('.tableRow').waitForVisible();
const rows = $$('.tableRow').length;
assert(rows === 2, 'there should now be two runs in the table, instead there are: ' + rows);
let attempts = 30;

// Wait for a reasonable amount of time until the run starts
while (attempts && $$('.tableRow').length !== 2) {
browser.pause(1000);
if (browser.isVisible('#refreshBtn')) {
$('#refreshBtn').click();
}
--attempts;
}

assert(attempts, `waited for 30 seconds but table had ${$$('.tableRow').length} entries.`);
});

it('navigates back to the experiment list', () => {

0 comments on commit bc6072c

Please sign in to comment.
You can’t perform that action at this time.