Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
browser(firefox): override reduced motion no-preference (#6683)
Max Schmittb2b45afc2239
diff --git a/browser_patches/firefox-stable/BUILD_NUMBER b/browser_patches/firefox-stable/BUILD_NUMBERindex 35777344fa..20c6dfedf0 100644--- a/browser_patches/firefox-stable/BUILD_NUMBER+++ b/browser_patches/firefox-stable/BUILD_NUMBER@@ -1,2 +1,2 @@-1255-Changed: [email protected] Wed 19 May 2021 06:54:50 PM PDT+1256+Changed: [email protected] Thu May 20 19:04:31 UTC 2021diff --git a/browser_patches/firefox-stable/juggler/TargetRegistry.js b/browser_patches/firefox-stable/juggler/TargetRegistry.jsindex 9346b74aa7..d60becb43e 100644--- a/browser_patches/firefox-stable/juggler/TargetRegistry.js+++ b/browser_patches/firefox-stable/juggler/TargetRegistry.js@@ -622,9 +622,9 @@ function fromProtocolColorScheme(colorScheme) {}function fromProtocolReducedMotion(reducedMotion) {- if (reducedMotion === 'reduce')+ if (reducedMotion === 'reduce' || reducedMotion === 'no-preference')return reducedMotion;- if (reducedMotion === null || reducedMotion === 'no-preference')+ if (reducedMotion === null)return undefined;throw new Error('Unknown reduced motion: ' + reducedMotion);}diff --git a/browser_patches/firefox/BUILD_NUMBER b/browser_patches/firefox/BUILD_NUMBERindex d6d50f6f72..02238fc1d4 100644--- a/browser_patches/firefox/BUILD_NUMBER+++ b/browser_patches/firefox/BUILD_NUMBER@@ -1,2 +1,2 @@-1265-Changed: [email protected] Wed 19 May 2021 06:53:35 PM PDT+1266+Changed: [email protected] Thu May 20 19:02:11 UTC 2021diff --git a/browser_patches/firefox/juggler/TargetRegistry.js b/browser_patches/firefox/juggler/TargetRegistry.jsindex 9346b74aa7..d60becb43e 100644--- a/browser_patches/firefox/juggler/TargetRegistry.js+++ b/browser_patches/firefox/juggler/TargetRegistry.js@@ -622,9 +622,9 @@ function fromProtocolColorScheme(colorScheme) {}function fromProtocolReducedMotion(reducedMotion) {- if (reducedMotion === 'reduce')+ if (reducedMotion === 'reduce' || reducedMotion === 'no-preference')return reducedMotion;- if (reducedMotion === null || reducedMotion === 'no-preference')+ if (reducedMotion === null)return undefined;throw new Error('Unknown reduced motion: ' + reducedMotion);}