@iblai/iblai-js 1.0.39 → 1.1.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.
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ var dataLayer = require('@iblai/data-layer');
4
+
5
+
6
+
7
+ Object.keys(dataLayer).forEach(function (k) {
8
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
9
+ enumerable: true,
10
+ get: function () { return dataLayer[k]; }
11
+ });
12
+ });
13
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -1,8 +1,10 @@
1
+ import * as _playwright_test from '@playwright/test';
1
2
  import { Page, Locator, PlaywrightTestConfig } from '@playwright/test';
2
3
  export { expect } from '@playwright/test';
3
4
  import winston from 'winston';
4
5
  import { Reporter, FullConfig, Suite, TestCase, TestResult, FullResult } from '@playwright/test/reporter';
5
6
  import { RuleObject } from 'axe-core';
7
+ import * as playwright_core from 'playwright-core';
6
8
 
7
9
  interface SafeWaitForURLOptions {
8
10
  timeout?: number;
@@ -33,7 +35,9 @@ declare function safeWaitForURL(page: Page, urlPattern: string | RegExp | ((url:
33
35
  declare function waitForPageLoad(page: Page): Promise<void>;
34
36
  declare function closeWithEsc(page: Page): Promise<void>;
35
37
  type StepFn = (title: string, fn: () => unknown) => unknown;
36
- declare const test: any;
38
+ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArgs & _playwright_test.PlaywrightTestOptions & {
39
+ step: StepFn;
40
+ }, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions>;
37
41
  declare const retry: (action: () => Promise<void>, errorMessage: string, retryCount?: number) => Promise<void>;
38
42
 
39
43
  declare const isJSON: (value: string) => boolean;
@@ -193,7 +197,7 @@ declare function expectNoAccessibilityViolations(page: Page): Promise<void>;
193
197
  declare function expectNoAccessibilityViolationsOnDialogs(page: Page, rules?: RuleObject, exclude?: string[]): Promise<void>;
194
198
 
195
199
  declare function inviteUserTest(page: Page, inviteModal: Locator): Promise<void>;
196
- declare function navigateToAccountComponent(page: Page, profileBtn: Locator): Promise<any>;
200
+ declare function navigateToAccountComponent(page: Page, profileBtn: Locator): Promise<Locator>;
197
201
  declare function navigateToDataReports(page: Page): Promise<void>;
198
202
  declare function shouldDisplayReportCards(page: Page, REPORT_CARDS: {
199
203
  name: string;
@@ -351,7 +355,14 @@ declare function getBrowserKey(deviceName: string): string;
351
355
  declare function generateBrowserSetupProjects(devicesToUse: string[]): {
352
356
  name: string;
353
357
  testMatch: RegExp;
354
- use: any;
358
+ use: {
359
+ viewport: playwright_core.ViewportSize;
360
+ userAgent: string;
361
+ deviceScaleFactor: number;
362
+ isMobile: boolean;
363
+ hasTouch: boolean;
364
+ defaultBrowserType: "chromium" | "firefox" | "webkit";
365
+ };
355
366
  }[];
356
367
  /**
357
368
  * Generate a Playwright project config for a platform + device combination.
@@ -359,7 +370,15 @@ declare function generateBrowserSetupProjects(devicesToUse: string[]): {
359
370
  declare function generateProjectConfig(platform: string, deviceName: string, dependencies?: string[], otherTestMatch?: string[], testIgnoreMatch?: string[]): {
360
371
  name: string;
361
372
  testMatch: string[];
362
- use: any;
373
+ use: {
374
+ storageState: string;
375
+ viewport: playwright_core.ViewportSize;
376
+ userAgent: string;
377
+ deviceScaleFactor: number;
378
+ isMobile: boolean;
379
+ hasTouch: boolean;
380
+ defaultBrowserType: "chromium" | "firefox" | "webkit";
381
+ };
363
382
  dependencies: string[];
364
383
  testIgnore: string[];
365
384
  };