Skip to content

Commit 3287219

Browse files
committed
add: patch to use device scale for Playwright page screenshots in browser tests
1 parent 3946ba9 commit 3287219

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
--- a/src/Playwright/Page.php
2+
+++ b/src/Playwright/Page.php
3+
@@
4+
- return [
5+
- 'type' => 'png',
6+
- 'fullPage' => $fullPage,
7+
- 'caret' => 'hide',
8+
- 'animations' => 'disabled',
9+
- 'scale' => 'css',
10+
- ];
11+
+ return [
12+
+ 'type' => 'png',
13+
+ 'fullPage' => $fullPage,
14+
+ 'caret' => 'hide',
15+
+ 'animations' => 'disabled',
16+
+ 'scale' => 'device',
17+
+ ];
18+
}

0 commit comments

Comments
 (0)