Skip to content

Commit

Permalink
Wait until logs appear right (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
yebrahim authored Dec 4, 2018
1 parent efcb7df commit 401f738
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/frontend-integration-test/helloworld.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,10 @@ describe('deploy helloworld sample run', () => {
it('shows logs from node', () => {
$('button=Logs').click();
$('#logViewer').waitForVisible();
const logs = $('#logViewer').getText();
assert(logs.indexOf(outputParameterValue + ' from node: ') > -1,
'logs do not look right: ' + logs);
browser.waitUntil(() => {
const logs = $('#logViewer').getText();
return logs.indexOf(outputParameterValue + ' from node: ') > -1;
}, waitTimeout);
});
//TODO: enable this after we change the pipeline to a unique name such that deleting this
// pipeline will not jeopardize the concurrent basic e2e tests.
Expand Down

0 comments on commit 401f738

Please sign in to comment.