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
chore: add iPhone 13 device family (#9392)
Max Schmitt49a53e23df96
diff --git a/src/server/deviceDescriptorsSource.json b/src/server/deviceDescriptorsSource.jsonindex b582eb40e7..822667ce96 100644--- a/src/server/deviceDescriptorsSource.json+++ b/src/server/deviceDescriptorsSource.json@@ -663,6 +663,126 @@"hasTouch": true,"defaultBrowserType": "webkit"},+ "iPhone 13": {+ "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1",+ "screen": {+ "width": 390,+ "height": 844+ },+ "viewport": {+ "width": 390,+ "height": 664+ },+ "deviceScaleFactor": 3,+ "isMobile": true,+ "hasTouch": true,+ "defaultBrowserType": "webkit"+ },+ "iPhone 13 landscape": {+ "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1",+ "screen": {+ "width": 390,+ "height": 844+ },+ "viewport": {+ "width": 750,+ "height": 342+ },+ "deviceScaleFactor": 3,+ "isMobile": true,+ "hasTouch": true,+ "defaultBrowserType": "webkit"+ },+ "iPhone 13 Pro": {+ "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1",+ "screen": {+ "width": 390,+ "height": 844+ },+ "viewport": {+ "width": 390,+ "height": 664+ },+ "deviceScaleFactor": 3,+ "isMobile": true,+ "hasTouch": true,+ "defaultBrowserType": "webkit"+ },+ "iPhone 13 Pro landscape": {+ "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1",+ "screen": {+ "width": 390,+ "height": 844+ },+ "viewport": {+ "width": 750,+ "height": 342+ },+ "deviceScaleFactor": 3,+ "isMobile": true,+ "hasTouch": true,+ "defaultBrowserType": "webkit"+ },+ "iPhone 13 Pro Max": {+ "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1",+ "screen": {+ "width": 428,+ "height": 926+ },+ "viewport": {+ "width": 428,+ "height": 746+ },+ "deviceScaleFactor": 3,+ "isMobile": true,+ "hasTouch": true,+ "defaultBrowserType": "webkit"+ },+ "iPhone 13 Pro Max landscape": {+ "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1",+ "screen": {+ "width": 428,+ "height": 926+ },+ "viewport": {+ "width": 832,+ "height": 380+ },+ "deviceScaleFactor": 3,+ "isMobile": true,+ "hasTouch": true,+ "defaultBrowserType": "webkit"+ },+ "iPhone 13 Mini": {+ "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1",+ "screen": {+ "width": 375,+ "height": 812+ },+ "viewport": {+ "width": 375,+ "height": 629+ },+ "deviceScaleFactor": 3,+ "isMobile": true,+ "hasTouch": true,+ "defaultBrowserType": "webkit"+ },+ "iPhone 13 Mini landscape": {+ "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1",+ "screen": {+ "width": 375,+ "height": 812+ },+ "viewport": {+ "width": 712,+ "height": 327+ },+ "deviceScaleFactor": 3,+ "isMobile": true,+ "hasTouch": true,+ "defaultBrowserType": "webkit"+ },"JioPhone 2": {"userAgent": "Mozilla/5.0 (Mobile; LYF/F300B/LYF-F300B-001-01-15-130718-i;Android; rv:89.0 Gecko/48.0 Firefox/92.0 KAIOS/2.5","viewport": {diff --git a/types/types.d.ts b/types/types.d.tsindex 768e31656b..564a0bc486 100644--- a/types/types.d.ts+++ b/types/types.d.ts@@ -15402,6 +15402,14 @@ type Devices = {"iPhone 12 Pro landscape": DeviceDescriptor;"iPhone 12 Pro Max": DeviceDescriptor;"iPhone 12 Pro Max landscape": DeviceDescriptor;+ "iPhone 13": DeviceDescriptor;+ "iPhone 13 landscape": DeviceDescriptor;+ "iPhone 13 Pro": DeviceDescriptor;+ "iPhone 13 Pro landscape": DeviceDescriptor;+ "iPhone 13 Pro Max": DeviceDescriptor;+ "iPhone 13 Pro Max landscape": DeviceDescriptor;+ "iPhone 13 Mini": DeviceDescriptor;+ "iPhone 13 Mini landscape": DeviceDescriptor;"JioPhone 2": DeviceDescriptor;"JioPhone 2 landscape": DeviceDescriptor;"Kindle Fire HDX": DeviceDescriptor;diff --git a/utils/doclint/cli.js b/utils/doclint/cli.jsindex a99efd84e4..005e9cc696 100755--- a/utils/doclint/cli.js+++ b/utils/doclint/cli.js@@ -145,7 +145,7 @@ async function run() {if (dirtyFiles.size) {console.log('============================')- console.log('ERROR: generated markdown files have changed, this is only error if happens in CI:');+ console.log('ERROR: generated files have changed, this is only error if happens in CI:');[...dirtyFiles].forEach(f => console.log(f));console.log('============================')process.exit(1);