spana-test 0.19.1 → 0.20.0
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/README.md +4 -3
- package/dist/agent/index.js +15 -15
- package/dist/api/app.d.ts +1 -0
- package/dist/api/app.d.ts.map +1 -1
- package/dist/api/expect.d.ts +25 -11
- package/dist/api/expect.d.ts.map +1 -1
- package/dist/{app-RWO7IJ3R.js → app-ZSRJ3VFR.js} +3 -3
- package/dist/{appium-2PJWZXJI.js → appium-LOAWWZXA.js} +9 -9
- package/dist/build-info-KFFGVWDQ.js +9 -0
- package/dist/build-info.d.ts +5 -0
- package/dist/build-info.d.ts.map +1 -0
- package/dist/build-info.json +4 -0
- package/dist/channels/cdp-client.d.ts +28 -1
- package/dist/channels/cdp-client.d.ts.map +1 -1
- package/dist/channels/dom-channel.d.ts +14 -2
- package/dist/channels/dom-channel.d.ts.map +1 -1
- package/dist/{chunk-ABRN6BL6.js → chunk-26XIUSVS.js} +107 -29
- package/dist/chunk-26XIUSVS.js.map +1 -0
- package/dist/{chunk-EJHZZ2OP.js → chunk-2SDRH7ST.js} +5 -13
- package/dist/chunk-2SDRH7ST.js.map +1 -0
- package/dist/{chunk-T3PCI5QZ.js → chunk-2TK77LXY.js} +18 -16
- package/dist/chunk-2TK77LXY.js.map +1 -0
- package/dist/{chunk-AFWHSQHU.js → chunk-42D5LOGH.js} +8 -8
- package/dist/{chunk-7TMILDYA.js → chunk-5NZPLX2Y.js} +4 -5
- package/dist/chunk-5NZPLX2Y.js.map +1 -0
- package/dist/{chunk-CQ67PB3R.js → chunk-6GLL6SMP.js} +2 -2
- package/dist/{chunk-C2TMVKT7.js → chunk-7GDO4XAI.js} +160 -6
- package/dist/chunk-7GDO4XAI.js.map +1 -0
- package/dist/{chunk-F4DMBDPA.js → chunk-7QJY2HJO.js} +2 -2
- package/dist/{chunk-I7BUJBT2.js → chunk-GBV3XDWM.js} +8 -8
- package/dist/{chunk-BIV3DXB5.js → chunk-HX2PKESI.js} +2 -2
- package/dist/{chunk-3JAGQ4XW.js → chunk-QNCTEV2P.js} +14 -14
- package/dist/{chunk-FLPPA2XY.js → chunk-VWOTHDSE.js} +9 -4
- package/dist/chunk-VWOTHDSE.js.map +1 -0
- package/dist/chunk-XLHJCJ4O.js +15 -0
- package/dist/chunk-XLHJCJ4O.js.map +1 -0
- package/dist/{chunk-5Q2ROROC.js → chunk-XORHAB3R.js} +101 -47
- package/dist/chunk-XORHAB3R.js.map +1 -0
- package/dist/{chunk-3EBGWXYE.js → chunk-XUKBM64A.js} +3 -3
- package/dist/{chunk-ERFUFR5T.js → chunk-XZQGSUV7.js} +6 -6
- package/dist/{chunk-555KISAV.js → chunk-ZVUIG6A4.js} +6 -6
- package/dist/cli.js +16 -15
- package/dist/cli.js.map +1 -1
- package/dist/{config-loader-MX232REU.js → config-loader-IDIKOQ4T.js} +3 -3
- package/dist/{doctor-command-O3MSNK7M.js → doctor-command-2PSDOREK.js} +7 -7
- package/dist/{driver-VKJEQCG3.js → driver-TNQ6HSID.js} +6 -6
- package/dist/{driver-TBRUL2EL.js → driver-TTJVCWCD.js} +7 -7
- package/dist/drivers/appium/android.d.ts +1 -1
- package/dist/drivers/appium/ios.d.ts +1 -1
- package/dist/drivers/cdp-browser.d.ts +1 -1
- package/dist/drivers/cdp-browser.d.ts.map +1 -1
- package/dist/drivers/device-controls.d.ts +1 -1
- package/dist/drivers/electrobun.d.ts +1 -1
- package/dist/drivers/electron.d.ts +1 -1
- package/dist/drivers/playwright.d.ts +2 -1
- package/dist/drivers/raw-driver.d.ts +2 -1
- package/dist/drivers/uiautomator2/driver.d.ts +1 -1
- package/dist/drivers/wasm.d.ts +1 -1
- package/dist/drivers/wda/driver.d.ts +1 -1
- package/dist/{electrobun-5OGIQHTC.js → electrobun-6ZJ6QFVQ.js} +5 -5
- package/dist/errors.d.ts +12 -12
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +49 -45
- package/dist/index.js.map +1 -1
- package/dist/{local-7PACQMS4.js → local-E6FJI3QK.js} +5 -5
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/{playwright-MPVYCDGO.js → playwright-LS35WXQ6.js} +6 -6
- package/dist/runtime/local.d.ts.map +1 -1
- package/dist/schemas/config.d.ts +39 -484
- package/dist/schemas/config.d.ts.map +1 -1
- package/dist/schemas/device.d.ts +1 -1
- package/dist/schemas/element.d.ts +1 -1
- package/dist/schemas/selector.d.ts +1 -1
- package/dist/{server-ZCA5M6SW.js → server-A6Y6ZMET.js} +2 -2
- package/dist/{server-SGLHRRAE.js → server-D3HOIPQE.js} +16 -16
- package/dist/{session-NCG5GVP6.js → session-2VIEKA6A.js} +16 -16
- package/dist/session-2VIEKA6A.js.map +1 -0
- package/dist/smart/auto-wait.d.ts +1 -1
- package/dist/smart/channel-resolver.d.ts +1 -1
- package/dist/smart/channel-resolver.d.ts.map +1 -1
- package/dist/smart/coordinator.d.ts +6 -2
- package/dist/smart/coordinator.d.ts.map +1 -1
- package/dist/smart/hierarchy-cache.d.ts +1 -1
- package/dist/studio/context.d.ts +1 -1
- package/dist/studio/effect-handler.d.ts +3 -1
- package/dist/{studio-command-VJ26HQU3.js → studio-command-SPHIXFIW.js} +2 -2
- package/dist/{test-command-GPQL7SRB.js → test-command-OYMJNT23.js} +17 -17
- package/dist/vendor/effect/Array.d.ts +841 -0
- package/dist/vendor/effect/BigDecimal.d.ts +227 -0
- package/dist/vendor/effect/Brand.d.ts +71 -0
- package/dist/vendor/effect/ByteSize.d.ts +218 -0
- package/dist/vendor/effect/Cache.d.ts +104 -0
- package/dist/vendor/effect/Cause.d.ts +242 -0
- package/dist/vendor/effect/Channel.d.ts +1004 -0
- package/dist/vendor/effect/Chunk.d.ts +499 -0
- package/dist/vendor/effect/Clock.d.ts +31 -0
- package/dist/vendor/effect/Combiner.d.ts +23 -0
- package/dist/vendor/effect/Context.d.ts +167 -0
- package/dist/vendor/effect/Cron.d.ts +79 -0
- package/dist/vendor/effect/Data.d.ts +146 -0
- package/dist/vendor/effect/DateTime.d.ts +554 -0
- package/dist/vendor/effect/Deferred.d.ts +135 -0
- package/dist/vendor/effect/Differ.d.ts +8 -0
- package/dist/vendor/effect/Duration.d.ts +270 -0
- package/dist/vendor/effect/Effect.d.ts +2606 -0
- package/dist/vendor/effect/Equal.d.ts +20 -0
- package/dist/vendor/effect/Equivalence.d.ts +55 -0
- package/dist/vendor/effect/ExecutionPlan.d.ts +131 -0
- package/dist/vendor/effect/Exit.d.ts +114 -0
- package/dist/vendor/effect/Fiber.d.ts +90 -0
- package/dist/vendor/effect/FileSystem.d.ts +227 -0
- package/dist/vendor/effect/Filter.d.ts +133 -0
- package/dist/vendor/effect/Formatter.d.ts +13 -0
- package/dist/vendor/effect/Function.d.ts +91 -0
- package/dist/vendor/effect/Graph.d.ts +638 -0
- package/dist/vendor/effect/HKT.d.ts +30 -0
- package/dist/vendor/effect/Hash.d.ts +31 -0
- package/dist/vendor/effect/HashMap.d.ts +225 -0
- package/dist/vendor/effect/HashSet.d.ts +122 -0
- package/dist/vendor/effect/Inspectable.d.ts +25 -0
- package/dist/vendor/effect/JsonPatch.d.ts +26 -0
- package/dist/vendor/effect/JsonSchema.d.ts +43 -0
- package/dist/vendor/effect/LICENSE +21 -0
- package/dist/vendor/effect/Latch.d.ts +48 -0
- package/dist/vendor/effect/Layer.d.ts +273 -0
- package/dist/vendor/effect/LogLevel.d.ts +46 -0
- package/dist/vendor/effect/Logger.d.ts +106 -0
- package/dist/vendor/effect/ManagedRuntime.d.ts +52 -0
- package/dist/vendor/effect/Metric.d.ts +266 -0
- package/dist/vendor/effect/MutableHashMap.d.ts +80 -0
- package/dist/vendor/effect/MutableList.d.ts +52 -0
- package/dist/vendor/effect/MutableRef.d.ts +76 -0
- package/dist/vendor/effect/NonEmptyIterable.d.ts +9 -0
- package/dist/vendor/effect/Optic.d.ts +155 -0
- package/dist/vendor/effect/Option.d.ts +380 -0
- package/dist/vendor/effect/Order.d.ts +110 -0
- package/dist/vendor/effect/Ordering.d.ts +24 -0
- package/dist/vendor/effect/Path.d.ts +44 -0
- package/dist/vendor/effect/Pipeable.d.ts +38 -0
- package/dist/vendor/effect/PlatformError.d.ts +63 -0
- package/dist/vendor/effect/Predicate.d.ts +227 -0
- package/dist/vendor/effect/PrimaryKey.d.ts +11 -0
- package/dist/vendor/effect/PubSub.d.ts +229 -0
- package/dist/vendor/effect/Pull.d.ts +54 -0
- package/dist/vendor/effect/Queue.d.ts +212 -0
- package/dist/vendor/effect/Rational.d.ts +212 -0
- package/dist/vendor/effect/Record.d.ts +247 -0
- package/dist/vendor/effect/Redactable.d.ts +14 -0
- package/dist/vendor/effect/Redacted.d.ts +34 -0
- package/dist/vendor/effect/Reducer.d.ts +13 -0
- package/dist/vendor/effect/References.d.ts +53 -0
- package/dist/vendor/effect/Request.d.ts +106 -0
- package/dist/vendor/effect/RequestResolver.d.ts +159 -0
- package/dist/vendor/effect/Result.d.ts +285 -0
- package/dist/vendor/effect/Schedule.d.ts +172 -0
- package/dist/vendor/effect/Scheduler.d.ts +45 -0
- package/dist/vendor/effect/Schema.d.ts +3205 -0
- package/dist/vendor/effect/SchemaAST.d.ts +356 -0
- package/dist/vendor/effect/SchemaGetter.d.ts +181 -0
- package/dist/vendor/effect/SchemaIssue.d.ts +147 -0
- package/dist/vendor/effect/SchemaParser.d.ts +57 -0
- package/dist/vendor/effect/SchemaRepresentation.d.ts +563 -0
- package/dist/vendor/effect/SchemaTransformation.d.ts +155 -0
- package/dist/vendor/effect/Scope.d.ts +69 -0
- package/dist/vendor/effect/SemVer.d.ts +209 -0
- package/dist/vendor/effect/SemVerRange.d.ts +74 -0
- package/dist/vendor/effect/Semaphore.d.ts +87 -0
- package/dist/vendor/effect/Sink.d.ts +337 -0
- package/dist/vendor/effect/StandardSchema.d.ts +112 -0
- package/dist/vendor/effect/Stream.d.ts +1762 -0
- package/dist/vendor/effect/Struct.d.ts +162 -0
- package/dist/vendor/effect/Take.d.ts +8 -0
- package/dist/vendor/effect/Tracer.d.ts +150 -0
- package/dist/vendor/effect/TxRef.d.ts +40 -0
- package/dist/vendor/effect/Types.d.ts +139 -0
- package/dist/vendor/effect/Unify.d.ts +50 -0
- package/dist/vendor/effect/Utils.d.ts +31 -0
- package/dist/vendor/effect/crypto/Aead.d.ts +72 -0
- package/dist/vendor/effect/crypto/Cipher.d.ts +54 -0
- package/dist/vendor/effect/crypto/CryptoError.d.ts +81 -0
- package/dist/vendor/effect/crypto/Digest.d.ts +32 -0
- package/dist/vendor/effect/crypto/KeyAgreement.d.ts +80 -0
- package/dist/vendor/effect/crypto/KeyFormat.d.ts +82 -0
- package/dist/vendor/effect/crypto/KeyWrap.d.ts +97 -0
- package/dist/vendor/effect/crypto/Mac.d.ts +56 -0
- package/dist/vendor/effect/crypto/SecureRandom.d.ts +63 -0
- package/dist/vendor/effect/crypto/Signature.d.ts +122 -0
- package/dist/vendor/effect/crypto/WebCrypto.d.ts +18 -0
- package/dist/vendor/effect/http/Cookies.d.ts +185 -0
- package/dist/vendor/effect/http/Headers.d.ts +144 -0
- package/dist/vendor/effect/http/UrlParams.d.ts +122 -0
- package/dist/vendor/effect/internal/schemaError.d.ts +3 -0
- package/dist/vendor/effect/net/Dns.d.ts +166 -0
- package/dist/vendor/effect/net/Host.d.ts +80 -0
- package/dist/vendor/effect/net/IpInterface.d.ts +65 -0
- package/dist/vendor/effect/net/IpNetwork.d.ts +89 -0
- package/dist/vendor/effect/net/NetAddress.d.ts +350 -0
- package/dist/vendor/effect/persistence/KeyValueStore.d.ts +138 -0
- package/dist/vendor/effect/persistence/Persistable.d.ts +56 -0
- package/dist/vendor/effect/persistence/Persistence.d.ts +83 -0
- package/dist/vendor/effect/persistence/Redis.d.ts +98 -0
- package/dist/vendor/effect/reactivity/Reactivity.d.ts +59 -0
- package/dist/vendor/effect/sql/SqlClient.d.ts +121 -0
- package/dist/vendor/effect/sql/SqlConnection.d.ts +26 -0
- package/dist/vendor/effect/sql/SqlError.d.ts +186 -0
- package/dist/vendor/effect/sql/Statement.d.ts +225 -0
- package/native/win32-x64/spana_native.dll +0 -0
- package/package.json +4 -3
- package/dist/chunk-5Q2ROROC.js.map +0 -1
- package/dist/chunk-7TMILDYA.js.map +0 -1
- package/dist/chunk-ABRN6BL6.js.map +0 -1
- package/dist/chunk-C2TMVKT7.js.map +0 -1
- package/dist/chunk-EJHZZ2OP.js.map +0 -1
- package/dist/chunk-FLPPA2XY.js.map +0 -1
- package/dist/chunk-T3PCI5QZ.js.map +0 -1
- /package/dist/{app-RWO7IJ3R.js.map → app-ZSRJ3VFR.js.map} +0 -0
- /package/dist/{appium-2PJWZXJI.js.map → appium-LOAWWZXA.js.map} +0 -0
- /package/dist/{config-loader-MX232REU.js.map → build-info-KFFGVWDQ.js.map} +0 -0
- /package/dist/{chunk-AFWHSQHU.js.map → chunk-42D5LOGH.js.map} +0 -0
- /package/dist/{chunk-CQ67PB3R.js.map → chunk-6GLL6SMP.js.map} +0 -0
- /package/dist/{chunk-F4DMBDPA.js.map → chunk-7QJY2HJO.js.map} +0 -0
- /package/dist/{chunk-I7BUJBT2.js.map → chunk-GBV3XDWM.js.map} +0 -0
- /package/dist/{chunk-BIV3DXB5.js.map → chunk-HX2PKESI.js.map} +0 -0
- /package/dist/{chunk-3JAGQ4XW.js.map → chunk-QNCTEV2P.js.map} +0 -0
- /package/dist/{chunk-3EBGWXYE.js.map → chunk-XUKBM64A.js.map} +0 -0
- /package/dist/{chunk-ERFUFR5T.js.map → chunk-XZQGSUV7.js.map} +0 -0
- /package/dist/{chunk-555KISAV.js.map → chunk-ZVUIG6A4.js.map} +0 -0
- /package/dist/{driver-TBRUL2EL.js.map → config-loader-IDIKOQ4T.js.map} +0 -0
- /package/dist/{doctor-command-O3MSNK7M.js.map → doctor-command-2PSDOREK.js.map} +0 -0
- /package/dist/{driver-VKJEQCG3.js.map → driver-TNQ6HSID.js.map} +0 -0
- /package/dist/{electrobun-5OGIQHTC.js.map → driver-TTJVCWCD.js.map} +0 -0
- /package/dist/{local-7PACQMS4.js.map → electrobun-6ZJ6QFVQ.js.map} +0 -0
- /package/dist/{playwright-MPVYCDGO.js.map → local-E6FJI3QK.js.map} +0 -0
- /package/dist/{server-ZCA5M6SW.js.map → playwright-LS35WXQ6.js.map} +0 -0
- /package/dist/{session-NCG5GVP6.js.map → server-A6Y6ZMET.js.map} +0 -0
- /package/dist/{server-SGLHRRAE.js.map → server-D3HOIPQE.js.map} +0 -0
- /package/dist/{studio-command-VJ26HQU3.js.map → studio-command-SPHIXFIW.js.map} +0 -0
- /package/dist/{test-command-GPQL7SRB.js.map → test-command-OYMJNT23.js.map} +0 -0
|
@@ -2,12 +2,15 @@ import { createRequire as __spanaCreateRequire } from "node:module"; const requi
|
|
|
2
2
|
import {
|
|
3
3
|
findDeviceById
|
|
4
4
|
} from "./chunk-CZAFFUMN.js";
|
|
5
|
+
import {
|
|
6
|
+
parseAndroidHierarchy
|
|
7
|
+
} from "./chunk-GACJRITH.js";
|
|
5
8
|
import {
|
|
6
9
|
setupUiAutomator2
|
|
7
10
|
} from "./chunk-IC46FAEW.js";
|
|
8
11
|
import {
|
|
9
12
|
createWDADriver
|
|
10
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-42D5LOGH.js";
|
|
11
14
|
import {
|
|
12
15
|
parseIOSHierarchy
|
|
13
16
|
} from "./chunk-5DSPPJ76.js";
|
|
@@ -16,10 +19,7 @@ import {
|
|
|
16
19
|
} from "./chunk-Z5BMFLZ5.js";
|
|
17
20
|
import {
|
|
18
21
|
createUiAutomator2Driver
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
parseAndroidHierarchy
|
|
22
|
-
} from "./chunk-GACJRITH.js";
|
|
22
|
+
} from "./chunk-GBV3XDWM.js";
|
|
23
23
|
import {
|
|
24
24
|
bootSimulator,
|
|
25
25
|
connectPhysicalDevice,
|
|
@@ -29,27 +29,27 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
parseWebHierarchy
|
|
31
31
|
} from "./chunk-ODRB22QA.js";
|
|
32
|
+
import {
|
|
33
|
+
buildStorybookUrl,
|
|
34
|
+
createCoordinator,
|
|
35
|
+
createPromiseApp,
|
|
36
|
+
flattenElements
|
|
37
|
+
} from "./chunk-XORHAB3R.js";
|
|
32
38
|
import {
|
|
33
39
|
makePlaywrightDriver
|
|
34
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-XZQGSUV7.js";
|
|
35
41
|
import {
|
|
36
42
|
makeElectronDriver
|
|
37
43
|
} from "./chunk-YKNHKVE6.js";
|
|
38
44
|
import {
|
|
39
45
|
makeElectrobunDriver
|
|
40
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-XUKBM64A.js";
|
|
41
47
|
import {
|
|
42
48
|
allocatePort
|
|
43
49
|
} from "./chunk-B6NTHBPF.js";
|
|
44
50
|
import {
|
|
45
51
|
firstAndroidDevice
|
|
46
52
|
} from "./chunk-T46S4VA3.js";
|
|
47
|
-
import {
|
|
48
|
-
buildStorybookUrl,
|
|
49
|
-
createCoordinator,
|
|
50
|
-
createPromiseApp,
|
|
51
|
-
flattenElements
|
|
52
|
-
} from "./chunk-5Q2ROROC.js";
|
|
53
53
|
import {
|
|
54
54
|
DriverError,
|
|
55
55
|
Effect_exports
|
|
@@ -484,4 +484,4 @@ export {
|
|
|
484
484
|
Session,
|
|
485
485
|
connect
|
|
486
486
|
};
|
|
487
|
-
//# sourceMappingURL=chunk-
|
|
487
|
+
//# sourceMappingURL=chunk-QNCTEV2P.js.map
|
|
@@ -234,7 +234,7 @@ var launchOptionsSchema = external_exports.object({
|
|
|
234
234
|
launchArguments: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
235
235
|
deviceState: deviceStateSchema.optional()
|
|
236
236
|
}).strict();
|
|
237
|
-
var
|
|
237
|
+
var provConfigZodSchema = external_exports.object({
|
|
238
238
|
apps: external_exports.object({
|
|
239
239
|
web: appConfigSchema.optional(),
|
|
240
240
|
android: appConfigSchema.optional(),
|
|
@@ -259,6 +259,7 @@ var provConfigSchema = external_exports.object({
|
|
|
259
259
|
tapMode: external_exports.enum(["native", "dom"]).optional(),
|
|
260
260
|
locale: external_exports.string().min(1).optional(),
|
|
261
261
|
failFastWhenIdle: external_exports.boolean().optional(),
|
|
262
|
+
idleQuietMs: external_exports.number().int().positive().optional(),
|
|
262
263
|
actionStableFrames: external_exports.number().int().nonnegative().optional(),
|
|
263
264
|
fillVerifyMs: external_exports.number().int().nonnegative().optional(),
|
|
264
265
|
timingsFile: external_exports.string().min(1).optional(),
|
|
@@ -281,7 +282,8 @@ var provConfigSchema = external_exports.object({
|
|
|
281
282
|
threshold: external_exports.number().min(0).max(1).optional(),
|
|
282
283
|
maxDiffPixelRatio: external_exports.number().min(0).max(1).optional(),
|
|
283
284
|
baselinesDir: external_exports.string().optional(),
|
|
284
|
-
mode: external_exports.enum(["pixel", "layout-tolerant"]).optional()
|
|
285
|
+
mode: external_exports.enum(["pixel", "layout-tolerant"]).optional(),
|
|
286
|
+
missingBaseline: external_exports.enum(["write", "fail"]).optional()
|
|
285
287
|
}).optional(),
|
|
286
288
|
filters: external_exports.array(
|
|
287
289
|
external_exports.custom(
|
|
@@ -353,6 +355,9 @@ var provConfigSchema = external_exports.object({
|
|
|
353
355
|
maxSteps: external_exports.number().int().positive().optional()
|
|
354
356
|
}).strict().optional()
|
|
355
357
|
}).strict();
|
|
358
|
+
var provConfigSchema = {
|
|
359
|
+
parse: (config) => provConfigZodSchema.parse(config)
|
|
360
|
+
};
|
|
356
361
|
function defineConfig(config) {
|
|
357
362
|
return config;
|
|
358
363
|
}
|
|
@@ -361,7 +366,7 @@ function validateConfig(config) {
|
|
|
361
366
|
}
|
|
362
367
|
function formatConfigValidationError(error) {
|
|
363
368
|
return error.issues.map((issue) => {
|
|
364
|
-
const path = issue.path.length > 0 ? issue.path.join(".") : "config";
|
|
369
|
+
const path = issue.path.length > 0 ? issue.path.map(String).join(".") : "config";
|
|
365
370
|
return `- ${path}: ${issue.message}`;
|
|
366
371
|
}).join("\n");
|
|
367
372
|
}
|
|
@@ -371,4 +376,4 @@ export {
|
|
|
371
376
|
validateConfig,
|
|
372
377
|
formatConfigValidationError
|
|
373
378
|
};
|
|
374
|
-
//# sourceMappingURL=chunk-
|
|
379
|
+
//# sourceMappingURL=chunk-VWOTHDSE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/schemas/config.ts"],"sourcesContent":["import type { Platform, TapMode } from \"./selector.js\";\nimport type {\n DeviceStateConfig,\n LaunchOptions,\n VirtualAuthenticatorOptions,\n} from \"../drivers/raw-driver.js\";\nimport type { WebServerConfig } from \"../runtime/web-server.js\";\nimport type { ProjectConfig } from \"../core/projects.js\";\nimport type { AgentProviderConfig } from \"../api/agent-fixture.js\";\nimport { z } from \"zod\";\n\nexport type {\n DeviceStateConfig,\n LaunchOptions,\n VirtualAuthenticatorOptions,\n WebServerConfig,\n ProjectConfig,\n AgentProviderConfig,\n};\n\nexport interface IOSSigningConfig {\n /** Apple Development Team ID (from developer.apple.com or Xcode) */\n teamId: string;\n /** Code signing identity (default: \"Apple Development\") */\n signingIdentity?: string;\n}\n\nexport interface BridgeConfig {\n /** Enable the in-app spana-bridge WebSocket server. Default: auto-detected when port/url is set. */\n enabled?: boolean;\n /** Port for the runner's spana-bridge WebSocket server (default: 9333). */\n port?: number;\n /** Host to bind the bridge server on (default: \"127.0.0.1\"). */\n host?: string;\n /** Explicit external bridge URL if already running (e.g. ws://127.0.0.1:9333). */\n url?: string;\n /** Connection timeout in ms when waiting for the app bridge to connect (default: 5000). */\n connectTimeout?: number;\n}\n\nexport interface WarmDaemonConfig {\n /** Keep WDA / UiAutomator2 daemons alive across test runs and reuse them. Default: false. */\n enabled?: boolean;\n /** Reuse a single browser process across flows with fresh BrowserContexts. Default: true. */\n reuseBrowserProcess?: boolean;\n /** Reuse an active WDA/UiAutomator2 session across flows instead of recreating. Default: true when warm daemons enabled. */\n reuseSession?: boolean;\n /** Optional path to store warm daemon metadata. */\n stateFile?: string;\n}\n\nexport type WebUrlResolver =\n | string\n | ((ctx: { workerIndex: number; parallelIndex: number }) => string);\n\nexport interface AppConfig {\n url?: WebUrlResolver;\n packageName?: string;\n bundleId?: string;\n /** Path to .app or .ipa for auto-install on device/simulator */\n appPath?: string;\n /** iOS code signing config for physical devices */\n signing?: IOSSigningConfig;\n /** Explicit WebKit Inspector URL or port for iOS WKWebView direct DOM access */\n webkitInspectorUrl?: string;\n webkitInspectorPort?: number;\n /** Explicit CDP port for Android WebView or desktop targets */\n cdpPort?: number;\n /** Pin device locale (e.g. \"en_US\", \"sv_SE\") for predictable system UI labels */\n locale?: string;\n /** Optional spana-bridge override for this app target */\n bridge?: BridgeConfig;\n}\n\nexport interface ElectronAppConfig {\n /** Path to Electron main entry file or app directory (passed to Playwright _electron.launch) */\n entry?: string;\n /** Path to a packaged Electron executable */\n executablePath?: string;\n /** Extra CLI arguments passed to Electron */\n args?: string[];\n /** Working directory for Electron launch */\n cwd?: string;\n /** Additional environment variables for Electron */\n env?: Record<string, string>;\n /** Attach to an already-running Electron app over CDP instead of launching */\n cdpUrl?: string;\n /** Remote debugging port when launching or attaching over CDP */\n cdpPort?: number;\n /** Optional URL to navigate to after launch */\n url?: string;\n /** Optional spana-bridge config */\n bridge?: BridgeConfig;\n}\n\nexport type ElectrobunRenderer = \"native\" | \"cef\";\n\nexport interface ElectrobunAppConfig {\n /** Path to Electrobun binary or packaged .app/.exe */\n executablePath?: string;\n /** Path to Electrobun project root (containing electrobun.config.ts) */\n appDir?: string;\n /** Extra CLI arguments passed to the Electrobun process */\n args?: string[];\n /** Working directory for launch */\n cwd?: string;\n /** Additional environment variables */\n env?: Record<string, string>;\n /** Renderer engine used by the Electrobun build: \"native\" (WKWebView/WebView2/WebKitGTK) or \"cef\" */\n renderer?: ElectrobunRenderer;\n /** Attach to an already-running Electrobun CEF/WebView2 app over CDP */\n cdpUrl?: string;\n /** Remote debugging port (ELECTROBUN_CDP_PORT / WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS) */\n cdpPort?: number;\n /** WebKit Inspector port for macOS WKWebView or Linux WebKitGTK */\n webkitInspectorPort?: number;\n /** Optional URL to navigate to after launch */\n url?: string;\n /** Optional spana-bridge config */\n bridge?: BridgeConfig;\n}\n\nexport type BrowserName = \"chromium\" | \"firefox\" | \"webkit\";\nexport type WebBrowserEngine = \"auto\" | \"playwright\" | \"cdp\" | \"lightpanda\";\nexport type WebContextIsolation = \"fresh\" | \"hot-cache\";\nexport type WebGpuMode = \"auto\" | \"swiftshader\" | \"hardware\" | \"disabled\";\nexport type WebResourceBlockType = \"image\" | \"font\" | \"media\" | \"stylesheet\";\nexport type VideoRecordingMode = \"off\" | \"on\" | \"retain-on-failure\";\n\nexport interface WasmAppConfig {\n /** Path to a compiled `.wasm` binary for headless in-process / WASI / wasmtime testing. */\n modulePath?: string;\n /** Execution backend: `\"in-process\"` (default), `\"wasi\"` (`node:wasi`), or `\"wasmtime\"` CLI. */\n runtime?: \"in-process\" | \"wasi\" | \"wasmtime\";\n /** CLI arguments passed to WASI / wasmtime modules. */\n args?: string[];\n /** Environment variables passed to WASI / wasmtime modules. */\n env?: Record<string, string>;\n /** Preopened host directories mapped into WASI (`{ \"/sandbox\": \"./tmp\" }`). */\n preopens?: Record<string, string>;\n /** Optional export function name invoked on launch (default: `_start` for WASI). */\n entryExport?: string;\n}\n\nexport type StorybookValue = string | number | boolean | null;\n\nexport interface StorybookConfig {\n /** Optional dedicated Storybook URL (falls back to apps.web.url when omitted) */\n url?: string;\n /** Preview iframe path used to render isolated stories (default: /iframe.html) */\n iframePath?: string;\n}\n\nexport interface WebViewportConfig {\n width: number;\n height: number;\n /** Device pixel ratio (e.g. `2` or `3` for Retina/mobile). */\n deviceScaleFactor?: number;\n /** Emulate mobile device metrics & viewport meta tag. */\n mobile?: boolean;\n /** Playwright-compatible alias for `mobile`. */\n isMobile?: boolean;\n /** Enable touch event emulation (`Emulation.setTouchEmulationEnabled`). */\n hasTouch?: boolean;\n}\n\nexport interface HttpCredentialsConfig {\n username: string;\n password: string;\n}\n\nexport interface WebDeviceConfig {\n name?: string;\n viewport?: WebViewportConfig;\n deviceScaleFactor?: number;\n mobile?: boolean;\n isMobile?: boolean;\n hasTouch?: boolean;\n userAgent?: string;\n}\n\nexport interface WebExecutionConfig {\n browser?: BrowserName;\n /** Browser engine backend: \"playwright\" (default), \"cdp\" (direct CDP WebSocket — zero Playwright pipe), or \"lightpanda\". */\n engine?: WebBrowserEngine;\n /** Connect to an existing CDP browser / Lightpanda endpoint (e.g. \"http://127.0.0.1:9222\"). */\n cdpUrl?: string;\n /** Connect to a remote Playwright server WebSocket (e.g. BrowserStack Automate Web `wss://cdp.browserstack.com/playwright?...`). */\n wsEndpoint?: string;\n /** Explicit browser executable path (e.g. system Chrome or custom Chromium binary). */\n executablePath?: string;\n /** Browser release channel (e.g. \"chrome\", \"chrome-beta\", \"msedge\"). */\n channel?: string;\n headless?: boolean;\n /** Navigation readiness event for launchApp/openLink (default: \"domcontentloaded\" on CDP, \"load\" on Playwright). */\n waitUntil?: \"domcontentloaded\" | \"load\" | \"networkidle\" | \"commit\";\n /** Collapse CSS transitions & animations to 0.001ms for faster deterministic runs. */\n instantAnimations?: boolean;\n /** Abort heavy asset requests (\"image\" | \"font\" | \"media\" | \"stylesheet\") during web runs. */\n blockResources?: WebResourceBlockType[];\n /** Reuse a persistent warm Chromium daemon across runs via CDP (chromium only). */\n warmBrowser?: boolean;\n /** Scope key for isolating warm Chromium daemons across concurrent repos/runs (defaults to cwd hash). */\n warmBrowserScope?: string;\n /** Create a fresh isolated BrowserContext per flow using pre-warmed context pooling + background teardown. */\n freshContextPerFlow?: boolean;\n /**\n * Context isolation strategy when `freshContextPerFlow` is enabled (Direct CDP):\n * - `\"hot-cache\"` (default in v0.14+): keeps Chromium's HTTP & V8 bytecode cache hot while wiping\n * cookies, localStorage, sessionStorage, OPFS, IndexedDB, CacheStorage, and service workers\n * between flows (~4 ms reset!).\n * - `\"fresh\"`: new `Target.createBrowserContext` per flow (strictest isolation).\n */\n contextIsolation?: WebContextIsolation;\n /** Max worker contexts sharing one Chromium browser process under `--parallel` (default: 4 for `cdp`, 2 otherwise). */\n maxContextsPerBrowser?: number;\n /** Automatically attach a CDP WebAuthn virtual authenticator (passkey) to every fresh context. */\n virtualAuthenticator?: boolean | VirtualAuthenticatorOptions;\n /** Optional Playwright storage state JSON file to preload for web runs */\n storageState?: string;\n /** Print verbose Playwright runtime events to stdout for local web debugging */\n verboseLogging?: boolean;\n /** Optional Storybook config for isolated component/story flows in the browser runtime */\n storybook?: StorybookConfig;\n /** Unpacked Chromium browser extension directories to load at launch. */\n extensions?: string[];\n /** Emulate `prefers-color-scheme` on web launch (`\"dark\"` | `\"light\"` | `\"no-preference\"`). */\n colorScheme?: \"dark\" | \"light\" | \"no-preference\";\n /** Emulate `prefers-reduced-motion` on web launch (`\"reduce\"` | `\"no-preference\"`). */\n reducedMotion?: \"reduce\" | \"no-preference\";\n /** Emulate IANA timezone ID on Chromium launch (e.g. `\"America/New_York\"`). */\n timezoneId?: string;\n /** Emulate browser locale / Accept-Language (e.g. `\"sv-SE\"`, `\"en-US\"`). */\n locale?: string;\n /** Explicit User-Agent header & `navigator.userAgent` override. */\n userAgent?: string;\n /** HTTP Basic/Digest authentication credentials for protected origins. */\n httpCredentials?: HttpCredentialsConfig;\n /** Default viewport dimensions & optional mobile metrics applied before first navigation (default: 1280×720). */\n viewport?: WebViewportConfig;\n /** Device pixel ratio override (e.g. `2` or `3`). */\n deviceScaleFactor?: number;\n /** Emulate a mobile device (meta viewport + mobile media features). */\n mobile?: boolean;\n /** Playwright-compatible alias for `mobile`. */\n isMobile?: boolean;\n /** Enable touch event emulation. */\n hasTouch?: boolean;\n /** Bundled device emulation descriptor (`viewport`, `deviceScaleFactor`, `isMobile`, `hasTouch`, `userAgent`). */\n device?: WebDeviceConfig;\n /** Extra Chromium CLI arguments passed when launching the browser (e.g. `--use-fake-device-for-media-stream`). */\n args?: string[];\n /**\n * GPU rendering mode for headless/headed Chromium:\n * - `\"auto\"` (default): `\"swiftshader\"` when `webgpu: true` in headless, `\"hardware\"` when headed, `\"disabled\"` otherwise.\n * - `\"swiftshader\"`: deterministic software WebGL2/WebGPU via ANGLE SwiftShader (ideal for canvas/WASM CI).\n * - `\"hardware\"`: use host GPU (omits `--disable-gpu`).\n * - `\"disabled\"`: pass `--disable-gpu` in headless mode.\n */\n gpu?: WebGpuMode;\n /** Enable WebGPU flags (`--enable-unsafe-webgpu`, plus deterministic SwiftShader in headless mode). */\n webgpu?: boolean;\n /**\n * Enable Chromium's OS sandbox for Direct CDP launches.\n * Default: `false` (passes `--no-sandbox`, matching Playwright's default so headless Chromium works\n * out-of-the-box on Ubuntu 23.10+ / GitHub Actions runners with AppArmor userns restrictions).\n * Set `true` to keep Chromium's sandbox enabled.\n */\n chromiumSandbox?: boolean;\n /**\n * Optional JS expression evaluated inside `isAppReady()` (via `window.__SPANA_APP_READY__`)\n * so SSR apps wait for client hydration before interactions without modifying app source code.\n */\n readyExpression?: string;\n /** Timeout in ms when waiting for the browser debugging endpoint to start (default: 30000). */\n launchTimeout?: number;\n /** Timeout in ms for `app.evaluate()` / CDP `Runtime.evaluate` calls (default: 10000). */\n evaluateTimeout?: number;\n /**\n * Timeout in ms for page navigations (`openLink`, `launchApp`, `reload`, `back`, `forward`,\n * `waitForLoadState`). Default: 30000, independent of `defaults.waitTimeout` (element waits)\n * and `evaluateTimeout`. A navigation that does not reach its load state in time throws.\n */\n navigationTimeout?: number;\n}\n\nexport interface CloudAppReferenceConfig {\n /** Existing remote app reference, e.g. bs://... or storage:... */\n id?: string;\n /** Local file path to upload when the provider supports managed upload */\n path?: string;\n /** Override the uploaded file name when the provider supports it */\n name?: string;\n}\n\nexport interface BrowserStackAppConfig extends CloudAppReferenceConfig {\n /** Stable BrowserStack app alias */\n customId?: string;\n}\n\nexport interface BrowserStackLocalConfig {\n enabled?: boolean;\n binary?: string;\n identifier?: string;\n args?: string[];\n}\n\nexport interface BrowserStackHelperConfig {\n app?: BrowserStackAppConfig;\n local?: BrowserStackLocalConfig;\n options?: Record<string, unknown>;\n}\n\nexport interface SauceConnectConfig {\n enabled?: boolean;\n binary?: string;\n tunnelName?: string;\n args?: string[];\n}\n\nexport interface SauceLabsHelperConfig {\n app?: CloudAppReferenceConfig;\n connect?: SauceConnectConfig;\n options?: Record<string, unknown>;\n}\n\nexport interface AppiumExecutionConfig {\n serverUrl?: string;\n capabilities?: Record<string, unknown>;\n /**\n * Platform-specific capabilities merged on top of `capabilities` when the\n * matching platform runs. Useful when you want different `appium:deviceName`\n * or `appium:platformVersion` for Android vs iOS.\n */\n platformCapabilities?: {\n android?: Record<string, unknown>;\n ios?: Record<string, unknown>;\n };\n capabilitiesFile?: string;\n reportToProvider?: boolean;\n browserstack?: BrowserStackHelperConfig;\n saucelabs?: SauceLabsHelperConfig;\n /** Path to a custom cloud provider module (default export must conform to CloudProvider interface). */\n cloudProvider?: string;\n /**\n * Opt in to having spana spawn a local `appium` subprocess for the\n * duration of the test run. Requires `appium` to be on PATH. When true,\n * `serverUrl` (if set) is ignored and a URL is assigned to the\n * auto-started server instead. Off by default — spana never spawns\n * background processes unless you ask.\n */\n autoStart?: boolean;\n /** Override the `appium` binary name. Default: \"appium\". */\n autoStartBinary?: string;\n /** Extra CLI args to forward to the spawned Appium process. */\n autoStartArgs?: readonly string[];\n}\n\nexport interface ExecutionConfig {\n mode?: \"local\" | \"appium\";\n web?: WebExecutionConfig;\n appium?: AppiumExecutionConfig;\n /** In-app spana-bridge configuration shared across webview targets */\n bridge?: BridgeConfig;\n /** Warm daemon & process reuse settings for fast repeated runs */\n warmDaemons?: WarmDaemonConfig;\n}\n\nexport interface ArtifactConfig {\n outputDir?: string;\n captureOnFailure?: boolean;\n captureOnSuccess?: boolean;\n captureSteps?: boolean;\n screenshot?: boolean;\n uiHierarchy?: boolean;\n consoleLogs?: boolean;\n jsErrors?: boolean;\n har?: boolean;\n jsCoverage?: boolean;\n /** Video / screencast recording mode: \"off\" (default), \"on\", or \"retain-on-failure\". */\n video?: VideoRecordingMode;\n /** Embed interactive step-by-step visual playback timeline inside report.html (auto-enabled when video !== \"off\"). */\n playback?: boolean;\n /** Write Playwright-style interactive `trace.json` + `trace-viewer.html` bundle per flow. */\n trace?: boolean;\n /** Automatically attach Android `adb logcat` / iOS Simulator crash logs on native failure (default: true). */\n nativeLogs?: boolean;\n}\n\nexport interface HookContext {\n app: unknown; // Will be typed properly when App is defined\n expect?: unknown;\n platform?: Platform;\n result?: unknown;\n summary?: unknown;\n}\n\nexport interface ProvConfig {\n apps?: {\n web?: AppConfig;\n android?: AppConfig;\n ios?: AppConfig;\n electron?: ElectronAppConfig;\n electrobun?: ElectrobunAppConfig;\n };\n defaults?: {\n /**\n * Element waits, actions and `expect` matchers (default 5000). Page navigations use\n * `execution.web.navigationTimeout` (default 30000) instead.\n */\n waitTimeout?: number;\n pollInterval?: number;\n settleTimeout?: number;\n retries?: number;\n /** Pause after each action (tap, scroll) to let the UI settle. Default: 0 (disabled). */\n waitForIdleTimeout?: number;\n /** Delay between each character when typing. Default: 0 (instant). */\n typingDelay?: number;\n /** Starting poll interval for adaptive backoff. Default: 50ms. Set equal to pollInterval to disable adaptive backoff. */\n initialPollInterval?: number;\n /** Max age in ms before cached hierarchy is stale. Default: 100. Set to 0 to disable. */\n hierarchyCacheTtl?: number;\n /** Max depth for UI hierarchy snapshots on iOS. Default: 100. */\n snapshotMaxDepth?: number;\n /** Delay in ms between retry attempts of a failed flow. Default: 0 (immediate). */\n retryDelay?: number;\n /** Max workers per platform when using --parallel. */\n workers?: number;\n /** Number of isolated OS worker processes sharing a dynamic longest-first flow queue (`--processes M`). */\n processes?: number;\n /** Max in-process workers before automatically sharding across multiple OS processes (default: 8). */\n maxWorkersPerProcess?: number;\n /** Default tap mode when a DOM channel resolves an element: \"native\" (real touch, default) or \"dom\" (fast synthetic click). */\n tapMode?: TapMode;\n /** Pin device locale across targets so system UI sheet labels stay deterministic. */\n locale?: string;\n /**\n * Fail web element waits early when the page is idle & readyState === \"complete\" instead of\n * waiting the full waitTimeout. Idle means no DOM mutation, animation or network activity\n * (on Direct CDP: requests, EventSource messages and WebSocket frames) for `idleQuietMs`.\n * UI shown by a timer that fires later than `idleQuietMs` is not waited for.\n */\n failFastWhenIdle?: boolean;\n /** Quiet window in ms for `failFastWhenIdle`. Default: 250. */\n idleQuietMs?: number;\n /** Consecutive stable animation frames required before pointer actions on web. Default: 2. Set 0 to disable. */\n actionStableFrames?: number;\n /** Post-fill remount verification delay in ms (default: 12). Set 0 to verify synchronously for faster static-form runs. */\n fillVerifyMs?: number;\n /** Path to a portable JSON timings file (or directory of shard timing files) for duration-balanced `--shard` & longest-first scheduling. */\n timingsFile?: string;\n /** Default timeout in ms for `expect(fn).toPass()` and `expect.poll()`. Defaults to remaining flow timeout. */\n toPassTimeout?: number;\n };\n platforms?: Platform[];\n /** Run platforms concurrently when they use independent resources. Default: false (serial). */\n parallelPlatforms?: boolean;\n flowDir?: string;\n launchOptions?: LaunchOptions;\n /**\n * Reporter names or module paths. Built-in: \"console\", \"json\", \"junit\", \"html\", \"allure\".\n * Custom reporters: provide a relative path (e.g., \"./reporters/slack.ts\") that default-exports\n * a Reporter object or a `(options: { outputDir: string }) => Reporter` factory function.\n */\n reporters?: string[];\n hooks?: {\n beforeAll?: (ctx: HookContext) => Promise<void>;\n beforeEach?: (ctx: HookContext) => Promise<void>;\n afterEach?: (ctx: HookContext) => Promise<void>;\n afterAll?: (ctx: HookContext) => Promise<void>;\n };\n artifacts?: ArtifactConfig;\n execution?: ExecutionConfig;\n visualRegression?: {\n threshold?: number;\n maxDiffPixelRatio?: number;\n baselinesDir?: string;\n mode?: \"pixel\" | \"layout-tolerant\";\n /**\n * What `toMatchScreenshot` does when the baseline file does not exist (and\n * `--update-baselines` is not passed). `\"fail\"` (default, Playwright parity) fails the\n * assertion and writes the shot to `<outputDir>/<flow>-<platform>-<name>-actual.png` for\n * review; `\"write\"` records it as the new baseline and passes (the 0.19 behaviour).\n */\n missingBaseline?: \"write\" | \"fail\";\n };\n /** Pluggable CI filters evaluated when `--changed-since <ref>` is passed. */\n filters?: Array<{\n name: string;\n filter: (flows: any[], context: any) => Promise<any> | any;\n }>;\n /** Verified replay cache settings for optional agentic steps (`.spana/cache/`). */\n replayCache?: {\n mode?: \"read-write\" | \"strict\" | \"off\";\n dir?: string;\n };\n /** Auto-boot one or more dev servers before tests run and tear them down cleanly afterwards. */\n webServer?: WebServerConfig | WebServerConfig[];\n /** Named test projects with dependency DAG (`dependencies`, `teardown`, per-project `storageState` / `browser` / `testMatch`). */\n projects?: ProjectConfig[];\n /** Optional LLM provider configuration for `agent.act()` / `agent.verify()` / `agent.extract()` and `spana explore`. */\n agent?: Omit<AgentProviderConfig, \"fetchFn\">;\n}\n\nconst platformSchema = z.enum([\"web\", \"android\", \"ios\", \"electron\", \"electrobun\"]);\nconst reporterSchema = z.string().min(1);\nconst hookSchema = z.custom<(...args: unknown[]) => Promise<void>>(\n (value) => typeof value === \"function\",\n { message: \"Expected function\" },\n);\n\nconst iosSigningConfigSchema = z\n .object({\n teamId: z.string().min(1, \"teamId is required\"),\n signingIdentity: z.string().min(1).optional(),\n })\n .strict();\n\nconst bridgeConfigSchema = z\n .object({\n enabled: z.boolean().optional(),\n port: z.number().int().positive().optional(),\n host: z.string().min(1).optional(),\n url: z.string().min(1).optional(),\n connectTimeout: z.number().positive().optional(),\n })\n .strict();\n\nconst warmDaemonConfigSchema = z\n .object({\n enabled: z.boolean().optional(),\n reuseBrowserProcess: z.boolean().optional(),\n reuseSession: z.boolean().optional(),\n stateFile: z.string().min(1).optional(),\n })\n .strict();\n\nconst webUrlResolverSchema = z.union([\n z.string().url(),\n z.custom<(ctx: { workerIndex: number; parallelIndex: number }) => string>(\n (value) => typeof value === \"function\",\n { message: \"Expected URL string or ({ workerIndex, parallelIndex }) => string function\" },\n ),\n]);\n\nconst appConfigSchema = z\n .object({\n url: webUrlResolverSchema.optional(),\n packageName: z.string().min(1).optional(),\n bundleId: z.string().min(1).optional(),\n appPath: z.string().min(1).optional(),\n signing: iosSigningConfigSchema.optional(),\n webkitInspectorUrl: z.string().min(1).optional(),\n webkitInspectorPort: z.number().int().positive().optional(),\n cdpPort: z.number().int().positive().optional(),\n locale: z.string().min(1).optional(),\n bridge: bridgeConfigSchema.optional(),\n })\n .strict();\n\nconst electronAppConfigSchema = z\n .object({\n entry: z.string().min(1).optional(),\n executablePath: z.string().min(1).optional(),\n args: z.array(z.string()).optional(),\n cwd: z.string().min(1).optional(),\n env: z.record(z.string(), z.string()).optional(),\n cdpUrl: z.string().url().optional(),\n cdpPort: z.number().int().positive().optional(),\n url: z.string().url().optional(),\n bridge: bridgeConfigSchema.optional(),\n })\n .strict();\n\nconst electrobunAppConfigSchema = z\n .object({\n executablePath: z.string().min(1).optional(),\n appDir: z.string().min(1).optional(),\n args: z.array(z.string()).optional(),\n cwd: z.string().min(1).optional(),\n env: z.record(z.string(), z.string()).optional(),\n renderer: z.enum([\"native\", \"cef\"]).optional(),\n cdpUrl: z.string().url().optional(),\n cdpPort: z.number().int().positive().optional(),\n webkitInspectorPort: z.number().int().positive().optional(),\n url: z.string().url().optional(),\n bridge: bridgeConfigSchema.optional(),\n })\n .strict();\n\nconst cloudAppReferenceSchema = z\n .object({\n id: z.string().min(1).optional(),\n path: z.string().min(1).optional(),\n name: z.string().min(1).optional(),\n })\n .strict();\n\nconst browserStackAppSchema = cloudAppReferenceSchema\n .extend({\n customId: z.string().min(1).optional(),\n })\n .strict();\n\nconst browserStackLocalSchema = z\n .object({\n enabled: z.boolean().optional(),\n binary: z.string().min(1).optional(),\n identifier: z.string().min(1).optional(),\n args: z.array(z.string().min(1)).optional(),\n })\n .strict();\n\nconst browserStackHelperSchema = z\n .object({\n app: browserStackAppSchema.optional(),\n local: browserStackLocalSchema.optional(),\n options: z.record(z.string(), z.unknown()).optional(),\n })\n .strict();\n\nconst sauceConnectSchema = z\n .object({\n enabled: z.boolean().optional(),\n binary: z.string().min(1).optional(),\n tunnelName: z.string().min(1).optional(),\n args: z.array(z.string().min(1)).optional(),\n })\n .strict();\n\nconst sauceLabsHelperSchema = z\n .object({\n app: cloudAppReferenceSchema.optional(),\n connect: sauceConnectSchema.optional(),\n options: z.record(z.string(), z.unknown()).optional(),\n })\n .strict();\n\nconst storybookConfigSchema = z\n .object({\n url: z.string().url().optional(),\n iframePath: z.string().min(1).optional(),\n })\n .strict();\n\nconst appiumExecutionConfigSchema = z\n .object({\n serverUrl: z.string().url().optional(),\n capabilities: z.record(z.string(), z.unknown()).optional(),\n platformCapabilities: z\n .object({\n android: z.record(z.string(), z.unknown()).optional(),\n ios: z.record(z.string(), z.unknown()).optional(),\n })\n .strict()\n .optional(),\n capabilitiesFile: z.string().min(1).optional(),\n reportToProvider: z.boolean().optional(),\n browserstack: browserStackHelperSchema.optional(),\n saucelabs: sauceLabsHelperSchema.optional(),\n cloudProvider: z.string().min(1).optional(),\n autoStart: z.boolean().optional(),\n autoStartBinary: z.string().min(1).optional(),\n autoStartArgs: z.array(z.string()).optional(),\n })\n .strict();\n\nconst virtualAuthenticatorOptionsSchema = z\n .object({\n protocol: z.enum([\"ctap2\", \"u2f\"]).optional(),\n transport: z.enum([\"usb\", \"nfc\", \"ble\", \"cable\", \"internal\"]).optional(),\n hasResidentKey: z.boolean().optional(),\n hasUserVerification: z.boolean().optional(),\n isUserVerified: z.boolean().optional(),\n automaticPresenceSimulation: z.boolean().optional(),\n })\n .strict();\n\nconst webExecutionConfigSchema = z\n .object({\n browser: z.enum([\"chromium\", \"firefox\", \"webkit\"]).optional(),\n engine: z.enum([\"auto\", \"playwright\", \"cdp\", \"lightpanda\"]).optional(),\n cdpUrl: z.string().url().optional(),\n wsEndpoint: z.string().url().optional(),\n executablePath: z.string().min(1).optional(),\n channel: z.string().min(1).optional(),\n headless: z.boolean().optional(),\n waitUntil: z.enum([\"domcontentloaded\", \"load\", \"networkidle\", \"commit\"]).optional(),\n instantAnimations: z.boolean().optional(),\n blockResources: z.array(z.enum([\"image\", \"font\", \"media\", \"stylesheet\"])).optional(),\n warmBrowser: z.boolean().optional(),\n warmBrowserScope: z.string().min(1).optional(),\n freshContextPerFlow: z.boolean().optional(),\n contextIsolation: z.enum([\"fresh\", \"hot-cache\"]).optional(),\n maxContextsPerBrowser: z.number().int().positive().optional(),\n virtualAuthenticator: z.union([z.boolean(), virtualAuthenticatorOptionsSchema]).optional(),\n storageState: z.string().min(1).optional(),\n verboseLogging: z.boolean().optional(),\n storybook: storybookConfigSchema.optional(),\n extensions: z.array(z.string().min(1)).optional(),\n colorScheme: z.enum([\"dark\", \"light\", \"no-preference\"]).optional(),\n gpu: z.enum([\"auto\", \"swiftshader\", \"hardware\", \"disabled\"]).optional(),\n webgpu: z.boolean().optional(),\n reducedMotion: z.enum([\"reduce\", \"no-preference\"]).optional(),\n timezoneId: z.string().min(1).optional(),\n locale: z.string().min(1).optional(),\n userAgent: z.string().min(1).optional(),\n httpCredentials: z\n .object({\n username: z.string(),\n password: z.string(),\n })\n .strict()\n .optional(),\n viewport: z\n .object({\n width: z.number().int().positive(),\n height: z.number().int().positive(),\n deviceScaleFactor: z.number().positive().optional(),\n mobile: z.boolean().optional(),\n isMobile: z.boolean().optional(),\n hasTouch: z.boolean().optional(),\n })\n .strict()\n .optional(),\n deviceScaleFactor: z.number().positive().optional(),\n mobile: z.boolean().optional(),\n isMobile: z.boolean().optional(),\n hasTouch: z.boolean().optional(),\n device: z\n .object({\n name: z.string().min(1).optional(),\n viewport: z\n .object({\n width: z.number().int().positive(),\n height: z.number().int().positive(),\n deviceScaleFactor: z.number().positive().optional(),\n mobile: z.boolean().optional(),\n isMobile: z.boolean().optional(),\n hasTouch: z.boolean().optional(),\n })\n .strict()\n .optional(),\n deviceScaleFactor: z.number().positive().optional(),\n mobile: z.boolean().optional(),\n isMobile: z.boolean().optional(),\n hasTouch: z.boolean().optional(),\n userAgent: z.string().min(1).optional(),\n })\n .strict()\n .optional(),\n args: z.array(z.string()).optional(),\n chromiumSandbox: z.boolean().optional(),\n readyExpression: z.string().min(1).optional(),\n launchTimeout: z.number().positive().optional(),\n evaluateTimeout: z.number().positive().optional(),\n navigationTimeout: z.number().positive().optional(),\n })\n .strict();\n\nconst executionConfigSchema = z\n .object({\n mode: z.enum([\"local\", \"appium\"]).optional(),\n web: webExecutionConfigSchema.optional(),\n appium: appiumExecutionConfigSchema.optional(),\n bridge: bridgeConfigSchema.optional(),\n warmDaemons: warmDaemonConfigSchema.optional(),\n })\n .strict();\n\nconst artifactConfigSchema = z\n .object({\n outputDir: z.string().min(1).optional(),\n captureOnFailure: z.boolean().optional(),\n captureOnSuccess: z.boolean().optional(),\n captureSteps: z.boolean().optional(),\n screenshot: z.boolean().optional(),\n uiHierarchy: z.boolean().optional(),\n consoleLogs: z.boolean().optional(),\n jsErrors: z.boolean().optional(),\n har: z.boolean().optional(),\n jsCoverage: z.boolean().optional(),\n video: z.enum([\"off\", \"on\", \"retain-on-failure\"]).optional(),\n playback: z.boolean().optional(),\n trace: z.boolean().optional(),\n nativeLogs: z.boolean().optional(),\n })\n .strict();\n\nconst deviceStateSchema = z\n .object({\n language: z.string().min(1).optional(),\n locale: z.string().min(1).optional(),\n timeZone: z.string().min(1).optional(),\n })\n .strict();\n\nconst launchOptionsSchema = z\n .object({\n clearState: z.boolean().optional(),\n clearKeychain: z.boolean().optional(),\n deepLink: z.string().min(1).optional(),\n launchArguments: z.record(z.string(), z.unknown()).optional(),\n deviceState: deviceStateSchema.optional(),\n })\n .strict();\n\nconst provConfigZodSchema = z\n .object({\n apps: z\n .object({\n web: appConfigSchema.optional(),\n android: appConfigSchema.optional(),\n ios: appConfigSchema.optional(),\n electron: electronAppConfigSchema.optional(),\n electrobun: electrobunAppConfigSchema.optional(),\n })\n .strict()\n .optional(),\n defaults: z\n .object({\n waitTimeout: z.number().positive().optional(),\n pollInterval: z.number().positive().optional(),\n settleTimeout: z.number().nonnegative().optional(),\n retries: z.number().int().nonnegative().optional(),\n waitForIdleTimeout: z.number().nonnegative().optional(),\n typingDelay: z.number().nonnegative().optional(),\n initialPollInterval: z.number().positive().optional(),\n hierarchyCacheTtl: z.number().nonnegative().optional(),\n snapshotMaxDepth: z.number().int().positive().optional(),\n retryDelay: z.number().nonnegative().optional(),\n workers: z.number().int().positive().optional(),\n processes: z.number().int().positive().optional(),\n maxWorkersPerProcess: z.number().int().positive().optional(),\n tapMode: z.enum([\"native\", \"dom\"]).optional(),\n locale: z.string().min(1).optional(),\n failFastWhenIdle: z.boolean().optional(),\n idleQuietMs: z.number().int().positive().optional(),\n actionStableFrames: z.number().int().nonnegative().optional(),\n fillVerifyMs: z.number().int().nonnegative().optional(),\n timingsFile: z.string().min(1).optional(),\n toPassTimeout: z.number().positive().optional(),\n })\n .strict()\n .optional(),\n platforms: z.array(platformSchema).optional(),\n parallelPlatforms: z.boolean().optional(),\n flowDir: z.string().min(1).optional(),\n launchOptions: launchOptionsSchema.optional(),\n reporters: z.array(reporterSchema).optional(),\n hooks: z\n .object({\n beforeAll: hookSchema.optional(),\n beforeEach: hookSchema.optional(),\n afterEach: hookSchema.optional(),\n afterAll: hookSchema.optional(),\n })\n .strict()\n .optional(),\n artifacts: artifactConfigSchema.optional(),\n execution: executionConfigSchema.optional(),\n visualRegression: z\n .object({\n threshold: z.number().min(0).max(1).optional(),\n maxDiffPixelRatio: z.number().min(0).max(1).optional(),\n baselinesDir: z.string().optional(),\n mode: z.enum([\"pixel\", \"layout-tolerant\"]).optional(),\n missingBaseline: z.enum([\"write\", \"fail\"]).optional(),\n })\n .optional(),\n filters: z\n .array(\n z.custom<{ name: string; filter: (...args: unknown[]) => unknown }>(\n (value) =>\n typeof value === \"object\" &&\n value !== null &&\n typeof (value as Record<string, unknown>).name === \"string\" &&\n typeof (value as Record<string, unknown>).filter === \"function\",\n { message: \"Expected TestFilter ({ name, filter })\" },\n ),\n )\n .optional(),\n replayCache: z\n .object({\n mode: z.enum([\"read-write\", \"strict\", \"off\"]).optional(),\n dir: z.string().min(1).optional(),\n })\n .strict()\n .optional(),\n webServer: z\n .union([\n z\n .object({\n command: z.string().min(1),\n url: z.string().url().optional(),\n port: z.number().int().positive().optional(),\n cwd: z.string().min(1).optional(),\n env: z.record(z.string(), z.string()).optional(),\n inheritEnv: z.boolean().optional(),\n inheritEnvKeys: z.array(z.string().min(1)).optional(),\n timeout: z.number().positive().optional(),\n reuseExistingServer: z.boolean().optional(),\n stdout: z.enum([\"pipe\", \"ignore\", \"inherit\"]).optional(),\n stderr: z.enum([\"pipe\", \"ignore\", \"inherit\"]).optional(),\n ignoreHTTPSErrors: z.boolean().optional(),\n gracefulShutdownMs: z.number().nonnegative().optional(),\n })\n .strict(),\n z.array(\n z\n .object({\n command: z.string().min(1),\n url: z.string().url().optional(),\n port: z.number().int().positive().optional(),\n cwd: z.string().min(1).optional(),\n env: z.record(z.string(), z.string()).optional(),\n inheritEnv: z.boolean().optional(),\n inheritEnvKeys: z.array(z.string().min(1)).optional(),\n timeout: z.number().positive().optional(),\n reuseExistingServer: z.boolean().optional(),\n stdout: z.enum([\"pipe\", \"ignore\", \"inherit\"]).optional(),\n stderr: z.enum([\"pipe\", \"ignore\", \"inherit\"]).optional(),\n ignoreHTTPSErrors: z.boolean().optional(),\n gracefulShutdownMs: z.number().nonnegative().optional(),\n })\n .strict(),\n ),\n ])\n .optional(),\n projects: z\n .array(\n z\n .object({\n name: z.string().min(1),\n platform: platformSchema.optional(),\n browser: z.enum([\"chromium\", \"firefox\", \"webkit\"]).optional(),\n baseUrl: z.string().url().optional(),\n storageState: z.string().min(1).optional(),\n flowDir: z.string().min(1).optional(),\n testMatch: z.array(z.union([z.string().min(1), z.instanceof(RegExp)])).optional(),\n testIgnore: z.array(z.union([z.string().min(1), z.instanceof(RegExp)])).optional(),\n tags: z.array(z.string().min(1)).optional(),\n grep: z.string().min(1).optional(),\n dependencies: z.array(z.string().min(1)).optional(),\n teardown: z.string().min(1).optional(),\n retries: z.number().int().nonnegative().optional(),\n use: z.record(z.string(), z.unknown()).optional(),\n })\n .strict(),\n )\n .optional(),\n agent: z\n .object({\n model: z.string().min(1).optional(),\n baseUrl: z.string().url().optional(),\n apiKey: z.string().min(1).optional(),\n apiKeyEnv: z.string().min(1).optional(),\n maxSteps: z.number().int().positive().optional(),\n })\n .strict()\n .optional(),\n })\n .strict();\n\n/**\n * Runtime validator for `ProvConfig`. Typed without zod so the published declarations do not\n * need zod (it is bundled into dist, not a dependency).\n */\nexport const provConfigSchema: { parse(config: unknown): ProvConfig } = {\n parse: (config) => provConfigZodSchema.parse(config) as ProvConfig,\n};\n\nexport function defineConfig(config: ProvConfig): ProvConfig {\n return config;\n}\n\nexport function validateConfig(config: unknown): ProvConfig {\n return provConfigSchema.parse(config) as ProvConfig;\n}\n\n/** A zod validation error, as thrown by `validateConfig`. */\nexport interface ConfigValidationError {\n issues: ReadonlyArray<{ path: ReadonlyArray<PropertyKey>; message: string }>;\n}\n\nexport function formatConfigValidationError(error: ConfigValidationError): string {\n return error.issues\n .map((issue) => {\n const path = issue.path.length > 0 ? issue.path.map(String).join(\".\") : \"config\";\n return `- ${path}: ${issue.message}`;\n })\n .join(\"\\n\");\n}\n"],"mappings":";;;;;;;;;AAAA;AAwfA,IAAM,iBAAiB,iBAAE,KAAK,CAAC,OAAO,WAAW,OAAO,YAAY,YAAY,CAAC;AACjF,IAAM,iBAAiB,iBAAE,OAAO,EAAE,IAAI,CAAC;AACvC,IAAM,aAAa,iBAAE;AAAA,EACnB,CAAC,UAAU,OAAO,UAAU;AAAA,EAC5B,EAAE,SAAS,oBAAoB;AACjC;AAEA,IAAM,yBAAyB,iBAC5B,OAAO;AAAA,EACN,QAAQ,iBAAE,OAAO,EAAE,IAAI,GAAG,oBAAoB;AAAA,EAC9C,iBAAiB,iBAAE,OAAO,EAAE,IAAI,CAAC,EAAE,SAAS;AAC9C,CAAC,EACA,OAAO;AAEV,IAAM,qBAAqB,iBACxB,OAAO;AAAA,EACN,SAAS,iBAAE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IAAI,MAAM,KAAK,IAAI,MAAM,EAAE,KAAK,GAAG,IAAI;AACxE,WAAO,KAAK,IAAI,KAAK,MAAM,OAAO;AAAA,EACpC,CAAC,EACA,KAAK,IAAI;AACd;","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createRequire as __spanaCreateRequire } from "node:module"; const require = __spanaCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
init_esm_shims
|
|
4
|
+
} from "./chunk-VBAPZMPX.js";
|
|
5
|
+
|
|
6
|
+
// src/build-info.ts
|
|
7
|
+
init_esm_shims();
|
|
8
|
+
var buildInfo = {
|
|
9
|
+
gitSha: true ? "7171e868f456f193062978e8b0c45874c1a6ce4e" : void 0
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
buildInfo
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=chunk-XLHJCJ4O.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/build-info.ts"],"sourcesContent":["declare const __SPANA_GIT_SHA__: string | null | undefined;\n\n/** Commit the published package was built from (`undefined` when running from source). */\nexport const buildInfo: { readonly gitSha: string | undefined } = {\n gitSha: typeof __SPANA_GIT_SHA__ === \"string\" ? __SPANA_GIT_SHA__ : undefined,\n};\n"],"mappings":";;;;;;AAAA;AAGO,IAAM,YAAqD;AAAA,EAChE,QAAQ,OAAwC,6CAAoB;AACtE;","names":[]}
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
formatByteSize,
|
|
17
17
|
isWasmTrapError,
|
|
18
18
|
parseByteSize
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-26XIUSVS.js";
|
|
20
20
|
import {
|
|
21
21
|
DriverError,
|
|
22
22
|
Duration_exports,
|
|
@@ -634,8 +634,10 @@ function isOffscreenInViewport(match) {
|
|
|
634
634
|
return centerX < 0 || centerY < 0 || centerX > match.viewportWidth || centerY > match.viewportHeight;
|
|
635
635
|
}
|
|
636
636
|
function pickBestDomMatch(matches) {
|
|
637
|
-
const
|
|
638
|
-
if (
|
|
637
|
+
const allVisible = matches.filter((m) => m.visible);
|
|
638
|
+
if (allVisible.length === 0) return void 0;
|
|
639
|
+
const opaque = allVisible.filter((m) => !m.transparent);
|
|
640
|
+
const visible = opaque.length > 0 ? opaque : allVisible;
|
|
639
641
|
const clickable = visible.filter((m) => m.clickable);
|
|
640
642
|
if (clickable.length > 0) {
|
|
641
643
|
return clickable[clickable.length - 1];
|
|
@@ -1289,6 +1291,32 @@ function createCoordinator(driver, config) {
|
|
|
1289
1291
|
}
|
|
1290
1292
|
return yield* result.failure;
|
|
1291
1293
|
});
|
|
1294
|
+
const resolveAllBounds = (selector) => Effect_exports.gen(function* () {
|
|
1295
|
+
cache.invalidate();
|
|
1296
|
+
const domChannel = driver.domChannel;
|
|
1297
|
+
if (isRelativeSelectorLike2(selector)) {
|
|
1298
|
+
const found = yield* resolveElementAcrossChannels(driver, selector, parse, cache, {
|
|
1299
|
+
forAction: false,
|
|
1300
|
+
platform: config.platform
|
|
1301
|
+
});
|
|
1302
|
+
return found?.element?.bounds ? [found.element.bounds] : [];
|
|
1303
|
+
}
|
|
1304
|
+
if (!isSystemUISelector(selector) && domChannel?.isConnected()) {
|
|
1305
|
+
const matches = yield* Effect_exports.tryPromise({
|
|
1306
|
+
try: () => domChannel.query(selector),
|
|
1307
|
+
catch: (err) => isInvalidSelectorError(err) ? new DriverError({ message: err instanceof Error ? err.message : String(err) }) : null
|
|
1308
|
+
}).pipe(
|
|
1309
|
+
Effect_exports.catch(
|
|
1310
|
+
(err) => err instanceof DriverError ? Effect_exports.fail(err) : Effect_exports.succeed(null)
|
|
1311
|
+
)
|
|
1312
|
+
);
|
|
1313
|
+
if (matches) {
|
|
1314
|
+
return matches.filter((m) => m.visible).map((m) => domMatchToElement(m).bounds);
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
const root = parse(yield* driver.dumpHierarchy());
|
|
1318
|
+
return findElements(root, selector).filter((el) => el.visible !== false).map((el) => el.bounds);
|
|
1319
|
+
});
|
|
1292
1320
|
const gestureDirectionForSearch = (direction) => {
|
|
1293
1321
|
const directionMap = {
|
|
1294
1322
|
up: "down",
|
|
@@ -1788,23 +1816,32 @@ function createCoordinator(driver, config) {
|
|
|
1788
1816
|
selector
|
|
1789
1817
|
});
|
|
1790
1818
|
}),
|
|
1791
|
-
assertInViewport: (selector, opts, negate = false) =>
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1819
|
+
assertInViewport: (selector, opts, negate = false) => {
|
|
1820
|
+
const minRatio = opts?.ratio ?? 0;
|
|
1821
|
+
return pollUntilMatch(
|
|
1822
|
+
selector,
|
|
1823
|
+
opts,
|
|
1824
|
+
(el) => {
|
|
1825
|
+
const vpW = config.screenWidth ?? 1280;
|
|
1826
|
+
const vpH = config.screenHeight ?? 720;
|
|
1827
|
+
const b = el.bounds;
|
|
1828
|
+
const visibleW = Math.min(b.x + b.width, vpW) - Math.max(b.x, 0);
|
|
1829
|
+
const visibleH = Math.min(b.y + b.height, vpH) - Math.max(b.y, 0);
|
|
1830
|
+
const ratio = b.width > 0 && b.height > 0 && visibleW > 0 && visibleH > 0 ? visibleW * visibleH / (b.width * b.height) : 0;
|
|
1831
|
+
const inVp = minRatio > 0 ? ratio > minRatio - 1e-9 : ratio > 0;
|
|
1832
|
+
return {
|
|
1833
|
+
matched: inVp,
|
|
1834
|
+
actual: ratio > 0 ? `${Math.round(ratio * 100)}% in viewport` : "outside viewport"
|
|
1835
|
+
};
|
|
1836
|
+
},
|
|
1837
|
+
(actual, timeout) => ({
|
|
1838
|
+
message: negate ? `Expected element NOT to be in viewport${minRatio > 0 ? ` (ratio ${minRatio})` : ""} but it was "${actual ?? "in viewport"}" after ${timeout}ms \u2014 selector: ${formatSelector(selector)}` : `Expected element to be in viewport${minRatio > 0 ? ` (ratio ${minRatio})` : ""} but it was "${actual ?? "outside viewport"}" after ${timeout}ms \u2014 selector: ${formatSelector(selector)}`,
|
|
1839
|
+
expected: negate ? "outside viewport" : "in viewport"
|
|
1840
|
+
}),
|
|
1841
|
+
{ kind: "inViewport", ...minRatio > 0 ? { viewportRatio: minRatio } : {} },
|
|
1842
|
+
negate
|
|
1843
|
+
);
|
|
1844
|
+
},
|
|
1808
1845
|
assertJSProperty: (selector, propertyName, expectedValue, opts, negate = false) => pollUntilMatch(
|
|
1809
1846
|
selector,
|
|
1810
1847
|
opts,
|
|
@@ -1878,6 +1915,8 @@ function createCoordinator(driver, config) {
|
|
|
1878
1915
|
const { resolveBaselinePath, readBaseline, writeBaseline } = yield* Effect_exports.promise(
|
|
1879
1916
|
() => import("./baseline-manager-XJ3LADKC.js")
|
|
1880
1917
|
);
|
|
1918
|
+
const { writeFileSync: writeFileSync2, mkdirSync: mkdirSync2 } = yield* Effect_exports.promise(() => import("fs"));
|
|
1919
|
+
const { join: join2 } = yield* Effect_exports.promise(() => import("path"));
|
|
1881
1920
|
const { cropToElement: cropToElement2, applyMask, compareScreenshots: compareScreenshots2 } = yield* Effect_exports.promise(
|
|
1882
1921
|
() => import("./screenshot-compare-DNIP2EK4.js")
|
|
1883
1922
|
);
|
|
@@ -1888,13 +1927,14 @@ function createCoordinator(driver, config) {
|
|
|
1888
1927
|
let cropOriginX = 0;
|
|
1889
1928
|
let cropOriginY = 0;
|
|
1890
1929
|
if (options.maskSelectors && options.maskSelectors.length > 0) {
|
|
1930
|
+
const scroll = options.fullPage && driver.takeFullPageScreenshot && driver.domChannel?.isConnected() ? yield* Effect_exports.tryPromise(
|
|
1931
|
+
() => driver.domChannel.evaluate(
|
|
1932
|
+
"({ x: window.scrollX, y: window.scrollY })"
|
|
1933
|
+
)
|
|
1934
|
+
).pipe(Effect_exports.catch(() => Effect_exports.succeed({ x: 0, y: 0 }))) : { x: 0, y: 0 };
|
|
1891
1935
|
for (const maskSel of options.maskSelectors) {
|
|
1892
|
-
const
|
|
1893
|
-
|
|
1894
|
-
platform: config.platform
|
|
1895
|
-
});
|
|
1896
|
-
if (found?.element?.bounds) {
|
|
1897
|
-
resolvedMasks.push(found.element.bounds);
|
|
1936
|
+
for (const bounds of yield* resolveAllBounds(maskSel)) {
|
|
1937
|
+
resolvedMasks.push({ ...bounds, x: bounds.x + scroll.x, y: bounds.y + scroll.y });
|
|
1898
1938
|
}
|
|
1899
1939
|
}
|
|
1900
1940
|
}
|
|
@@ -1933,13 +1973,26 @@ function createCoordinator(driver, config) {
|
|
|
1933
1973
|
yield* Effect_exports.promise(() => Promise.resolve(writeBaseline(baselinePath, toWrite)));
|
|
1934
1974
|
return;
|
|
1935
1975
|
}
|
|
1976
|
+
const outputPrefix = () => {
|
|
1977
|
+
const outDir = options.outputDir ?? config.outputDir ?? "spana-output";
|
|
1978
|
+
mkdirSync2(outDir, { recursive: true });
|
|
1979
|
+
const safeFlowName = flowName.toLowerCase().replaceAll(/[^a-z0-9]+/g, "-").replaceAll(/^-|-$/g, "");
|
|
1980
|
+
return join2(outDir, `${safeFlowName}-${platform}-${name}`);
|
|
1981
|
+
};
|
|
1936
1982
|
const existing = readBaseline(baselinePath);
|
|
1937
1983
|
if (existing === null) {
|
|
1938
1984
|
const toWrite = effectiveMasks.length > 0 ? yield* Effect_exports.promise(
|
|
1939
1985
|
() => applyMask(screenshotBuf, effectiveMasks, options.maskColor)
|
|
1940
1986
|
) : screenshotBuf;
|
|
1941
|
-
|
|
1942
|
-
|
|
1987
|
+
if (options.missingBaseline === "write") {
|
|
1988
|
+
writeBaseline(baselinePath, toWrite);
|
|
1989
|
+
return;
|
|
1990
|
+
}
|
|
1991
|
+
const actualPath = `${outputPrefix()}-actual.png`;
|
|
1992
|
+
writeFileSync2(actualPath, toWrite);
|
|
1993
|
+
return yield* new DriverError({
|
|
1994
|
+
message: `Screenshot baseline for "${name}" does not exist: ${baselinePath}. Wrote the actual to ${actualPath}. Re-run with --update-baselines to record it (or set visualRegression.missingBaseline: "write").`
|
|
1995
|
+
});
|
|
1943
1996
|
}
|
|
1944
1997
|
let actualBuf = screenshotBuf;
|
|
1945
1998
|
let expectedBuf = existing;
|
|
@@ -1956,12 +2009,7 @@ function createCoordinator(driver, config) {
|
|
|
1956
2009
|
maxDiffPixelRatio: options.maxDiffPixelRatio
|
|
1957
2010
|
});
|
|
1958
2011
|
if (!result.match) {
|
|
1959
|
-
const
|
|
1960
|
-
const { join: join2 } = yield* Effect_exports.promise(() => import("path"));
|
|
1961
|
-
const outDir = options.outputDir ?? config.outputDir ?? "spana-output";
|
|
1962
|
-
mkdirSync2(outDir, { recursive: true });
|
|
1963
|
-
const safeFlowName = flowName.toLowerCase().replaceAll(/[^a-z0-9]+/g, "-").replaceAll(/^-|-$/g, "");
|
|
1964
|
-
const prefix = join2(outDir, `${safeFlowName}-${platform}-${name}`);
|
|
2012
|
+
const prefix = outputPrefix();
|
|
1965
2013
|
writeFileSync2(`${prefix}-expected.png`, existing);
|
|
1966
2014
|
writeFileSync2(`${prefix}-actual.png`, actualBuf);
|
|
1967
2015
|
if (result.diffImage) {
|
|
@@ -3408,6 +3456,19 @@ function createPromiseExpect(driver, config, recorder, flowContext, visualRegres
|
|
|
3408
3456
|
};
|
|
3409
3457
|
const coord = createCoordinator(driver, config);
|
|
3410
3458
|
const defaultTimeout = config.defaults?.timeout ?? 5e3;
|
|
3459
|
+
const matchScreenshot = (selector, name, options) => run(
|
|
3460
|
+
coord.assertScreenshot(selector, name, ctx.flowFilePath, ctx.flowName, ctx.platform, {
|
|
3461
|
+
threshold: options?.threshold ?? visualRegression?.threshold,
|
|
3462
|
+
maxDiffPixelRatio: options?.maxDiffPixelRatio ?? visualRegression?.maxDiffPixelRatio,
|
|
3463
|
+
mask: [],
|
|
3464
|
+
maskSelectors: options?.mask,
|
|
3465
|
+
maskColor: options?.maskColor,
|
|
3466
|
+
fullPage: options?.fullPage,
|
|
3467
|
+
updateBaselines: ctx.updateBaselines,
|
|
3468
|
+
missingBaseline: visualRegression?.missingBaseline,
|
|
3469
|
+
baselinesDir: visualRegression?.baselinesDir
|
|
3470
|
+
})
|
|
3471
|
+
);
|
|
3411
3472
|
const resolveRetryTimeout = (explicit) => {
|
|
3412
3473
|
if (explicit !== void 0) return explicit;
|
|
3413
3474
|
if (ctx.toPassTimeout !== void 0) return ctx.toPassTimeout;
|
|
@@ -3743,18 +3804,7 @@ ${actual}`
|
|
|
3743
3804
|
toMatchScreenshot: (name, options) => runStep(
|
|
3744
3805
|
`expect.toMatchScreenshot(${JSON.stringify(name)})`,
|
|
3745
3806
|
selector,
|
|
3746
|
-
() =>
|
|
3747
|
-
coord.assertScreenshot(selector, name, ctx.flowFilePath, ctx.flowName, ctx.platform, {
|
|
3748
|
-
threshold: options?.threshold ?? visualRegression?.threshold,
|
|
3749
|
-
maxDiffPixelRatio: options?.maxDiffPixelRatio ?? visualRegression?.maxDiffPixelRatio,
|
|
3750
|
-
mask: [],
|
|
3751
|
-
maskSelectors: options?.mask,
|
|
3752
|
-
maskColor: options?.maskColor,
|
|
3753
|
-
fullPage: options?.fullPage,
|
|
3754
|
-
updateBaselines: ctx.updateBaselines,
|
|
3755
|
-
baselinesDir: visualRegression?.baselinesDir
|
|
3756
|
-
})
|
|
3757
|
-
)
|
|
3807
|
+
() => matchScreenshot(selector, name, options)
|
|
3758
3808
|
),
|
|
3759
3809
|
toPassAccessibilityAudit: (options) => {
|
|
3760
3810
|
const includeCss = options?.include?.map(selectorToCss).filter(Boolean) ?? [];
|
|
@@ -3900,6 +3950,10 @@ ${actual}`
|
|
|
3900
3950
|
});
|
|
3901
3951
|
expectFn.toHaveURL = toHaveURL;
|
|
3902
3952
|
expectFn.toHaveTitle = toHaveTitle;
|
|
3953
|
+
expectFn.toMatchScreenshot = (name, options) => recordStep(
|
|
3954
|
+
`expect.toMatchScreenshot(${JSON.stringify(name)})`,
|
|
3955
|
+
() => matchScreenshot(void 0, name, options)
|
|
3956
|
+
);
|
|
3903
3957
|
expectFn.noWasmTraps = noWasmTraps;
|
|
3904
3958
|
expectFn.wasmMemoryBelow = wasmMemoryBelow;
|
|
3905
3959
|
expectFn.minFps = minFps;
|
|
@@ -5613,4 +5667,4 @@ export {
|
|
|
5613
5667
|
parseSetCookieHeader,
|
|
5614
5668
|
createPromiseApp
|
|
5615
5669
|
};
|
|
5616
|
-
//# sourceMappingURL=chunk-
|
|
5670
|
+
//# sourceMappingURL=chunk-XORHAB3R.js.map
|