smoketest: fix openFile

This commit is contained in:
Joao Moreno
2018-04-12 11:42:32 +02:00
parent 1101029851
commit 24da7d88a6

View File

@@ -35,7 +35,7 @@ export class QuickOpen {
async openFile(fileName: string): Promise<void> {
await this.openQuickOpen(fileName);
await this.waitForQuickOpenElements(names => names.some(n => n === fileName));
await this.waitForQuickOpenElements(names => names[0] === fileName);
await this.code.dispatchKeybinding('enter');
await this.editors.waitForActiveTab(fileName);
await this.editors.waitForEditorFocus(fileName);