@applitools/eyes-playwright 1.12.7 → 1.13.0

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
@@ -11,6 +11,22 @@
11
11
 
12
12
 
13
13
 
14
+ ## 1.13.0 - 2022/11/29
15
+
16
+ ### Features
17
+ - Added new selector extensions `child` and `fallback`
18
+ - Changed default value of `sendDom` from `true` to dynamically calculated
19
+ - Mark target element with `data-applitools-scroll` attribute before capture dom
20
+ - Added new iOS device - 'iPad Pro (11-inch) (4th generation)'
21
+ - Use user agent metadata to improve browser environment detection logic
22
+ - Use APPLITOOLS_CONCURRENCY env variable to specify concurrency
23
+ - Added `ignoreColors` method to `CheckSettings` to set a match level
24
+ ### Bug fixes
25
+ - Fixed issue with ufg renders failing intermittently
26
+ - Fixed error that was happening when test results were deleted
27
+ - Fixed bug that caused `extractText` to throw, due to fractional size of the target region
28
+ - Fix dontCloseBatches mapping
29
+
14
30
  ## 1.12.7 - 2022/10/11
15
31
 
16
32
  ### Features
package/dist/api.js CHANGED
@@ -43,11 +43,11 @@ class Configuration extends api.Configuration {
43
43
  }
44
44
  exports.Configuration = Configuration;
45
45
  Configuration._spec = sdk;
46
- class CheckSettings extends api.CheckSettings {
46
+ class CheckSettings extends api.CheckSettingsAutomation {
47
47
  }
48
48
  exports.CheckSettings = CheckSettings;
49
49
  CheckSettings._spec = sdk;
50
- exports.Target = CheckSettings;
50
+ exports.Target = { ...api.Target, spec: sdk };
51
51
  class BatchClose extends api.BatchClose {
52
52
  }
53
53
  exports.BatchClose = BatchClose;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-playwright",
3
- "version": "1.12.7",
3
+ "version": "1.13.0",
4
4
  "description": "Applitools Eyes SDK for Playwright",
5
5
  "keywords": [
6
6
  "eyes-playwright",
@@ -58,15 +58,15 @@
58
58
  }
59
59
  },
60
60
  "dependencies": {
61
- "@applitools/core": "1.1.5",
62
- "@applitools/eyes-api": "1.8.5",
63
- "@applitools/spec-driver-playwright": "1.3.3"
61
+ "@applitools/core": "1.2.14",
62
+ "@applitools/eyes-api": "1.10.6",
63
+ "@applitools/spec-driver-playwright": "1.3.4"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@applitools/api-extractor": "1.2.11",
67
67
  "@applitools/bongo": "^2.2.0",
68
68
  "@applitools/scripts": "1.2.0",
69
- "@applitools/sdk-coverage-tests": "2.3.20",
69
+ "@applitools/sdk-coverage-tests": "2.7.8",
70
70
  "@applitools/sdk-shared": "0.9.15",
71
71
  "@applitools/test-utils": "1.5.2",
72
72
  "@types/mocha": "^9.1.1",
@@ -84,8 +84,8 @@
84
84
  "prettier": "^2.6.2",
85
85
  "spec-xunit-file": "0.0.1-3",
86
86
  "ts-node": "^10.2.1",
87
- "ttypescript": "^1.5.12",
88
- "typescript": "^4.7.2"
87
+ "ttypescript": "^1.5.13",
88
+ "typescript": "^4.9.3"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "playwright": ">=1.0.0"
package/types/api.d.ts ADDED
@@ -0,0 +1,43 @@
1
+ import type { Driver, Element, Selector } from '@applitools/spec-driver-playwright';
2
+ import * as api from '@applitools/eyes-api';
3
+ export * from '@applitools/eyes-api';
4
+ export { Driver, Element, Selector };
5
+ export declare class Eyes extends api.Eyes<Driver, Element, Selector> {
6
+ protected static readonly _spec: import("@applitools/core").Core<Driver, Element | Selector, (string & {
7
+ __applitoolsBrand?: never;
8
+ }) | (import("playwright-core").Locator & {
9
+ __applitoolsBrand?: never;
10
+ })>;
11
+ static setViewportSize: (driver: Driver, viewportSize: api.RectangleSize) => Promise<void>;
12
+ }
13
+ export type ConfigurationPlain = api.ConfigurationPlain<Element, Selector>;
14
+ export declare class Configuration extends api.Configuration<Element, Selector> {
15
+ protected static readonly _spec: import("@applitools/core").Core<Driver, Element | Selector, (string & {
16
+ __applitoolsBrand?: never;
17
+ }) | (import("playwright-core").Locator & {
18
+ __applitoolsBrand?: never;
19
+ })>;
20
+ }
21
+ export type OCRRegion = api.OCRRegion<Element, Selector>;
22
+ export type CheckSettingsPlain = api.CheckSettingsAutomationPlain<Element, Selector>;
23
+ export declare class CheckSettings extends api.CheckSettingsAutomation<Element, Selector> {
24
+ protected static readonly _spec: import("@applitools/core").Core<Driver, Element | Selector, (string & {
25
+ __applitoolsBrand?: never;
26
+ }) | (import("playwright-core").Locator & {
27
+ __applitoolsBrand?: never;
28
+ })>;
29
+ }
30
+ export declare const Target: api.Target<Element, Selector>;
31
+ export declare class BatchClose extends api.BatchClose {
32
+ protected static readonly _spec: import("@applitools/core").Core<Driver, Element | Selector, (string & {
33
+ __applitoolsBrand?: never;
34
+ }) | (import("playwright-core").Locator & {
35
+ __applitoolsBrand?: never;
36
+ })>;
37
+ }
38
+ export declare const closeBatch: (options: {
39
+ batchIds: string[];
40
+ serverUrl: string;
41
+ apiKey: string;
42
+ proxy?: api.ProxySettingsPlain;
43
+ }) => Promise<void>;