提交 7223e4bf 编写于 作者: M Michel Kaporin

Added wait time for peek widgets to be loaded.

上级 b7f1bdc8
......@@ -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');
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册