mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
missing awaits
This commit is contained in:
parent
8b0c4113f5
commit
3ae4540821
|
@ -19,7 +19,7 @@ describe('Editor', () => {
|
|||
const outline = await app.workbench.editor.openOutline();
|
||||
|
||||
const symbols = await outline.getQuickOpenElements();
|
||||
app.screenshot.capture('Javascript Outline result');
|
||||
await app.screenshot.capture('Javascript Outline result');
|
||||
assert.equal(symbols.length, 12, 'Quick outline elements count does not match to expected.');
|
||||
});
|
||||
|
||||
|
@ -29,7 +29,7 @@ describe('Editor', () => {
|
|||
const references = await app.workbench.editor.findReferences('app', 7);
|
||||
|
||||
const countInTitle = await references.getCountFromTitle();
|
||||
app.screenshot.capture('References result');
|
||||
await app.screenshot.capture('References result');
|
||||
assert.equal(countInTitle, 3, 'References count in widget title is not as expected.');
|
||||
const referencesCount = await references.getCount();
|
||||
assert.equal(referencesCount, 3, 'References count in tree is not as expected.');
|
||||
|
@ -42,10 +42,10 @@ describe('Editor', () => {
|
|||
|
||||
const selector = await app.workbench.editor.getSelector('app', 7);
|
||||
const rename = await app.workbench.editor.rename('app', 7);
|
||||
rename.rename('newApp');
|
||||
await rename.rename('newApp');
|
||||
|
||||
const actual = await app.client.waitForText(selector, 'newApp');
|
||||
app.screenshot.capture('Rename result');
|
||||
await app.screenshot.capture('Rename result');
|
||||
assert.equal(actual, 'newApp');
|
||||
});
|
||||
|
||||
|
@ -79,7 +79,7 @@ describe('Editor', () => {
|
|||
const peek = await app.workbench.editor.peekDefinition('express', 11);
|
||||
|
||||
const definitionFilename = await peek.getFileNameFromTitle();
|
||||
app.screenshot.capture('Peek definition result');
|
||||
await app.screenshot.capture('Peek definition result');
|
||||
assert.equal(definitionFilename, 'index.d.ts', 'Peek result is not as expected.');
|
||||
});
|
||||
});
|
Loading…
Reference in a new issue