mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
missing awaits
This commit is contained in:
@@ -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.');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user