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
feat: support Moto G4 device in emulated devices for performance testing (#5946)
Filif1a888de0276
diff --git a/src/server/deviceDescriptors.js b/src/server/deviceDescriptors.jsindex affdcb5945..1c55146cec 100644--- a/src/server/deviceDescriptors.js+++ b/src/server/deviceDescriptors.js@@ -1139,4 +1139,26 @@ module.exports = {'hasTouch': true,'defaultBrowserType': 'chromium'},+ 'Moto G4': {+ 'userAgent': 'Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4143.7 Mobile Safari/537.36',+ 'viewport': {+ 'width': 360,+ 'height': 640+ },+ 'deviceScaleFactor': 3,+ 'isMobile': true,+ 'hasTouch': true,+ 'defaultBrowserType': 'chromium'+ },+ 'Moto G4 landscape': {+ 'userAgent': 'Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4143.7 Mobile Safari/537.36',+ 'viewport': {+ 'width': 640,+ 'height': 360+ },+ 'deviceScaleFactor': 3,+ 'isMobile': true,+ 'hasTouch': true,+ 'defaultBrowserType': 'chromium'+ }};diff --git a/types/types.d.ts b/types/types.d.tsindex 11b88b390a..a52ac6dd81 100644--- a/types/types.d.ts+++ b/types/types.d.ts@@ -11172,6 +11172,8 @@ type Devices = {"Pixel 4a (5G) landscape": DeviceDescriptor;"Pixel 5": DeviceDescriptor;"Pixel 5 landscape": DeviceDescriptor;+ "Moto G4": DeviceDescriptor;+ "Moto G4 landscape": DeviceDescriptor;[key: string]: DeviceDescriptor;}