Skip to content

Commit

Permalink
smoke: fix quick open focus issue
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Sep 22, 2017
1 parent 9cc82e7 commit ddda903
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/smoke/src/areas/quickopen/quickopen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ export class QuickOpen {
public async openCommandPallette(): Promise<void> {
await this.spectron.command('workbench.action.showCommands');
await this.waitForQuickOpenOpened();

// we gotta wait 50 milliseconds due to https://github.com/Microsoft/vscode/blob/master/src/vs/platform/list/browser/listService.ts#L59
await new Promise(c => setTimeout(c, 50));
}

public async closeQuickOpen(): Promise<void> {
Expand Down

0 comments on commit ddda903

Please sign in to comment.