@applitools/eyes-puppeteer 1.14.1 → 1.15.1

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,18 @@
11
11
 
12
12
 
13
13
 
14
+ ## 1.15.1 - 2023/4/6
15
+
16
+ ### Features
17
+ ### Bug fixes
18
+ - Fixed issue with css fetching for dom capture
19
+
20
+ ## 1.15.0 - 2023/4/4
21
+
22
+ ### Features
23
+ - Added `removeDuplicateTests` property to the `RunnerOptions` to remove duplicated tests in the runner at the end of execution
24
+ ### Bug fixes
25
+
14
26
  ## 1.14.1 - 2023/3/22
15
27
 
16
28
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-puppeteer",
3
- "version": "1.14.1",
3
+ "version": "1.15.1",
4
4
  "description": "Applitools Eyes SDK for Puppeteer",
5
5
  "keywords": [
6
6
  "eyes-puppeteer",
@@ -55,14 +55,14 @@
55
55
  "postpublish": "bongo send-release-notification --name 'puppeteer'"
56
56
  },
57
57
  "dependencies": {
58
- "@applitools/eyes": "1.0.2",
59
- "@applitools/spec-driver-puppeteer": "1.1.49"
58
+ "@applitools/eyes": "1.1.3",
59
+ "@applitools/spec-driver-puppeteer": "1.1.52"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@applitools/api-extractor": "1.2.12",
63
- "@applitools/bongo": "^3.0.2",
64
- "@applitools/sdk-coverage-tests": "3.0.0",
65
- "@applitools/test-utils": "1.5.14",
63
+ "@applitools/bongo": "^3.0.3",
64
+ "@applitools/sdk-coverage-tests": "3.0.1",
65
+ "@applitools/test-utils": "1.5.16",
66
66
  "@types/node": "^12.20.55",
67
67
  "puppeteer": "^18.0.5"
68
68
  },
package/types/index.d.ts CHANGED
@@ -1252,18 +1252,18 @@ export type DesktopBrowserInfo = { name?: undefined | "chrome" | "chrome-one-ver
1252
1252
  export type ChromeEmulationInfo = { chromeEmulationInfo: { deviceName: DeviceNamePlain; screenOrientation?: undefined | "landscape" | "portrait"; }; };
1253
1253
  export type IOSDeviceInfo = { iosDeviceInfo: { deviceName: IosDeviceNamePlain; iosVersion?: undefined | "latest" | "latest-1"; screenOrientation?: undefined | "landscape" | "portrait"; }; };
1254
1254
  export type AndroidDeviceInfo = { androidDeviceInfo: { deviceName: AndroidDeviceNamePlain; version?: undefined | "latest" | "latest-1"; screenOrientation?: undefined | "landscape" | "portrait"; }; };
1255
- export type RunnerOptionsPlain = { testConcurrency?: undefined | number; };
1255
+ export type RunnerOptionsPlain = { testConcurrency?: undefined | number; removeDuplicateTests?: undefined | boolean; };
1256
1256
  export class RunnerOptionsFluent {
1257
1257
  testConcurrency(concurrency: number): RunnerOptionsFluent;
1258
1258
  }
1259
1259
  export function RunnerOptions(): RunnerOptionsFluent;
1260
1260
  export type VisualLocatorSettings<TLocator extends string = string> = { locatorNames: Array<TLocator>; firstOnly: boolean; };
1261
1261
  export type ApiUrlsPlain = {
1262
- readonly baselineImage?: undefined | string;
1263
- readonly currentImage?: undefined | string;
1264
- readonly checkpointImage?: undefined | string;
1265
- readonly checkpointImageThumbnail?: undefined | string;
1266
- readonly diffImage?: undefined | string;
1262
+ readonly baselineImage: string;
1263
+ readonly currentImage: string;
1264
+ readonly checkpointImage: string;
1265
+ readonly checkpointImageThumbnail: string;
1266
+ readonly diffImage: string;
1267
1267
  };
1268
1268
  export class ApiUrls implements Required<ApiUrlsPlain> {
1269
1269
  get baselineImage(): string;
@@ -1277,7 +1277,7 @@ export class ApiUrls implements Required<ApiUrlsPlain> {
1277
1277
  get diffImage(): string;
1278
1278
  getDiffImage(): string;
1279
1279
  }
1280
- export type AppUrlsPlain = { readonly step?: undefined | string; readonly stepEditor?: undefined | string; };
1280
+ export type AppUrlsPlain = { readonly step: string; readonly stepEditor: string; };
1281
1281
  export class AppUrls implements Required<AppUrlsPlain> {
1282
1282
  get step(): string;
1283
1283
  getStep(): string;
@@ -1291,7 +1291,7 @@ export class MatchResult implements Required<MatchResultPlain> {
1291
1291
  get windowId(): number;
1292
1292
  getWindowId(): number;
1293
1293
  }
1294
- export type SessionUrlsPlain = { readonly batch?: undefined | string; readonly session?: undefined | string; };
1294
+ export type SessionUrlsPlain = { readonly batch: string; readonly session: string; };
1295
1295
  export class SessionUrls implements Required<SessionUrlsPlain> {
1296
1296
  get batch(): string;
1297
1297
  getBatch(): string;
@@ -1299,13 +1299,13 @@ export class SessionUrls implements Required<SessionUrlsPlain> {
1299
1299
  getSession(): string;
1300
1300
  }
1301
1301
  export type StepInfoPlain = {
1302
- readonly name?: undefined | string;
1303
- readonly isDifferent?: undefined | boolean;
1304
- readonly hasBaselineImage?: undefined | boolean;
1305
- readonly hasCurrentImage?: undefined | boolean;
1306
- readonly appUrls?: undefined | AppUrlsPlain;
1307
- readonly apiUrls?: undefined | ApiUrlsPlain;
1308
- readonly renderId?: undefined | Array<string>;
1302
+ readonly name: string;
1303
+ readonly isDifferent: boolean;
1304
+ readonly hasBaselineImage: boolean;
1305
+ readonly hasCurrentImage: boolean;
1306
+ readonly appUrls: AppUrlsPlain;
1307
+ readonly apiUrls: ApiUrlsPlain;
1308
+ readonly renderId: Array<string>;
1309
1309
  };
1310
1310
  export class StepInfo implements Required<StepInfoPlain> {
1311
1311
  get name(): string;
@@ -1337,7 +1337,7 @@ export type TestResultsPlain = {
1337
1337
  readonly hostApp?: undefined | string;
1338
1338
  readonly hostDisplaySize?: undefined | RectangleSizePlain;
1339
1339
  readonly accessibilityStatus?: undefined | TestAccessibilityStatus;
1340
- readonly startedAt?: undefined | string | Date;
1340
+ readonly startedAt?: undefined | string;
1341
1341
  readonly duration?: undefined | number;
1342
1342
  readonly isNew?: undefined | boolean;
1343
1343
  readonly isDifferent?: undefined | boolean;
@@ -1355,6 +1355,8 @@ export type TestResultsPlain = {
1355
1355
  readonly layoutMatches?: undefined | number;
1356
1356
  readonly noneMatches?: undefined | number;
1357
1357
  readonly url?: undefined | string;
1358
+ readonly server: { serverUrl: string; apiKey: string; proxy?: undefined | ProxySettingsPlain; };
1359
+ readonly keepIfDuplicate: boolean;
1358
1360
  };
1359
1361
  export class TestResults implements Required<TestResultsPlain> {
1360
1362
  get id(): string;
@@ -1381,7 +1383,7 @@ export class TestResults implements Required<TestResultsPlain> {
1381
1383
  getHostDisplaySize(): RectangleSize;
1382
1384
  get accessibilityStatus(): TestAccessibilityStatus;
1383
1385
  getAccessibilityStatus(): TestAccessibilityStatus;
1384
- get startedAt(): string | Date;
1386
+ get startedAt(): string;
1385
1387
  getStartedAt(): Date;
1386
1388
  get duration(): number;
1387
1389
  getDuration(): number;
@@ -1417,6 +1419,8 @@ export class TestResults implements Required<TestResultsPlain> {
1417
1419
  getNoneMatches(): number;
1418
1420
  get url(): string;
1419
1421
  getUrl(): string;
1422
+ get server(): { serverUrl: string; apiKey: string; agentId?: undefined | string; proxy?: undefined | { url: string; username?: undefined | string; password?: undefined | string; }; };
1423
+ get keepIfDuplicate(): boolean;
1420
1424
  isPassed(): boolean;
1421
1425
  delete(): Promise<void>;
1422
1426
  }
@@ -1470,9 +1474,11 @@ export class Logger {
1470
1474
  extend(label?: undefined | string): Logger;
1471
1475
  }
1472
1476
  export abstract class EyesRunner {
1477
+ abstract readonly type: "classic" | "ufg";
1473
1478
  getAllTestResults(throwErr?: undefined | boolean): Promise<TestResultsSummary>;
1474
1479
  }
1475
1480
  export class ClassicRunner extends EyesRunner {
1481
+ constructor(options?: undefined | RunnerOptionsPlain);
1476
1482
  }
1477
1483
  export class VisualGridRunner extends EyesRunner {
1478
1484
  constructor(options?: undefined | RunnerOptionsPlain);