You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test('should preserve emulated media',async({ page })=>{awaitpage.emulateMedia({reducedMotion: 'reduce'});// This works in all browsers.expect(awaitpage.evaluate(()=>matchMedia('(prefers-reduced-motion: reduce)').matches)).toEqual(true);awaitpage.goto('https://angular.dev');// This only works in Chrome and Safari.expect(awaitpage.evaluate(()=>matchMedia('(prefers-reduced-motion: reduce)').matches)).toEqual(true);});
Expected behavior
It should preserve the emulated media after loading a new page.
Actual behavior
It seems to reset the emulated media when loading a new page.
Additional context
For some strange reason this only seems to affect websites build with Angular. At least I could only reproduce it on websites build with Angular so far. The following test works as expected across all three browsers.
Version
1.44.1
Steps to reproduce
The following test will fail in Firefox:
Expected behavior
It should preserve the emulated media after loading a new page.
Actual behavior
It seems to reset the emulated media when loading a new page.
Additional context
For some strange reason this only seems to affect websites build with Angular. At least I could only reproduce it on websites build with Angular so far. The following test works as expected across all three browsers.
Environment
The text was updated successfully, but these errors were encountered: