Skip to content

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

Revert "chore(devices): Add more devices (#35961)" (#36002)

Yury Semikhatsky697787cd1641
diff --git a/packages/playwright-client/types/types.d.ts b/packages/playwright-client/types/types.d.ts
index 666554a391..cd23c6702f 100644
--- a/packages/playwright-client/types/types.d.ts
+++ b/packages/playwright-client/types/types.d.ts
@@ -22669,22 +22669,14 @@ type Devices = {
"Galaxy S8 landscape": DeviceDescriptor;
"Galaxy S9+": DeviceDescriptor;
"Galaxy S9+ landscape": DeviceDescriptor;
- "Galaxy S24": DeviceDescriptor;
- "Galaxy S24 landscape": DeviceDescriptor;
- "Galaxy A55": DeviceDescriptor;
- "Galaxy A55 landscape": DeviceDescriptor;
"Galaxy Tab S4": DeviceDescriptor;
"Galaxy Tab S4 landscape": DeviceDescriptor;
- "Galaxy Tab S9": DeviceDescriptor;
- "Galaxy Tab S9 landscape": DeviceDescriptor;
"iPad (gen 5)": DeviceDescriptor;
"iPad (gen 5) landscape": DeviceDescriptor;
"iPad (gen 6)": DeviceDescriptor;
"iPad (gen 6) landscape": DeviceDescriptor;
"iPad (gen 7)": DeviceDescriptor;
"iPad (gen 7) landscape": DeviceDescriptor;
- "iPad (gen 11)": DeviceDescriptor;
- "iPad (gen 11) landscape": DeviceDescriptor;
"iPad Mini": DeviceDescriptor;
"iPad Mini landscape": DeviceDescriptor;
"iPad Pro 11": DeviceDescriptor;
@@ -22703,8 +22695,6 @@ type Devices = {
"iPhone 8 Plus landscape": DeviceDescriptor;
"iPhone SE": DeviceDescriptor;
"iPhone SE landscape": DeviceDescriptor;
- "iPhone SE (3rd gen)": DeviceDescriptor;
- "iPhone SE (3rd gen) landscape": DeviceDescriptor;
"iPhone X": DeviceDescriptor;
"iPhone X landscape": DeviceDescriptor;
"iPhone XR": DeviceDescriptor;
diff --git a/packages/playwright-core/src/server/deviceDescriptorsSource.json b/packages/playwright-core/src/server/deviceDescriptorsSource.json
index 623863fa28..c874d17b36 100644
--- a/packages/playwright-core/src/server/deviceDescriptorsSource.json
+++ b/packages/playwright-core/src/server/deviceDescriptorsSource.json
@@ -175,50 +175,6 @@
"hasTouch": true,
"defaultBrowserType": "chromium"
},
- "Galaxy S24": {
- "userAgent": "Mozilla/5.0 (Linux; Android 14; SM-S921U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.7151.6 Mobile Safari/537.36",
- "viewport": {
- "width": 480,
- "height": 1040
- },
- "deviceScaleFactor": 2.25,
- "isMobile": true,
- "hasTouch": true,
- "defaultBrowserType": "chromium"
- },
- "Galaxy S24 landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 14; SM-S921U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.7151.6 Mobile Safari/537.36",
- "viewport": {
- "width": 1040,
- "height": 480
- },
- "deviceScaleFactor": 2.25,
- "isMobile": true,
- "hasTouch": true,
- "defaultBrowserType": "chromium"
- },
- "Galaxy A55": {
- "userAgent": "Mozilla/5.0 (Linux; Android 14; SM-A556B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.7151.6 Mobile Safari/537.36",
- "viewport": {
- "width": 480,
- "height": 1040
- },
- "deviceScaleFactor": 2.25,
- "isMobile": true,
- "hasTouch": true,
- "defaultBrowserType": "chromium"
- },
- "Galaxy A55 landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 14; SM-A556B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.7151.6 Mobile Safari/537.36",
- "viewport": {
- "width": 1040,
- "height": 480
- },
- "deviceScaleFactor": 2.25,
- "isMobile": true,
- "hasTouch": true,
- "defaultBrowserType": "chromium"
- },
"Galaxy Tab S4": {
"userAgent": "Mozilla/5.0 (Linux; Android 8.1.0; SM-T837A) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.7151.27 Safari/537.36",
"viewport": {
@@ -241,28 +197,6 @@
"hasTouch": true,
"defaultBrowserType": "chromium"
},
- "Galaxy Tab S9": {
- "userAgent": "Mozilla/5.0 (Linux; Android 14; SM-X710) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.7151.6 Safari/537.36",
- "viewport": {
- "width": 640,
- "height": 1024
- },
- "deviceScaleFactor": 2.5,
- "isMobile": true,
- "hasTouch": true,
- "defaultBrowserType": "chromium"
- },
- "Galaxy Tab S9 landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 14; SM-X710) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.7151.6 Safari/537.36",
- "viewport": {
- "width": 1024,
- "height": 640
- },
- "deviceScaleFactor": 2.5,
- "isMobile": true,
- "hasTouch": true,
- "defaultBrowserType": "chromium"
- },
"iPad (gen 5)": {
"userAgent": "Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.4 Mobile/15E148 Safari/604.1",
"viewport": {
@@ -329,28 +263,6 @@
"hasTouch": true,
"defaultBrowserType": "webkit"
},
- "iPad (gen 11)": {
- "userAgent": "Mozilla/5.0 (iPad; CPU OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.4 Mobile/19E241 Safari/604.1",
- "viewport": {
- "width": 656,
- "height": 944
- },
- "deviceScaleFactor": 2.5,
- "isMobile": true,
- "hasTouch": true,
- "defaultBrowserType": "webkit"
- },
- "iPad (gen 11) landscape": {
- "userAgent": "Mozilla/5.0 (iPad; CPU OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.4 Mobile/19E241 Safari/604.1",
- "viewport": {
- "width": 944,
- "height": 656
- },
- "deviceScaleFactor": 2.5,
- "isMobile": true,
- "hasTouch": true,
- "defaultBrowserType": "webkit"
- },
"iPad Mini": {
"userAgent": "Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.4 Mobile/15E148 Safari/604.1",
"viewport": {
@@ -549,28 +461,6 @@
"hasTouch": true,
"defaultBrowserType": "webkit"
},
- "iPhone SE (3rd gen)": {
- "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/18.4 Mobile/19E241 Safari/602.1",
- "viewport": {
- "width": 375,
- "height": 667
- },
- "deviceScaleFactor": 2,
- "isMobile": true,
- "hasTouch": true,
- "defaultBrowserType": "webkit"
- },
- "iPhone SE (3rd gen) landscape": {
- "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/18.4 Mobile/19E241 Safari/602.1",
- "viewport": {
- "width": 667,
- "height": 375
- },
- "deviceScaleFactor": 2,
- "isMobile": true,
- "hasTouch": true,
- "defaultBrowserType": "webkit"
- },
"iPhone X": {
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/18.4 Mobile/15A372 Safari/604.1",
"viewport": {
diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts
index 666554a391..cd23c6702f 100644
--- a/packages/playwright-core/types/types.d.ts
+++ b/packages/playwright-core/types/types.d.ts
@@ -22669,22 +22669,14 @@ type Devices = {
"Galaxy S8 landscape": DeviceDescriptor;
"Galaxy S9+": DeviceDescriptor;
"Galaxy S9+ landscape": DeviceDescriptor;
- "Galaxy S24": DeviceDescriptor;
- "Galaxy S24 landscape": DeviceDescriptor;
- "Galaxy A55": DeviceDescriptor;
- "Galaxy A55 landscape": DeviceDescriptor;
"Galaxy Tab S4": DeviceDescriptor;
"Galaxy Tab S4 landscape": DeviceDescriptor;
- "Galaxy Tab S9": DeviceDescriptor;
- "Galaxy Tab S9 landscape": DeviceDescriptor;
"iPad (gen 5)": DeviceDescriptor;
"iPad (gen 5) landscape": DeviceDescriptor;
"iPad (gen 6)": DeviceDescriptor;
"iPad (gen 6) landscape": DeviceDescriptor;
"iPad (gen 7)": DeviceDescriptor;
"iPad (gen 7) landscape": DeviceDescriptor;
- "iPad (gen 11)": DeviceDescriptor;
- "iPad (gen 11) landscape": DeviceDescriptor;
"iPad Mini": DeviceDescriptor;
"iPad Mini landscape": DeviceDescriptor;
"iPad Pro 11": DeviceDescriptor;
@@ -22703,8 +22695,6 @@ type Devices = {
"iPhone 8 Plus landscape": DeviceDescriptor;
"iPhone SE": DeviceDescriptor;
"iPhone SE landscape": DeviceDescriptor;
- "iPhone SE (3rd gen)": DeviceDescriptor;
- "iPhone SE (3rd gen) landscape": DeviceDescriptor;
"iPhone X": DeviceDescriptor;
"iPhone X landscape": DeviceDescriptor;
"iPhone XR": DeviceDescriptor;