From 7223e4bfe4892580ef420341a58be5441ed387f7 Mon Sep 17 00:00:00 2001 From: Michel Kaporin Date: Mon, 29 May 2017 12:44:49 +0200 Subject: [PATCH] Added wait time for peek widgets to be loaded. --- test/smoke/src/tests/javascript.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/smoke/src/tests/javascript.ts b/test/smoke/src/tests/javascript.ts index 490677f1f29..3bde32ccc39 100644 --- a/test/smoke/src/tests/javascript.ts +++ b/test/smoke/src/tests/javascript.ts @@ -37,8 +37,8 @@ export function testJavaScript() { it(`finds 'All References' to 'app'`, async function () { await common.openFirstMatchFile('bin/www'); - await app.wait(); await js.findAppReferences(); + await app.wait(); const titleCount = await js.getTitleReferencesCount(); assert.equal(titleCount, 3); const treeCount = await js.getTreeReferencesCount(); @@ -79,6 +79,7 @@ export function testJavaScript() { it(`verifies that 'Peek Definition' works`, async function () { await common.openFirstMatchFile('app.js'); await js.peekExpressDefinition(); + await app.wait(); const definitionFilename = await js.getPeekExpressResultName(); assert.equal(definitionFilename, 'index.d.ts'); }); -- GitLab