File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -615,11 +615,18 @@ public function testPrefersReducedMotionDisabled(string $browser): void
615
615
{
616
616
$ this ->expectException (ElementClickInterceptedException::class);
617
617
618
+ $ previous = $ _SERVER ['PANTHER_NO_REDUCED_MOTION ' ] ?? null ;
618
619
$ _SERVER ['PANTHER_NO_REDUCED_MOTION ' ] = true ;
619
620
$ client = self ::createPantherClient (['browser ' => $ browser ]);
620
621
$ client ->request ('GET ' , '/prefers-reduced-motion.html ' );
621
622
622
623
$ client ->clickLink ('Click me! ' );
624
+
625
+ if (null === $ previous ) {
626
+ unset($ _SERVER ['PANTHER_NO_REDUCED_MOTION ' ]);
627
+ } else {
628
+ $ _SERVER ['PANTHER_NO_REDUCED_MOTION ' ] = $ previous ;
629
+ }
623
630
}
624
631
625
632
public static function providePrefersReducedMotion (): iterable
You can’t perform that action at this time.
0 commit comments