Skip to content

Commit c2b13de

Browse files
committed
rename MatAutocompleteOptionHarness click method to select
1 parent 98b2944 commit c2b13de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/material/autocomplete/testing/autocomplete-harness.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class MatAutocompleteHarness extends ComponentHarness {
8787
if (!options.length) {
8888
throw Error(`Could not find a mat-option matching ${JSON.stringify(filters)}`);
8989
}
90-
await options[0].click();
90+
await options[0].select();
9191
}
9292

9393
/** Gets whether the autocomplete is open. */

src/material/autocomplete/testing/option-harness.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class MatAutocompleteOptionHarness extends ComponentHarness {
3333
}
3434

3535
/** Clicks the option. */
36-
async click(): Promise<void> {
36+
async select(): Promise<void> {
3737
return (await this.host()).click();
3838
}
3939

0 commit comments

Comments
 (0)