@applitools/eyes-playwright 1.18.5 → 1.18.6

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,70 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.18.6](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-playwright@1.18.5...js/eyes-playwright@1.18.6) (2023-09-04)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/utils bumped to 1.6.0
9
+ #### Features
10
+
11
+ * add support for fallback in `req` ([#1899](https://github.com/applitools/eyes.sdk.javascript1/issues/1899)) ([d69c4b5](https://github.com/applitools/eyes.sdk.javascript1/commit/d69c4b5830370c471dfc25b6e2caddca8b458df9))
12
+ * @applitools/logger bumped to 2.0.10
13
+
14
+ * @applitools/socket bumped to 1.1.10
15
+
16
+ * @applitools/req bumped to 1.6.0
17
+ #### Features
18
+
19
+ * add support for fallback in `req` ([#1899](https://github.com/applitools/eyes.sdk.javascript1/issues/1899)) ([d69c4b5](https://github.com/applitools/eyes.sdk.javascript1/commit/d69c4b5830370c471dfc25b6e2caddca8b458df9))
20
+ * update testcafe ([#1884](https://github.com/applitools/eyes.sdk.javascript1/issues/1884)) ([104f1b6](https://github.com/applitools/eyes.sdk.javascript1/commit/104f1b6cc0d4f107ba46404383de2fa11fe99dcf))
21
+
22
+
23
+
24
+ * @applitools/image bumped to 1.1.5
25
+
26
+ * @applitools/spec-driver-webdriver bumped to 1.0.44
27
+
28
+ * @applitools/spec-driver-selenium bumped to 1.5.58
29
+
30
+ * @applitools/spec-driver-playwright bumped to 1.3.25
31
+
32
+ * @applitools/spec-driver-puppeteer bumped to 1.2.0
33
+ #### Features
34
+
35
+ * update testcafe ([#1884](https://github.com/applitools/eyes.sdk.javascript1/issues/1884)) ([104f1b6](https://github.com/applitools/eyes.sdk.javascript1/commit/104f1b6cc0d4f107ba46404383de2fa11fe99dcf))
36
+
37
+
38
+
39
+ * @applitools/driver bumped to 1.14.0
40
+ #### Features
41
+
42
+ * update testcafe ([#1884](https://github.com/applitools/eyes.sdk.javascript1/issues/1884)) ([104f1b6](https://github.com/applitools/eyes.sdk.javascript1/commit/104f1b6cc0d4f107ba46404383de2fa11fe99dcf))
43
+
44
+
45
+
46
+ * @applitools/screenshoter bumped to 3.8.10
47
+
48
+ * @applitools/nml-client bumped to 1.5.10
49
+
50
+ * @applitools/tunnel-client bumped to 1.2.2
51
+
52
+ * @applitools/ufg-client bumped to 1.8.0
53
+ #### Features
54
+
55
+ * add support for fallback in `req` ([#1899](https://github.com/applitools/eyes.sdk.javascript1/issues/1899)) ([d69c4b5](https://github.com/applitools/eyes.sdk.javascript1/commit/d69c4b5830370c471dfc25b6e2caddca8b458df9))
56
+
57
+
58
+
59
+ * @applitools/ec-client bumped to 1.7.7
60
+
61
+ * @applitools/core-base bumped to 1.5.3
62
+
63
+ * @applitools/core bumped to 3.10.1
64
+
65
+ * @applitools/eyes bumped to 1.8.1
66
+
67
+
3
68
  ## [1.18.5](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-playwright@1.18.4...js/eyes-playwright@1.18.5) (2023-08-30)
4
69
 
5
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-playwright",
3
- "version": "1.18.5",
3
+ "version": "1.18.6",
4
4
  "description": "Applitools Eyes SDK for Playwright",
5
5
  "keywords": [
6
6
  "eyes-playwright",
@@ -42,11 +42,11 @@
42
42
  "up:framework": "yarn add --dev --caret playwright${APPLITOOLS_FRAMEWORK_VERSION:+@$APPLITOOLS_FRAMEWORK_VERSION}"
43
43
  },
44
44
  "dependencies": {
45
- "@applitools/eyes": "1.8.0",
46
- "@applitools/spec-driver-playwright": "1.3.24"
45
+ "@applitools/eyes": "1.8.1",
46
+ "@applitools/spec-driver-playwright": "1.3.25"
47
47
  },
48
48
  "devDependencies": {
49
- "@applitools/api-extractor": "^1.2.21",
49
+ "@applitools/api-extractor": "^1.2.22",
50
50
  "@applitools/bongo": "^5.6.1",
51
51
  "@applitools/generic": "^3.3.10",
52
52
  "@applitools/test-utils": "^1.5.17",
package/types/index.d.ts CHANGED
@@ -358,7 +358,21 @@ export type TargetAutomation = {
358
358
  webview(webview?: undefined | string): CheckSettingsAutomation;
359
359
  webview(webview?: undefined | boolean): CheckSettingsAutomation;
360
360
  };
361
+ export const TargetAutomation: {
362
+ window(): CheckSettingsAutomation;
363
+ region(region: (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; })))): CheckSettingsAutomation;
364
+ region(region: LegacyRegionPlain): CheckSettingsAutomation;
365
+ frame(context: { frame: number | (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; })); scrollRootElement?: undefined | (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; })); }): CheckSettingsAutomation;
366
+ frame(frame: number, scrollRootElement?: undefined | (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; }))): CheckSettingsAutomation;
367
+ frame(frame: (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; })), scrollRootElement?: undefined | (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; }))): CheckSettingsAutomation;
368
+ shadow(selector: string): CheckSettingsAutomation;
369
+ shadow(selector: Selector): CheckSettingsAutomation;
370
+ shadow(selector: { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; }): CheckSettingsAutomation;
371
+ webview(webview?: undefined | string): CheckSettingsAutomation;
372
+ webview(webview?: undefined | boolean): CheckSettingsAutomation;
373
+ };
361
374
  export type Target = TargetImage & TargetAutomation;
375
+ export const Target: TargetImage & TargetAutomation;
362
376
  export type OCRRegion = { target: Element | RegionPlain | EyesSelector<Selector>; hint?: undefined | string; minMatch?: undefined | number; language?: undefined | string; };
363
377
  export type ConfigurationPlain = {
364
378
  debugScreenshots?: undefined | { save: boolean; path?: undefined | string; prefix?: undefined | string; };
@@ -1179,6 +1193,16 @@ export type TargetImage = {
1179
1193
  url(imageUrl: string): CheckSettingsImage;
1180
1194
  url(imageUrl: URL): CheckSettingsImage;
1181
1195
  };
1196
+ export const TargetImage: {
1197
+ image(image: string): CheckSettingsImage;
1198
+ image(image: Buffer): CheckSettingsImage;
1199
+ image(image: URL): CheckSettingsImage;
1200
+ buffer(imageBuffer: Buffer): CheckSettingsImage;
1201
+ base64(imageBase64: string): CheckSettingsImage;
1202
+ path(imagePath: string): CheckSettingsImage;
1203
+ url(imageUrl: string): CheckSettingsImage;
1204
+ url(imageUrl: URL): CheckSettingsImage;
1205
+ };
1182
1206
  export type CutProviderPlain = { top: number; right: number; bottom: number; left: number; } | { x: number; y: number; width: number; height: number; };
1183
1207
  export class CutProvider implements Required<{
1184
1208
  x: number;