smoke: remove flakyness from search smoke tests

fixes #51137
This commit is contained in:
Joao Moreno 2018-06-05 16:00:11 +02:00
parent 54298e2861
commit 5b2e81d8b2

View file

@ -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);