提交 7f454919 编写于 作者: J Joao Moreno

smoketest: avoid more flakyness in search

上级 326ead98
......@@ -54,6 +54,10 @@ export class Search extends Viewlet {
async removeFileMatch(index: number): Promise<void> {
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册