@dev-blinq/bvt-playwright-js 1.0.0-dev.4 → 1.0.0-dev.4.latest.103.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/{en-Bp7eyprf.mjs → en-KbNSnMPf.mjs} +4 -4
- package/en-KbNSnMPf.mjs.map +1 -0
- package/index.d.mts +30 -23
- package/index.mjs +240 -125
- package/index.mjs.map +1 -1
- package/{otpauth.node-k0uQ9qOV.mjs → otpauth.node-flL8gowF.mjs} +2 -2
- package/otpauth.node-flL8gowF.mjs.map +1 -0
- package/package.json +1 -1
- package/en-Bp7eyprf.mjs.map +0 -1
- package/otpauth.node-k0uQ9qOV.mjs.map +0 -1
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>;
|
|
@@ -7410,6 +7409,7 @@ type ExecutionStatusUpdateEventData = {
|
|
|
7410
7409
|
stepDefinitionId: string;
|
|
7411
7410
|
completedAt?: ExecutionEventTimestamp;
|
|
7412
7411
|
result: ExecResult;
|
|
7412
|
+
resolvedChosenSelectorIndex?: number;
|
|
7413
7413
|
recovery?: RecoveryMetadata;
|
|
7414
7414
|
} | RecoveryStatusEvent;
|
|
7415
7415
|
type ExecutionCompletedEventData = {
|
|
@@ -7420,8 +7420,8 @@ type ExecutionStartedEventData = {
|
|
|
7420
7420
|
type: "execution_started";
|
|
7421
7421
|
};
|
|
7422
7422
|
declare const ScopeTypeSchema: z.ZodEnum<{
|
|
7423
|
-
environment: "environment";
|
|
7424
7423
|
runtime: "runtime";
|
|
7424
|
+
environment: "environment";
|
|
7425
7425
|
global: "global";
|
|
7426
7426
|
feature: "feature";
|
|
7427
7427
|
scenario: "scenario";
|
|
@@ -7455,8 +7455,8 @@ declare const TestDataEntrySchema: z.ZodObject<{
|
|
|
7455
7455
|
}>;
|
|
7456
7456
|
scope: z.ZodObject<{
|
|
7457
7457
|
type: z.ZodEnum<{
|
|
7458
|
-
environment: "environment";
|
|
7459
7458
|
runtime: "runtime";
|
|
7459
|
+
environment: "environment";
|
|
7460
7460
|
global: "global";
|
|
7461
7461
|
feature: "feature";
|
|
7462
7462
|
scenario: "scenario";
|
|
@@ -7489,8 +7489,8 @@ declare const BrowserObserverStateKSchema: z.ZodUnion<readonly [
|
|
|
7489
7489
|
input: "input";
|
|
7490
7490
|
text: "text";
|
|
7491
7491
|
context: "context";
|
|
7492
|
-
ai: "ai";
|
|
7493
7492
|
hover: "hover";
|
|
7493
|
+
ai: "ai";
|
|
7494
7494
|
none: "none";
|
|
7495
7495
|
snapshot: "snapshot";
|
|
7496
7496
|
element: "element";
|
|
@@ -7845,9 +7845,9 @@ declare const PickedElementSchema: z.ZodObject<{
|
|
|
7845
7845
|
], "type">;
|
|
7846
7846
|
score: z.ZodNumber;
|
|
7847
7847
|
source: z.ZodEnum<{
|
|
7848
|
-
role: "role";
|
|
7849
7848
|
xpath: "xpath";
|
|
7850
7849
|
testId: "testId";
|
|
7850
|
+
role: "role";
|
|
7851
7851
|
accessibleName: "accessibleName";
|
|
7852
7852
|
visibleText: "visibleText";
|
|
7853
7853
|
stableAttribute: "stableAttribute";
|
|
@@ -7898,6 +7898,7 @@ declare const ExecutionResultSchema: z.ZodObject<{
|
|
|
7898
7898
|
data: z.ZodOptional<z.ZodUnknown>;
|
|
7899
7899
|
}, z.core.$strict>>>>;
|
|
7900
7900
|
duration: z.ZodNumber;
|
|
7901
|
+
screenshotBefore: z.ZodOptional<z.ZodString>;
|
|
7901
7902
|
screenshotAfter: z.ZodOptional<z.ZodString>;
|
|
7902
7903
|
mutationSignals: z.ZodOptional<z.ZodObject<{
|
|
7903
7904
|
httpMutations: z.ZodArray<z.ZodObject<{
|
|
@@ -8213,11 +8214,13 @@ type CustomCodeRuntimeOptions = {
|
|
|
8213
8214
|
readonly driver?: CustomCodeDriver;
|
|
8214
8215
|
readonly policy?: CustomCodePolicy;
|
|
8215
8216
|
readonly logger?: AgentLoggerInput;
|
|
8217
|
+
readonly pgHostBridge?: boolean;
|
|
8216
8218
|
};
|
|
8217
8219
|
declare class CustomCodeRuntime {
|
|
8218
8220
|
private readonly driver;
|
|
8219
8221
|
private readonly policy;
|
|
8220
8222
|
private readonly logger?;
|
|
8223
|
+
private readonly pgHostBridge;
|
|
8221
8224
|
constructor(options?: CustomCodeRuntimeOptions);
|
|
8222
8225
|
execute(input: ExecuteCustomCodeInput): Promise<CustomCodeExecutionResult>;
|
|
8223
8226
|
}
|
|
@@ -8910,6 +8913,7 @@ declare class BrowserObserver {
|
|
|
8910
8913
|
private rrwebBufferedBytes;
|
|
8911
8914
|
private rrwebCommandAnchors;
|
|
8912
8915
|
static instance: BrowserObserver | null;
|
|
8916
|
+
private writeConsole;
|
|
8913
8917
|
private getRrwebChunkEventCountThreshold;
|
|
8914
8918
|
private getRrwebChunkByteThreshold;
|
|
8915
8919
|
private getRrwebMaskProfile;
|
|
@@ -9056,9 +9060,9 @@ type GlobalThis = {
|
|
|
9056
9060
|
__bvt_emit: (event: any) => void;
|
|
9057
9061
|
};
|
|
9058
9062
|
declare const browserTypesMap: {
|
|
9059
|
-
chromium:
|
|
9060
|
-
firefox:
|
|
9061
|
-
webkit:
|
|
9063
|
+
chromium: playwright.BrowserType<{}>;
|
|
9064
|
+
firefox: playwright.BrowserType<{}>;
|
|
9065
|
+
webkit: playwright.BrowserType<{}>;
|
|
9062
9066
|
};
|
|
9063
9067
|
type BrowserConnectInput = {
|
|
9064
9068
|
browser: {
|
|
@@ -9262,12 +9266,12 @@ declare class Tester {
|
|
|
9262
9266
|
launchBrowser(input: BrowserLaunchInput): Promise<{
|
|
9263
9267
|
browser: Browser;
|
|
9264
9268
|
browserContext: BrowserContext;
|
|
9265
|
-
browserType:
|
|
9269
|
+
browserType: playwright.BrowserType<{}>;
|
|
9266
9270
|
}>;
|
|
9267
9271
|
connectBrowser(input: BrowserConnectInput): Promise<{
|
|
9268
9272
|
browser: Browser;
|
|
9269
9273
|
browserContext: BrowserContext;
|
|
9270
|
-
browserType:
|
|
9274
|
+
browserType: playwright.BrowserType<{}>;
|
|
9271
9275
|
}>;
|
|
9272
9276
|
openTab(browserContext: BrowserContext, config?: {
|
|
9273
9277
|
url?: string;
|
|
@@ -9315,6 +9319,7 @@ declare class Tester {
|
|
|
9315
9319
|
result?: unknown;
|
|
9316
9320
|
error?: string | undefined;
|
|
9317
9321
|
userMessage?: string | undefined;
|
|
9322
|
+
screenshotBefore?: string | undefined;
|
|
9318
9323
|
screenshotAfter?: string | undefined;
|
|
9319
9324
|
mutationSignals?: {
|
|
9320
9325
|
httpMutations: {
|
|
@@ -9359,6 +9364,8 @@ declare class Tester {
|
|
|
9359
9364
|
headers: Record<string, string>;
|
|
9360
9365
|
bodyText: string;
|
|
9361
9366
|
bodyJson?: unknown;
|
|
9367
|
+
} | {
|
|
9368
|
+
resolvedChosenSelectorIndex: number;
|
|
9362
9369
|
} | undefined>;
|
|
9363
9370
|
/**
|
|
9364
9371
|
* Runtime test-data accessor bound to the tester's current data provider and
|
|
@@ -9663,7 +9670,7 @@ export type BlinqTestFixtures = {
|
|
|
9663
9670
|
* Generated spec files import `test` from this function and call
|
|
9664
9671
|
* `bvt.executeCommand(...)` inside `test.step` blocks.
|
|
9665
9672
|
*/
|
|
9666
|
-
export declare function createBlinqTest(options?: CreateBlinqTestOptions):
|
|
9673
|
+
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
9674
|
|
|
9668
9675
|
export {
|
|
9669
9676
|
createBlinqTest as default,
|