Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
Reapply "chore(devices): Add more devices (#35961)" (#36096)
Simon Knottb8ed47625870
diff --git a/packages/playwright-client/types/types.d.ts b/packages/playwright-client/types/types.d.tsindex 50bc6273e7..5fd12155ff 100644--- a/packages/playwright-client/types/types.d.ts+++ b/packages/playwright-client/types/types.d.ts@@ -22702,14 +22702,22 @@ 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;@@ -22728,6 +22736,8 @@ 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.jsonindex 0f024250ef..d72746809f 100644--- a/packages/playwright-core/src/server/deviceDescriptorsSource.json+++ b/packages/playwright-core/src/server/deviceDescriptorsSource.json@@ -175,6 +175,50 @@"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.40 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.40 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.40 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.40 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.40 Safari/537.36","viewport": {@@ -197,6 +241,28 @@"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.40 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.40 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": {@@ -263,6 +329,28 @@"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": {@@ -461,6 +549,28 @@"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.tsindex 50bc6273e7..5fd12155ff 100644--- a/packages/playwright-core/types/types.d.ts+++ b/packages/playwright-core/types/types.d.ts@@ -22702,14 +22702,22 @@ 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;@@ -22728,6 +22736,8 @@ 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;