Added wait time for peek widgets to be loaded.

This commit is contained in:
Michel Kaporin 2017-05-29 12:44:49 +02:00
parent b7f1bdc8bb
commit 7223e4bfe4

View file

@ -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');
});