@@ -253,15 +253,15 @@ public function boot(): void
253253 });
254254
255255 // Macro for screenshot without fixed elements
256- Browser::macro ('assertScreenshotWithoutFixed ' , function (string $ name , array $ selectorsToHide = null , float | null $ threshold = null , int |null $ metric = null , int $ width = null , int $ height = null ) {
256+ Browser::macro ('assertScreenshotWithoutFixed ' , function (string $ name , float | null $ threshold = null , array $ selectorsToHide = null , int |null $ metric = null , int $ width = null , int $ height = null ) {
257257 /** @var Browser $this */
258258 return $ this ->withoutFixedElements (function ($ browser ) use ($ name , $ threshold , $ metric , $ width , $ height ) {
259259 return $ browser ->assertScreenshot ($ name , $ threshold , $ metric , $ width , $ height );
260260 }, $ selectorsToHide );
261261 });
262262
263263 // Macro for element screenshot without fixed elements
264- Browser::macro ('assertElementScreenshotWithoutFixed ' , function (string $ selector , string $ name , array $ selectorsToHide = null , float | null $ threshold = null , int |null $ metric = null ) {
264+ Browser::macro ('assertElementScreenshotWithoutFixed ' , function (string $ selector , string $ name , float | null $ threshold = null , array $ selectorsToHide = null , int |null $ metric = null ) {
265265 /** @var Browser $this */
266266 return $ this ->withoutFixedElements (function ($ browser ) use ($ selector , $ name , $ threshold , $ metric ) {
267267 return $ browser ->assertElementScreenshot ($ selector , $ name , $ threshold , $ metric );
0 commit comments