Repository: elastic/synthetics (ts)

Issue:
Update to the latest version of Playwright/Chromium
To keep the Synthetics Agent up to date, upgrade to the latest version of Playwright/Chromium

Pull request:
feat: update playwright to 1.35.0
+ fix #781 
+ Updates playwright to the latest version. 

Patch:
diff --git a/package-lock.json b/package-lock.json
index 7dad605..d8699d5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -19,8 +19,8 @@
         "kleur": "^4.1.5",
         "micromatch": "^4.0.5",
         "pirates": "^4.0.5",
-        "playwright-chromium": "=1.32.3",
-        "playwright-core": "=1.32.3",
+        "playwright-chromium": "=1.35.0",
+        "playwright-core": "=1.35.0",
         "semver": "^7.5.0",
         "sharp": "^0.32.0",
         "snakecase-keys": "^4.0.1",
@@ -53,7 +53,7 @@
         "unzipper": "^0.10.11"
       },
       "engines": {
-        "node": ">=18.16.0"
+        "node": ">=18.12.0"
       }
     },
     "node_modules/@ampproject/remapping": {
@@ -5221,29 +5221,29 @@
       }
     },
     "node_modules/playwright-chromium": {
-      "version": "1.32.3",
-      "resolved": "https://registry.npmjs.org/playwright-chromium/-/playwright-chromium-1.32.3.tgz",
-      "integrity": "sha512-NhhXYl/6lH4JfiPlv0ZEkeQq/Kqj4vQGXf0AYs63kxqWMSc4jl69qtB4Yjd0j0iPZb38N5OItUiy8zunhh5wJg==",
+      "version": "1.35.0",
+      "resolved": "https://registry.npmjs.org/playwright-chromium/-/playwright-chromium-1.35.0.tgz",
+      "integrity": "sha512-94xeZO0dv/PRZ/LH+vb6KFlOs8+Vt8Zw3IN+BfmL11xsbIDKRBtM2aS6x36fWXuFOITFVvSFjXiK4MJlW5q9qw==",
       "hasInstallScript": true,
       "dependencies": {
-        "playwright-core": "1.32.3"
+        "playwright-core": "1.35.0"
       },
       "bin": {
         "playwright": "cli.js"
       },
       "engines": {
-        "node": ">=14"
+        "node": ">=16"
       }
     },
     "node_modules/playwright-core": {
-      "version": "1.32.3",
-      "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.32.3.tgz",
-      "integrity": "sha512-SB+cdrnu74ZIn5Ogh/8278ngEh9NEEV0vR4sJFmK04h2iZpybfbqBY0bX6+BLYWVdV12JLLI+JEFtSnYgR+mWg==",
+      "version": "1.35.0",
+      "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.35.0.tgz",
+      "integrity": "sha512-muMXyPmIx/2DPrCHOD1H1ePT01o7OdKxKj2ebmCAYvqhUy+Y1bpal7B0rdoxros7YrXI294JT/DWw2LqyiqTPA==",
       "bin": {
-        "playwright": "cli.js"
+        "playwright-core": "cli.js"
       },
       "engines": {
-        "node": ">=14"
+        "node": ">=16"
       }
     },
     "node_modules/please-upgrade-node": {
@@ -10447,17 +10447,17 @@
       }
     },
     "playwright-chromium": {
-      "version": "1.32.3",
-      "resolved": "https://registry.npmjs.org/playwright-chromium/-/playwright-chromium-1.32.3.tgz",
-      "integrity": "sha512-NhhXYl/6lH4JfiPlv0ZEkeQq/Kqj4vQGXf0AYs63kxqWMSc4jl69qtB4Yjd0j0iPZb38N5OItUiy8zunhh5wJg==",
+      "version": "1.35.0",
+      "resolved": "https://registry.npmjs.org/playwright-chromium/-/playwright-chromium-1.35.0.tgz",
+      "integrity": "sha512-94xeZO0dv/PRZ/LH+vb6KFlOs8+Vt8Zw3IN+BfmL11xsbIDKRBtM2aS6x36fWXuFOITFVvSFjXiK4MJlW5q9qw==",
       "requires": {
-        "playwright-core": "1.32.3"
+        "playwright-core": "1.35.0"
       }
     },
     "playwright-core": {
-      "version": "1.32.3",
-      "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.32.3.tgz",
-      "integrity": "sha512-SB+cdrnu74ZIn5Ogh/8278ngEh9NEEV0vR4sJFmK04h2iZpybfbqBY0bX6+BLYWVdV12JLLI+JEFtSnYgR+mWg=="
+      "version": "1.35.0",
+      "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.35.0.tgz",
+      "integrity": "sha512-muMXyPmIx/2DPrCHOD1H1ePT01o7OdKxKj2ebmCAYvqhUy+Y1bpal7B0rdoxros7YrXI294JT/DWw2LqyiqTPA=="
     },
     "please-upgrade-node": {
       "version": "3.2.0",
diff --git a/package.json b/package.json
index d1d2aac..1529bd9 100644
--- a/package.json
+++ b/package.json
@@ -50,8 +50,8 @@
     "kleur": "^4.1.5",
     "micromatch": "^4.0.5",
     "pirates": "^4.0.5",
-    "playwright-chromium": "=1.32.3",
-    "playwright-core": "=1.32.3",
+    "playwright-chromium": "=1.35.0",
+    "playwright-core": "=1.35.0",
     "semver": "^7.5.0",
     "sharp": "^0.32.0",
     "snakecase-keys": "^4.0.1",


Test patch:
diff --git a/__tests__/options.test.ts b/__tests__/options.test.ts
index 39c23b7..71d49d8 100644
--- a/__tests__/options.test.ts
+++ b/__tests__/options.test.ts
@@ -66,7 +66,7 @@ describe('options', () => {
         ignoreHTTPSErrors: undefined,
         isMobile: true,
         userAgent:
-          'Mozilla/5.0 (Linux; Android 8.0.0; SM-G965U Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.5615.29 Mobile Safari/537.36',
+          'Mozilla/5.0 (Linux; Android 8.0.0; SM-G965U Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.5790.24 Mobile Safari/537.36',
         viewport: {
           height: 658,
           width: 320,