We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MatAutocompleteOptionHarness
click
select
1 parent 98b2944 commit c2b13deCopy full SHA for c2b13de
src/material/autocomplete/testing/autocomplete-harness.ts
@@ -87,7 +87,7 @@ export class MatAutocompleteHarness extends ComponentHarness {
87
if (!options.length) {
88
throw Error(`Could not find a mat-option matching ${JSON.stringify(filters)}`);
89
}
90
- await options[0].click();
+ await options[0].select();
91
92
93
/** Gets whether the autocomplete is open. */
src/material/autocomplete/testing/option-harness.ts
@@ -33,7 +33,7 @@ export class MatAutocompleteOptionHarness extends ComponentHarness {
33
34
35
/** Clicks the option. */
36
- async click(): Promise<void> {
+ async select(): Promise<void> {
37
return (await this.host()).click();
38
39
0 commit comments