@applitools/spec-driver-playwright 1.5.8 → 1.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.5.9](https://github.com/Applitools-Dev/sdk/compare/js/spec-driver-playwright@1.5.8...js/spec-driver-playwright@1.5.9) (2025-03-30)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/utils bumped to 1.8.0
9
+ #### Features
10
+
11
+ * allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
12
+ * @applitools/logger bumped to 2.1.2
13
+
14
+ * @applitools/driver bumped to 1.21.0
15
+ #### Features
16
+
17
+ * allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
18
+
19
+
20
+
21
+
3
22
  ## [1.5.8](https://github.com/Applitools-Dev/sdk/compare/js/spec-driver-playwright@1.5.7...js/spec-driver-playwright@1.5.8) (2025-02-26)
4
23
 
5
24
 
@@ -229,8 +229,15 @@ async function build(env) {
229
229
  headless: headless && !extension,
230
230
  ignoreDefaultArgs: ['--hide-scrollbars'],
231
231
  };
232
+ if ((browser === null || browser === void 0 ? void 0 : browser.toLowerCase()) === 'chrome') {
233
+ // options.ignoreDefaultArgs.push('--disable-field-trial-config')
234
+ options.args.push('--disable-gpu');
235
+ if (process.env.CHROME_PATH) {
236
+ options.executablePath = process.env.CHROME_PATH;
237
+ }
238
+ }
232
239
  // TODO remove this once Playwright provides formal support for headless: 'new' (https://github.com/microsoft/playwright/issues/21194)
233
- if (headless === 'new') {
240
+ if (headless) {
234
241
  options.args.push('--headless=new');
235
242
  delete options.headless;
236
243
  options.ignoreDefaultArgs.push('--headless');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/spec-driver-playwright",
3
- "version": "1.5.8",
3
+ "version": "1.5.9",
4
4
  "keywords": [
5
5
  "playwright",
6
6
  "chrome devtools protocol",
@@ -40,8 +40,8 @@
40
40
  "up:framework": "echo \"$(jq '.devDependencies.playwright = $ENV.APPLITOOLS_FRAMEWORK_VERSION' ./package.json)\" > ./package.json"
41
41
  },
42
42
  "dependencies": {
43
- "@applitools/driver": "1.20.5",
44
- "@applitools/utils": "1.7.8"
43
+ "@applitools/driver": "1.21.0",
44
+ "@applitools/utils": "1.8.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@applitools/api-extractor": "^1.2.22",
package/types/index.d.ts CHANGED
@@ -36,5 +36,6 @@ export type PrimarySpecType = {
36
36
  element: Element<Node>;
37
37
  selector: Selector;
38
38
  secondary: never;
39
+ userFunction: unknown;
39
40
  };
40
41
  export type SpecDriver = import('@applitools/driver').SpecDriver<PrimarySpecType>;