From 20b2310190239821ae6967efa8a7c16092a16d8e Mon Sep 17 00:00:00 2001 From: Kirill Nagaitsev Date: Fri, 14 Jun 2019 14:34:11 -0500 Subject: [PATCH] test(client): check end of progress updates in console --- test/e2e/Progress.test.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/e2e/Progress.test.js b/test/e2e/Progress.test.js index 302a8ab5b8..6cfa00f0f4 100644 --- a/test/e2e/Progress.test.js +++ b/test/e2e/Progress.test.js @@ -48,11 +48,8 @@ describe('client progress', () => { ); page.waitFor(10000).then(() => { browser.close().then(() => { - // example output that would match: - // "[WDS] 40% - building (0/1 modules)." - const testExp = /\[WDS\] [0-9]{1,3}% - building \([0-1]\/1 modules\)\./; const match = res.find((line) => { - return testExp.test(line); + return line === '[WDS] 100% - Compilation completed.'; }); // eslint-disable-next-line no-undefined expect(match).not.toEqual(undefined);