Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix: update Galaxy S24 device dimensions and scale factor (#37125)

Marcin Szafranek9173dc9a4627
diff --git a/packages/playwright-core/src/server/deviceDescriptorsSource.json b/packages/playwright-core/src/server/deviceDescriptorsSource.json
index a40feff1ba..dc77eead35 100644
--- a/packages/playwright-core/src/server/deviceDescriptorsSource.json
+++ b/packages/playwright-core/src/server/deviceDescriptorsSource.json
@@ -178,10 +178,10 @@
"Galaxy S24": {
"userAgent": "Mozilla/5.0 (Linux; Android 14; SM-S921U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.7339.16 Mobile Safari/537.36",
"viewport": {
- "width": 480,
- "height": 1040
+ "width": 360,
+ "height": 780
},
- "deviceScaleFactor": 2.25,
+ "deviceScaleFactor": 3,
"isMobile": true,
"hasTouch": true,
"defaultBrowserType": "chromium"
@@ -189,10 +189,10 @@
"Galaxy S24 landscape": {
"userAgent": "Mozilla/5.0 (Linux; Android 14; SM-S921U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.7339.16 Mobile Safari/537.36",
"viewport": {
- "width": 1040,
- "height": 480
+ "width": 780,
+ "height": 360
},
- "deviceScaleFactor": 2.25,
+ "deviceScaleFactor": 3,
"isMobile": true,
"hasTouch": true,
"defaultBrowserType": "chromium"