Skip to content

Commit

Permalink
smoke: remove flakyness from search smoke tests
Browse files Browse the repository at this point in the history
fixes #51137
  • Loading branch information
joaomoreno committed Jun 5, 2018
1 parent 54298e2 commit 5b2e81d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/smoke/src/areas/search/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class Search extends Viewlet {
}

async removeFileMatch(index: number): Promise<void> {
await this.code.waitAndMove(`${VIEWLET} .results .monaco-tree-rows>:nth-child(${index}) .filematch`);
await this.code.waitAndClick(`${VIEWLET} .results .monaco-tree-rows>:nth-child(${index}) .filematch`);
const file = await this.code.waitForTextContent(`${VIEWLET} .results .monaco-tree-rows>:nth-child(${index}) .filematch a.label-name`);
await this.code.waitAndClick(`${VIEWLET} .results .monaco-tree-rows>:nth-child(${index}) .filematch .action-label.icon.action-remove`);
await this.code.waitForTextContent(`${VIEWLET} .results .monaco-tree-rows>:nth-child(${index}) .filematch a.label-name`, void 0, result => result !== file);
Expand Down

0 comments on commit 5b2e81d

Please sign in to comment.