mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
fix smoketest
This commit is contained in:
parent
0a92f93a11
commit
2561955280
|
@ -74,12 +74,12 @@ export class Search extends Viewlet {
|
||||||
|
|
||||||
await retry(
|
await retry(
|
||||||
() => this.code.waitAndClick(fileMatch),
|
() => this.code.waitAndClick(fileMatch),
|
||||||
() => this.code.waitForElement(`${fileMatch} .action-label.codicon.search-remove`, el => !!el && el.top > 0 && el.left > 0, 10)
|
() => this.code.waitForElement(`${fileMatch} .action-label.codicon-search-remove`, el => !!el && el.top > 0 && el.left > 0, 10)
|
||||||
);
|
);
|
||||||
|
|
||||||
// ¯\_(ツ)_/¯
|
// ¯\_(ツ)_/¯
|
||||||
await new Promise(c => setTimeout(c, 500));
|
await new Promise(c => setTimeout(c, 500));
|
||||||
await this.code.waitAndClick(`${fileMatch} .action-label.codicon.search-remove`);
|
await this.code.waitAndClick(`${fileMatch} .action-label.codicon-search-remove`);
|
||||||
await this.code.waitForElement(fileMatch, el => !el);
|
await this.code.waitForElement(fileMatch, el => !el);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue