Skip to content

Commit 39e219b

Browse files
committed
test: wait for async tasks in timepicker harness selectOption
1 parent 4e34087 commit 39e219b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ export class MatTimepickerHarness extends ComponentHarness {
5959
throw Error(`Could not find a mat-option matching ${JSON.stringify(filters)}`);
6060
}
6161
await options[0].click();
62+
// Wait for the timepicker to close after selection
63+
await this.waitForTasksOutsideAngular();
6264
}
6365

6466
/** Gets the selector that can be used to find the timepicker's panel. */

0 commit comments

Comments
 (0)