Skip to content

Commit 2ed847b

Browse files
jeanp413akosyakov
authored andcommitted
Try to fix explorer smoke test in ci
1 parent 7b1d513 commit 2ed847b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/automation/src/explorer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ export class Explorer extends Viewlet {
2929
}
3030

3131
async openFile(fileName: string): Promise<any> {
32+
await this.code.waitForElement(`div[class="monaco-icon-label file-icon ${fileName}-name-file-icon ${this.getExtensionSelector(fileName)} explorer-item"]`);
33+
await new Promise(c => setTimeout(c, 500));
3234
await this.code.waitAndDoubleClick(`div[class="monaco-icon-label file-icon ${fileName}-name-file-icon ${this.getExtensionSelector(fileName)} explorer-item"]`);
3335
await this.editors.waitForEditorFocus(fileName);
3436
}

0 commit comments

Comments
 (0)