Skip to content

Commit e568cf5

Browse files
committed
Fix search smoke tests
1 parent 8f83fba commit e568cf5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/automation/src/search.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ export class Search extends Viewlet {
8484
}
8585

8686
async expandReplace(): Promise<void> {
87-
await this.code.waitAndClick(`${VIEWLET} .search-widget .monaco-button.toggle-replace-button.collapse`);
87+
await this.code.waitAndClick(`${VIEWLET} .search-widget .monaco-button.toggle-replace-button.codicon-chevron-right`);
8888
}
8989

9090
async collapseReplace(): Promise<void> {
91-
await this.code.waitAndClick(`${VIEWLET} .search-widget .monaco-button.toggle-replace-button.expand`);
91+
await this.code.waitAndClick(`${VIEWLET} .search-widget .monaco-button.toggle-replace-button.codicon-chevron-down`);
9292
}
9393

9494
async setReplaceText(text: string): Promise<void> {
@@ -100,12 +100,12 @@ export class Search extends Viewlet {
100100

101101
await retry(
102102
() => this.code.waitAndClick(fileMatch),
103-
() => this.code.waitForElement(`${fileMatch} .action-label.codicon.action-replace-all`, el => !!el && el.top > 0 && el.left > 0, 10)
103+
() => this.code.waitForElement(`${fileMatch} .action-label.codicon.codicon-replace-all`, el => !!el && el.top > 0 && el.left > 0, 10)
104104
);
105105

106106
// ¯\_(ツ)_/¯
107107
await new Promise(c => setTimeout(c, 500));
108-
await this.code.waitAndClick(`${fileMatch} .action-label.codicon.action-replace-all`);
108+
await this.code.waitAndClick(`${fileMatch} .action-label.codicon.codicon-replace-all`);
109109
}
110110

111111
async waitForResultText(text: string): Promise<void> {

0 commit comments

Comments
 (0)