components
components copied to clipboard
MatAutocompleteHarness doesn't open on `focus()` or `getOptions()`
trafficstars
Is this a regression?
- [X] Yes, this behavior used to work previously
The previous version in which this bug was not present was
Puppeteer 23.1.1
Description
I guess somewhere between Puppeteer v. 23.1.1 and 23.3.0 Chromium must have been changed in a significant way.
Seems to be this bug again: https://github.com/angular/components/issues/23757
Also routerHarness.fixture.nativeElement.querySelector(':focus') returns null while routerHarness.routeNativeElement?.ownerDocument.activeElement works.
Somehow these issues don't come up if the specific test is executed in isolation. It might depend on the order of execution.
Environment
Angular 18.2.3 / Jasmine 5.3.0 / Karma 6.4.4 / Puppeteer 23.3.0 / Linux