@dev-blinq/bvt-playwright-js 1.0.0-dev.4 → 1.0.0-dev.4.staging.63.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/index.d.mts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { z } from "zod";
2
- import { Browser, BrowserContext, ConnectOptions, Frame, FrameLocator, LaunchOptions, Locator, Page } from "@playwright/test";
2
+ import { Browser, BrowserContext, ConnectOptions, Frame, FrameLocator, LaunchOptions, Locator, Page, TestType } from "@playwright/test";
3
3
  import * as playwright from 'playwright';
4
- import * as playwright_core0 from 'playwright-core';
5
4
 
6
5
  declare const apiResponseSnapshotSchema: z.ZodObject<{
7
6
  status: z.ZodNumber;
@@ -1876,9 +1875,9 @@ declare const CommandSchema: z.ZodDiscriminatedUnion<[
1876
1875
  ], "type">;
1877
1876
  score: z.ZodNumber;
1878
1877
  source: z.ZodEnum<{
1879
- role: "role";
1880
1878
  xpath: "xpath";
1881
1879
  testId: "testId";
1880
+ role: "role";
1882
1881
  accessibleName: "accessibleName";
1883
1882
  visibleText: "visibleText";
1884
1883
  stableAttribute: "stableAttribute";
@@ -2636,9 +2635,9 @@ declare const CommandSchema: z.ZodDiscriminatedUnion<[
2636
2635
  ], "type">;
2637
2636
  score: z.ZodNumber;
2638
2637
  source: z.ZodEnum<{
2639
- role: "role";
2640
2638
  xpath: "xpath";
2641
2639
  testId: "testId";
2640
+ role: "role";
2642
2641
  accessibleName: "accessibleName";
2643
2642
  visibleText: "visibleText";
2644
2643
  stableAttribute: "stableAttribute";
@@ -3280,9 +3279,9 @@ declare const CommandSchema: z.ZodDiscriminatedUnion<[
3280
3279
  ], "type">;
3281
3280
  score: z.ZodNumber;
3282
3281
  source: z.ZodEnum<{
3283
- role: "role";
3284
3282
  xpath: "xpath";
3285
3283
  testId: "testId";
3284
+ role: "role";
3286
3285
  accessibleName: "accessibleName";
3287
3286
  visibleText: "visibleText";
3288
3287
  stableAttribute: "stableAttribute";
@@ -4875,9 +4874,9 @@ declare const StepDefinitionSchema: z.ZodObject<{
4875
4874
  ], "type">;
4876
4875
  score: z.ZodNumber;
4877
4876
  source: z.ZodEnum<{
4878
- role: "role";
4879
4877
  xpath: "xpath";
4880
4878
  testId: "testId";
4879
+ role: "role";
4881
4880
  accessibleName: "accessibleName";
4882
4881
  visibleText: "visibleText";
4883
4882
  stableAttribute: "stableAttribute";
@@ -5635,9 +5634,9 @@ declare const StepDefinitionSchema: z.ZodObject<{
5635
5634
  ], "type">;
5636
5635
  score: z.ZodNumber;
5637
5636
  source: z.ZodEnum<{
5638
- role: "role";
5639
5637
  xpath: "xpath";
5640
5638
  testId: "testId";
5639
+ role: "role";
5641
5640
  accessibleName: "accessibleName";
5642
5641
  visibleText: "visibleText";
5643
5642
  stableAttribute: "stableAttribute";
@@ -6279,9 +6278,9 @@ declare const StepDefinitionSchema: z.ZodObject<{
6279
6278
  ], "type">;
6280
6279
  score: z.ZodNumber;
6281
6280
  source: z.ZodEnum<{
6282
- role: "role";
6283
6281
  xpath: "xpath";
6284
6282
  testId: "testId";
6283
+ role: "role";
6285
6284
  accessibleName: "accessibleName";
6286
6285
  visibleText: "visibleText";
6287
6286
  stableAttribute: "stableAttribute";
@@ -6878,9 +6877,9 @@ declare const ReplayLocatorCandidateSchema: z.ZodObject<{
6878
6877
  ], "type">;
6879
6878
  score: z.ZodNumber;
6880
6879
  source: z.ZodEnum<{
6881
- role: "role";
6882
6880
  xpath: "xpath";
6883
6881
  testId: "testId";
6882
+ role: "role";
6884
6883
  accessibleName: "accessibleName";
6885
6884
  visibleText: "visibleText";
6886
6885
  stableAttribute: "stableAttribute";
@@ -7160,9 +7159,9 @@ declare const StepReplayTelemetrySchema: z.ZodObject<{
7160
7159
  ], "type">;
7161
7160
  score: z.ZodNumber;
7162
7161
  source: z.ZodEnum<{
7163
- role: "role";
7164
7162
  xpath: "xpath";
7165
7163
  testId: "testId";
7164
+ role: "role";
7166
7165
  accessibleName: "accessibleName";
7167
7166
  visibleText: "visibleText";
7168
7167
  stableAttribute: "stableAttribute";
@@ -7238,8 +7237,8 @@ declare const RecoveryMetadataSchema: z.ZodObject<{
7238
7237
  healedSelector: z.ZodOptional<z.ZodString>;
7239
7238
  commandPatchSummary: z.ZodOptional<z.ZodString>;
7240
7239
  retryOutcome: z.ZodEnum<{
7241
- failed: "failed";
7242
7240
  passed: "passed";
7241
+ failed: "failed";
7243
7242
  }>;
7244
7243
  recoveredAt: z.ZodOptional<z.ZodString>;
7245
7244
  healedLocatorPersistedAt: z.ZodOptional<z.ZodString>;
@@ -7268,11 +7267,11 @@ declare const RecoveryStatusEventSchema: z.ZodObject<{
7268
7267
  stepId: z.ZodString;
7269
7268
  commandId: z.ZodString;
7270
7269
  phase: z.ZodEnum<{
7270
+ failed: "failed";
7271
7271
  analyzing: "analyzing";
7272
7272
  trying_fix: "trying_fix";
7273
7273
  checking_fix: "checking_fix";
7274
7274
  fixed: "fixed";
7275
- failed: "failed";
7276
7275
  }>;
7277
7276
  message: z.ZodString;
7278
7277
  timestamp: z.ZodString;
@@ -7364,8 +7363,8 @@ declare const RecoveryDecisionSchema: z.ZodDiscriminatedUnion<[
7364
7363
  }, z.core.$strip>
7365
7364
  ], "type">;
7366
7365
  repairContext: z.ZodEnum<{
7367
- "recorder-replay": "recorder-replay";
7368
7366
  "local-run": "local-run";
7367
+ "recorder-replay": "recorder-replay";
7369
7368
  "execution-planner": "execution-planner";
7370
7369
  }>;
7371
7370
  rcaLabel: z.ZodOptional<z.ZodString>;
@@ -7420,8 +7419,8 @@ type ExecutionStartedEventData = {
7420
7419
  type: "execution_started";
7421
7420
  };
7422
7421
  declare const ScopeTypeSchema: z.ZodEnum<{
7423
- environment: "environment";
7424
7422
  runtime: "runtime";
7423
+ environment: "environment";
7425
7424
  global: "global";
7426
7425
  feature: "feature";
7427
7426
  scenario: "scenario";
@@ -7455,8 +7454,8 @@ declare const TestDataEntrySchema: z.ZodObject<{
7455
7454
  }>;
7456
7455
  scope: z.ZodObject<{
7457
7456
  type: z.ZodEnum<{
7458
- environment: "environment";
7459
7457
  runtime: "runtime";
7458
+ environment: "environment";
7460
7459
  global: "global";
7461
7460
  feature: "feature";
7462
7461
  scenario: "scenario";
@@ -7489,8 +7488,8 @@ declare const BrowserObserverStateKSchema: z.ZodUnion<readonly [
7489
7488
  input: "input";
7490
7489
  text: "text";
7491
7490
  context: "context";
7492
- ai: "ai";
7493
7491
  hover: "hover";
7492
+ ai: "ai";
7494
7493
  none: "none";
7495
7494
  snapshot: "snapshot";
7496
7495
  element: "element";
@@ -7845,9 +7844,9 @@ declare const PickedElementSchema: z.ZodObject<{
7845
7844
  ], "type">;
7846
7845
  score: z.ZodNumber;
7847
7846
  source: z.ZodEnum<{
7848
- role: "role";
7849
7847
  xpath: "xpath";
7850
7848
  testId: "testId";
7849
+ role: "role";
7851
7850
  accessibleName: "accessibleName";
7852
7851
  visibleText: "visibleText";
7853
7852
  stableAttribute: "stableAttribute";
@@ -9056,9 +9055,9 @@ type GlobalThis = {
9056
9055
  __bvt_emit: (event: any) => void;
9057
9056
  };
9058
9057
  declare const browserTypesMap: {
9059
- chromium: playwright_core0.BrowserType<{}>;
9060
- firefox: playwright_core0.BrowserType<{}>;
9061
- webkit: playwright_core0.BrowserType<{}>;
9058
+ chromium: playwright.BrowserType<{}>;
9059
+ firefox: playwright.BrowserType<{}>;
9060
+ webkit: playwright.BrowserType<{}>;
9062
9061
  };
9063
9062
  type BrowserConnectInput = {
9064
9063
  browser: {
@@ -9262,12 +9261,12 @@ declare class Tester {
9262
9261
  launchBrowser(input: BrowserLaunchInput): Promise<{
9263
9262
  browser: Browser;
9264
9263
  browserContext: BrowserContext;
9265
- browserType: playwright_core0.BrowserType<{}>;
9264
+ browserType: playwright.BrowserType<{}>;
9266
9265
  }>;
9267
9266
  connectBrowser(input: BrowserConnectInput): Promise<{
9268
9267
  browser: Browser;
9269
9268
  browserContext: BrowserContext;
9270
- browserType: playwright_core0.BrowserType<{}>;
9269
+ browserType: playwright.BrowserType<{}>;
9271
9270
  }>;
9272
9271
  openTab(browserContext: BrowserContext, config?: {
9273
9272
  url?: string;
@@ -9663,7 +9662,7 @@ export type BlinqTestFixtures = {
9663
9662
  * Generated spec files import `test` from this function and call
9664
9663
  * `bvt.executeCommand(...)` inside `test.step` blocks.
9665
9664
  */
9666
- export declare function createBlinqTest(options?: CreateBlinqTestOptions): import("@playwright/test").TestType<import("@playwright/test").PlaywrightTestArgs & import("@playwright/test").PlaywrightTestOptions & BlinqTestFixtures, import("@playwright/test").PlaywrightWorkerArgs & import("@playwright/test").PlaywrightWorkerOptions>;
9665
+ export declare function createBlinqTest(options?: CreateBlinqTestOptions): TestType<import("@playwright/test").PlaywrightTestArgs & import("@playwright/test").PlaywrightTestOptions & BlinqTestFixtures, import("@playwright/test").PlaywrightWorkerArgs & import("@playwright/test").PlaywrightWorkerOptions>;
9667
9666
 
9668
9667
  export {
9669
9668
  createBlinqTest as default,