@dev-blinq/bvt-playwright-js 1.0.0-dev.4.staging.171.1 → 1.0.0-dev.4.staging.179.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 +22 -33
- package/index.mjs +18 -18
- package/index.mjs.map +1 -1
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -115,8 +115,6 @@ declare const elementActionSchema: z.ZodDiscriminatedUnion<[
|
|
|
115
115
|
}>>>;
|
|
116
116
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
117
117
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
118
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
-
trial: z.ZodOptional<z.ZodBoolean>;
|
|
120
118
|
}, z.core.$strip>>;
|
|
121
119
|
}, z.core.$strip>,
|
|
122
120
|
z.ZodObject<{
|
|
@@ -125,7 +123,6 @@ declare const elementActionSchema: z.ZodDiscriminatedUnion<[
|
|
|
125
123
|
options: z.ZodOptional<z.ZodObject<{
|
|
126
124
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
127
125
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
129
126
|
}, z.core.$strip>>;
|
|
130
127
|
}, z.core.$strip>,
|
|
131
128
|
z.ZodObject<{
|
|
@@ -137,7 +134,6 @@ declare const elementActionSchema: z.ZodDiscriminatedUnion<[
|
|
|
137
134
|
options: z.ZodOptional<z.ZodObject<{
|
|
138
135
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
139
136
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
141
137
|
}, z.core.$strip>>;
|
|
142
138
|
}, z.core.$strip>,
|
|
143
139
|
z.ZodObject<{
|
|
@@ -146,7 +142,6 @@ declare const elementActionSchema: z.ZodDiscriminatedUnion<[
|
|
|
146
142
|
options: z.ZodOptional<z.ZodObject<{
|
|
147
143
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
148
144
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
150
145
|
}, z.core.$strip>>;
|
|
151
146
|
}, z.core.$strip>,
|
|
152
147
|
z.ZodObject<{
|
|
@@ -157,7 +152,6 @@ declare const elementActionSchema: z.ZodDiscriminatedUnion<[
|
|
|
157
152
|
testDataKey: z.ZodOptional<z.ZodString>;
|
|
158
153
|
options: z.ZodOptional<z.ZodObject<{
|
|
159
154
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
160
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
161
155
|
}, z.core.$strip>>;
|
|
162
156
|
}, z.core.$strip>,
|
|
163
157
|
z.ZodObject<{
|
|
@@ -176,7 +170,6 @@ declare const elementActionSchema: z.ZodDiscriminatedUnion<[
|
|
|
176
170
|
}>>>;
|
|
177
171
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
178
172
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
179
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
180
173
|
}, z.core.$strip>>;
|
|
181
174
|
}, z.core.$strip>,
|
|
182
175
|
z.ZodObject<{
|
|
@@ -185,7 +178,6 @@ declare const elementActionSchema: z.ZodDiscriminatedUnion<[
|
|
|
185
178
|
options: z.ZodOptional<z.ZodObject<{
|
|
186
179
|
delay: z.ZodOptional<z.ZodNumber>;
|
|
187
180
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
188
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
189
181
|
}, z.core.$strip>>;
|
|
190
182
|
}, z.core.$strip>
|
|
191
183
|
], "type">;
|
|
@@ -1269,8 +1261,6 @@ declare const CommandSchema: z.ZodDiscriminatedUnion<[
|
|
|
1269
1261
|
}>>>;
|
|
1270
1262
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1271
1263
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
1272
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
1273
|
-
trial: z.ZodOptional<z.ZodBoolean>;
|
|
1274
1264
|
}, z.core.$strip>>;
|
|
1275
1265
|
}, z.core.$strip>,
|
|
1276
1266
|
z.ZodObject<{
|
|
@@ -1279,7 +1269,6 @@ declare const CommandSchema: z.ZodDiscriminatedUnion<[
|
|
|
1279
1269
|
options: z.ZodOptional<z.ZodObject<{
|
|
1280
1270
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1281
1271
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
1282
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
1283
1272
|
}, z.core.$strip>>;
|
|
1284
1273
|
}, z.core.$strip>,
|
|
1285
1274
|
z.ZodObject<{
|
|
@@ -1291,7 +1280,6 @@ declare const CommandSchema: z.ZodDiscriminatedUnion<[
|
|
|
1291
1280
|
options: z.ZodOptional<z.ZodObject<{
|
|
1292
1281
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1293
1282
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
1294
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
1295
1283
|
}, z.core.$strip>>;
|
|
1296
1284
|
}, z.core.$strip>,
|
|
1297
1285
|
z.ZodObject<{
|
|
@@ -1300,7 +1288,6 @@ declare const CommandSchema: z.ZodDiscriminatedUnion<[
|
|
|
1300
1288
|
options: z.ZodOptional<z.ZodObject<{
|
|
1301
1289
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1302
1290
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
1303
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
1304
1291
|
}, z.core.$strip>>;
|
|
1305
1292
|
}, z.core.$strip>,
|
|
1306
1293
|
z.ZodObject<{
|
|
@@ -1311,7 +1298,6 @@ declare const CommandSchema: z.ZodDiscriminatedUnion<[
|
|
|
1311
1298
|
testDataKey: z.ZodOptional<z.ZodString>;
|
|
1312
1299
|
options: z.ZodOptional<z.ZodObject<{
|
|
1313
1300
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1314
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
1315
1301
|
}, z.core.$strip>>;
|
|
1316
1302
|
}, z.core.$strip>,
|
|
1317
1303
|
z.ZodObject<{
|
|
@@ -1330,7 +1316,6 @@ declare const CommandSchema: z.ZodDiscriminatedUnion<[
|
|
|
1330
1316
|
}>>>;
|
|
1331
1317
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1332
1318
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
1333
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
1334
1319
|
}, z.core.$strip>>;
|
|
1335
1320
|
}, z.core.$strip>,
|
|
1336
1321
|
z.ZodObject<{
|
|
@@ -1339,7 +1324,6 @@ declare const CommandSchema: z.ZodDiscriminatedUnion<[
|
|
|
1339
1324
|
options: z.ZodOptional<z.ZodObject<{
|
|
1340
1325
|
delay: z.ZodOptional<z.ZodNumber>;
|
|
1341
1326
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1342
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
1343
1327
|
}, z.core.$strip>>;
|
|
1344
1328
|
}, z.core.$strip>
|
|
1345
1329
|
], "type">;
|
|
@@ -1885,9 +1869,9 @@ declare const CommandSchema: z.ZodDiscriminatedUnion<[
|
|
|
1885
1869
|
], "type">;
|
|
1886
1870
|
score: z.ZodNumber;
|
|
1887
1871
|
source: z.ZodEnum<{
|
|
1888
|
-
role: "role";
|
|
1889
1872
|
xpath: "xpath";
|
|
1890
1873
|
testId: "testId";
|
|
1874
|
+
role: "role";
|
|
1891
1875
|
accessibleName: "accessibleName";
|
|
1892
1876
|
visibleText: "visibleText";
|
|
1893
1877
|
stableAttribute: "stableAttribute";
|
|
@@ -2655,9 +2639,9 @@ declare const CommandSchema: z.ZodDiscriminatedUnion<[
|
|
|
2655
2639
|
], "type">;
|
|
2656
2640
|
score: z.ZodNumber;
|
|
2657
2641
|
source: z.ZodEnum<{
|
|
2658
|
-
role: "role";
|
|
2659
2642
|
xpath: "xpath";
|
|
2660
2643
|
testId: "testId";
|
|
2644
|
+
role: "role";
|
|
2661
2645
|
accessibleName: "accessibleName";
|
|
2662
2646
|
visibleText: "visibleText";
|
|
2663
2647
|
stableAttribute: "stableAttribute";
|
|
@@ -3300,9 +3284,9 @@ declare const CommandSchema: z.ZodDiscriminatedUnion<[
|
|
|
3300
3284
|
], "type">;
|
|
3301
3285
|
score: z.ZodNumber;
|
|
3302
3286
|
source: z.ZodEnum<{
|
|
3303
|
-
role: "role";
|
|
3304
3287
|
xpath: "xpath";
|
|
3305
3288
|
testId: "testId";
|
|
3289
|
+
role: "role";
|
|
3306
3290
|
accessibleName: "accessibleName";
|
|
3307
3291
|
visibleText: "visibleText";
|
|
3308
3292
|
stableAttribute: "stableAttribute";
|
|
@@ -4280,8 +4264,6 @@ declare const StepDefinitionSchema: z.ZodObject<{
|
|
|
4280
4264
|
}>>>;
|
|
4281
4265
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
4282
4266
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
4283
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
4284
|
-
trial: z.ZodOptional<z.ZodBoolean>;
|
|
4285
4267
|
}, z.core.$strip>>;
|
|
4286
4268
|
}, z.core.$strip>,
|
|
4287
4269
|
z.ZodObject<{
|
|
@@ -4290,7 +4272,6 @@ declare const StepDefinitionSchema: z.ZodObject<{
|
|
|
4290
4272
|
options: z.ZodOptional<z.ZodObject<{
|
|
4291
4273
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
4292
4274
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
4293
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
4294
4275
|
}, z.core.$strip>>;
|
|
4295
4276
|
}, z.core.$strip>,
|
|
4296
4277
|
z.ZodObject<{
|
|
@@ -4302,7 +4283,6 @@ declare const StepDefinitionSchema: z.ZodObject<{
|
|
|
4302
4283
|
options: z.ZodOptional<z.ZodObject<{
|
|
4303
4284
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
4304
4285
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
4305
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
4306
4286
|
}, z.core.$strip>>;
|
|
4307
4287
|
}, z.core.$strip>,
|
|
4308
4288
|
z.ZodObject<{
|
|
@@ -4311,7 +4291,6 @@ declare const StepDefinitionSchema: z.ZodObject<{
|
|
|
4311
4291
|
options: z.ZodOptional<z.ZodObject<{
|
|
4312
4292
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
4313
4293
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
4314
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
4315
4294
|
}, z.core.$strip>>;
|
|
4316
4295
|
}, z.core.$strip>,
|
|
4317
4296
|
z.ZodObject<{
|
|
@@ -4322,7 +4301,6 @@ declare const StepDefinitionSchema: z.ZodObject<{
|
|
|
4322
4301
|
testDataKey: z.ZodOptional<z.ZodString>;
|
|
4323
4302
|
options: z.ZodOptional<z.ZodObject<{
|
|
4324
4303
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
4325
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
4326
4304
|
}, z.core.$strip>>;
|
|
4327
4305
|
}, z.core.$strip>,
|
|
4328
4306
|
z.ZodObject<{
|
|
@@ -4341,7 +4319,6 @@ declare const StepDefinitionSchema: z.ZodObject<{
|
|
|
4341
4319
|
}>>>;
|
|
4342
4320
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
4343
4321
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
4344
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
4345
4322
|
}, z.core.$strip>>;
|
|
4346
4323
|
}, z.core.$strip>,
|
|
4347
4324
|
z.ZodObject<{
|
|
@@ -4350,7 +4327,6 @@ declare const StepDefinitionSchema: z.ZodObject<{
|
|
|
4350
4327
|
options: z.ZodOptional<z.ZodObject<{
|
|
4351
4328
|
delay: z.ZodOptional<z.ZodNumber>;
|
|
4352
4329
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
4353
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
4354
4330
|
}, z.core.$strip>>;
|
|
4355
4331
|
}, z.core.$strip>
|
|
4356
4332
|
], "type">;
|
|
@@ -4896,9 +4872,9 @@ declare const StepDefinitionSchema: z.ZodObject<{
|
|
|
4896
4872
|
], "type">;
|
|
4897
4873
|
score: z.ZodNumber;
|
|
4898
4874
|
source: z.ZodEnum<{
|
|
4899
|
-
role: "role";
|
|
4900
4875
|
xpath: "xpath";
|
|
4901
4876
|
testId: "testId";
|
|
4877
|
+
role: "role";
|
|
4902
4878
|
accessibleName: "accessibleName";
|
|
4903
4879
|
visibleText: "visibleText";
|
|
4904
4880
|
stableAttribute: "stableAttribute";
|
|
@@ -5666,9 +5642,9 @@ declare const StepDefinitionSchema: z.ZodObject<{
|
|
|
5666
5642
|
], "type">;
|
|
5667
5643
|
score: z.ZodNumber;
|
|
5668
5644
|
source: z.ZodEnum<{
|
|
5669
|
-
role: "role";
|
|
5670
5645
|
xpath: "xpath";
|
|
5671
5646
|
testId: "testId";
|
|
5647
|
+
role: "role";
|
|
5672
5648
|
accessibleName: "accessibleName";
|
|
5673
5649
|
visibleText: "visibleText";
|
|
5674
5650
|
stableAttribute: "stableAttribute";
|
|
@@ -6311,9 +6287,9 @@ declare const StepDefinitionSchema: z.ZodObject<{
|
|
|
6311
6287
|
], "type">;
|
|
6312
6288
|
score: z.ZodNumber;
|
|
6313
6289
|
source: z.ZodEnum<{
|
|
6314
|
-
role: "role";
|
|
6315
6290
|
xpath: "xpath";
|
|
6316
6291
|
testId: "testId";
|
|
6292
|
+
role: "role";
|
|
6317
6293
|
accessibleName: "accessibleName";
|
|
6318
6294
|
visibleText: "visibleText";
|
|
6319
6295
|
stableAttribute: "stableAttribute";
|
|
@@ -6910,9 +6886,9 @@ declare const ReplayLocatorCandidateSchema: z.ZodObject<{
|
|
|
6910
6886
|
], "type">;
|
|
6911
6887
|
score: z.ZodNumber;
|
|
6912
6888
|
source: z.ZodEnum<{
|
|
6913
|
-
role: "role";
|
|
6914
6889
|
xpath: "xpath";
|
|
6915
6890
|
testId: "testId";
|
|
6891
|
+
role: "role";
|
|
6916
6892
|
accessibleName: "accessibleName";
|
|
6917
6893
|
visibleText: "visibleText";
|
|
6918
6894
|
stableAttribute: "stableAttribute";
|
|
@@ -7192,9 +7168,9 @@ declare const StepReplayTelemetrySchema: z.ZodObject<{
|
|
|
7192
7168
|
], "type">;
|
|
7193
7169
|
score: z.ZodNumber;
|
|
7194
7170
|
source: z.ZodEnum<{
|
|
7195
|
-
role: "role";
|
|
7196
7171
|
xpath: "xpath";
|
|
7197
7172
|
testId: "testId";
|
|
7173
|
+
role: "role";
|
|
7198
7174
|
accessibleName: "accessibleName";
|
|
7199
7175
|
visibleText: "visibleText";
|
|
7200
7176
|
stableAttribute: "stableAttribute";
|
|
@@ -7894,9 +7870,9 @@ declare const PickedElementSchema: z.ZodObject<{
|
|
|
7894
7870
|
], "type">;
|
|
7895
7871
|
score: z.ZodNumber;
|
|
7896
7872
|
source: z.ZodEnum<{
|
|
7897
|
-
role: "role";
|
|
7898
7873
|
xpath: "xpath";
|
|
7899
7874
|
testId: "testId";
|
|
7875
|
+
role: "role";
|
|
7900
7876
|
accessibleName: "accessibleName";
|
|
7901
7877
|
visibleText: "visibleText";
|
|
7902
7878
|
stableAttribute: "stableAttribute";
|
|
@@ -9308,6 +9284,19 @@ type TesterSession = {
|
|
|
9308
9284
|
*/
|
|
9309
9285
|
screenshots?: {
|
|
9310
9286
|
enabled: boolean;
|
|
9287
|
+
/**
|
|
9288
|
+
* "upload" (default): Tester requests presigned URLs and uploads the
|
|
9289
|
+
* captured JPEGs to S3 itself at the end of the testcase.
|
|
9290
|
+
* "local": Tester captures JPEGs to `outputDir` and leaves them on disk
|
|
9291
|
+
* for an out-of-band uploader (mirrors the local-trace mode used by the
|
|
9292
|
+
* execution worker, which has no presigned-URL API client).
|
|
9293
|
+
*/
|
|
9294
|
+
mode?: "upload" | "local";
|
|
9295
|
+
/**
|
|
9296
|
+
* Local-mode capture directory. When omitted a per-testcase /tmp dir is
|
|
9297
|
+
* used. Ignored in "upload" mode.
|
|
9298
|
+
*/
|
|
9299
|
+
outputDir?: string;
|
|
9311
9300
|
};
|
|
9312
9301
|
deterministicRecoveryMode?: "new-tour-maintenance";
|
|
9313
9302
|
};
|
package/index.mjs
CHANGED
|
@@ -5275,8 +5275,7 @@ const hoverOptionsSchema = object({
|
|
|
5275
5275
|
}).optional(),
|
|
5276
5276
|
modifiers: array(keyModifierSchema).optional(),
|
|
5277
5277
|
timeout: number().optional(),
|
|
5278
|
-
force: boolean().optional()
|
|
5279
|
-
noWaitAfter: boolean().optional()
|
|
5278
|
+
force: boolean().optional()
|
|
5280
5279
|
}).optional();
|
|
5281
5280
|
const clickOptionsSchema = object({
|
|
5282
5281
|
button: _enum([
|
|
@@ -5292,33 +5291,24 @@ const clickOptionsSchema = object({
|
|
|
5292
5291
|
}).optional(),
|
|
5293
5292
|
modifiers: array(keyModifierSchema).optional(),
|
|
5294
5293
|
timeout: number().optional(),
|
|
5295
|
-
force: boolean().optional()
|
|
5296
|
-
noWaitAfter: boolean().optional(),
|
|
5297
|
-
trial: boolean().optional()
|
|
5294
|
+
force: boolean().optional()
|
|
5298
5295
|
}).optional();
|
|
5299
5296
|
const fillOptionsSchema = object({
|
|
5300
5297
|
timeout: number().optional(),
|
|
5301
|
-
force: boolean().optional()
|
|
5302
|
-
noWaitAfter: boolean().optional()
|
|
5298
|
+
force: boolean().optional()
|
|
5303
5299
|
}).optional();
|
|
5304
5300
|
const selectOptionsSchema = object({
|
|
5305
5301
|
timeout: number().optional(),
|
|
5306
|
-
force: boolean().optional()
|
|
5307
|
-
noWaitAfter: boolean().optional()
|
|
5302
|
+
force: boolean().optional()
|
|
5308
5303
|
}).optional();
|
|
5309
5304
|
const setCheckedOptionsSchema = object({
|
|
5310
5305
|
timeout: number().optional(),
|
|
5311
|
-
force: boolean().optional()
|
|
5312
|
-
noWaitAfter: boolean().optional()
|
|
5313
|
-
}).optional();
|
|
5314
|
-
const setInputFilesOptionsSchema = object({
|
|
5315
|
-
timeout: number().optional(),
|
|
5316
|
-
noWaitAfter: boolean().optional()
|
|
5306
|
+
force: boolean().optional()
|
|
5317
5307
|
}).optional();
|
|
5308
|
+
const setInputFilesOptionsSchema = object({ timeout: number().optional() }).optional();
|
|
5318
5309
|
const pressOptionsSchema = object({
|
|
5319
5310
|
delay: number().optional(),
|
|
5320
|
-
timeout: number().optional()
|
|
5321
|
-
noWaitAfter: boolean().optional()
|
|
5311
|
+
timeout: number().optional()
|
|
5322
5312
|
}).optional();
|
|
5323
5313
|
const elementActionSchema = discriminatedUnion("type", [
|
|
5324
5314
|
object({
|
|
@@ -26460,7 +26450,7 @@ var Tester = class {
|
|
|
26460
26450
|
return `${this.dataContext?.projectId ?? ""}/${session.reportId}/testcases/${session.testCaseId}/resources/screenshots/${stepId}-${commandId}-${phase}.jpg`;
|
|
26461
26451
|
}
|
|
26462
26452
|
getScreenshotTempDir(session) {
|
|
26463
|
-
if (!this.tempPathForAssets) this.tempPathForAssets = join("/tmp", `blinq-screenshots-${session.reportId}-${session.testCaseId}`);
|
|
26453
|
+
if (!this.tempPathForAssets) this.tempPathForAssets = session.screenshots?.outputDir ?? join("/tmp", `blinq-screenshots-${session.reportId}-${session.testCaseId}`);
|
|
26464
26454
|
return this.tempPathForAssets;
|
|
26465
26455
|
}
|
|
26466
26456
|
/**
|
|
@@ -27050,6 +27040,16 @@ var Tester = class {
|
|
|
27050
27040
|
});
|
|
27051
27041
|
return false;
|
|
27052
27042
|
}
|
|
27043
|
+
if (session.screenshots?.mode === "local") {
|
|
27044
|
+
this.obs.logger.log("Screenshots captured in local mode; leaving files for out-of-band upload", {
|
|
27045
|
+
reportId: session.reportId,
|
|
27046
|
+
testCaseId: session.testCaseId,
|
|
27047
|
+
capturedCount,
|
|
27048
|
+
dir: this.tempPathForAssets
|
|
27049
|
+
});
|
|
27050
|
+
this.capturedScreenshots = [];
|
|
27051
|
+
return capturedCount > 0;
|
|
27052
|
+
}
|
|
27053
27053
|
if (!session.token) {
|
|
27054
27054
|
this.obs.metrics.count("bvt_agent.screenshots.upload.skipped.total", 1, { reason: "no-session-token" });
|
|
27055
27055
|
this.obs.logger.warn(`Screenshot upload skipped because no session token was provided for reportId: ${session.reportId}, testCaseId: ${session.testCaseId}.`);
|