diff --git a/test/smoke/src/areas/search/search.ts b/test/smoke/src/areas/search/search.ts index 4731d6da56a71cba8832dda5549a9cef0c8f5b6f..0cd12942ab04dc4e08c54b349158432521e5f588 100644 --- a/test/smoke/src/areas/search/search.ts +++ b/test/smoke/src/areas/search/search.ts @@ -54,6 +54,10 @@ export class Search extends Viewlet { async removeFileMatch(index: number): Promise { await this.code.waitAndClick(`${VIEWLET} .results .monaco-tree-rows>:nth-child(${index}) .filematch`); + + // give time for Chrome to show the remove label + await new Promise(c => setTimeout(c, 500)); + 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);