@delacour/warden-e2e 0.8.0 → 0.9.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.
@@ -9170,6 +9170,6 @@ function onlyWasSeen() {
9170
9170
 
9171
9171
  // ../../packages/e2e/src/version.ts
9172
9172
  var WORKSPACE_VERSION = "0.0.0-workspace";
9173
- var WARDEN_E2E_VERSION2 = "0.8.0";
9173
+ var WARDEN_E2E_VERSION2 = "0.9.0";
9174
9174
 
9175
9175
  export { E2eError2, registerA11yTarget, a11yTargetOf, canActOnElements, noteSpanDetail, addSpanDetail, canObserve, canDetectAlerts, settleDetailOf, DEFAULT_SETTLE_QUIET_MS, DEFAULT_SETTLE_TIMEOUT_MS, settleByHash, snapshotHash, ok, err, swipeVector, screenRect, fieldValue, PINCH_MS, ROTATE_MS, PATH_MS, centreOf, pinchRadius, rotateRadius, requireGesture, assertScale, assertDegrees, isInteractiveRole, resolveRole, normalizeText, matchesText, indexSnapshot, testIdQuery, textQuery, roleQuery, selectorExpression, renderSnapshot, renderHeader, resolve, locateByTestIdViaReact, isLocator, Locator, pickOne, textOf, scrollUntilVisible, bunExec, execError, driverError, driverErr, logEventSchema, fatalEventSchema, responseSchema, mapWireError, createLineSplitter, encodeRequest, bunSpawn, stdioTransport, socketTransport, createSimdClient, spawnSimd, connectSimd, isRecoverableLoss, CAMERA_FACINGS, CONDITION_AREAS, resolveNetwork, resolveTextSize, androidFontScale, ENV_NAMES, DEFAULT_ASSERTION_TIMEOUT_MS, readEnv, runStep, setDefaultHidRecovery, setDefaultNativeLog, setDefaultDriverFactory, hasDefaultDriverFactory, setDefaultFixtureFactory, hasDefaultFixtureFactory, attemptSession, getSession, accessibleName, announce, failing, formatIssues, toE2eError, settled, unwrap, parseUiadA11yEvents, parseInjectEvents, withA11yRead, renderA11yScreen, createDeviceA11y, IOS_DEVICE_CAPABILITIES, sniffCameraMedia, cameraFeedDir, clearCameraFeeds, isLeaseAlive, processAlive, describeOwner, isPhysicalIosId, wardenHome, defaultDbPath, ownerKey, openStore, callerFile, formatCoord, DEFAULT_SPEED_MPS, DEFAULT_INTERVAL_S, realTickerClock, startRouteTicker, startFlap, registerConditions, conditionsOf, conditionSinkFor, createDeviceConditions, parseBudgets, createDevicePerf, perfStartFor, spawnWarden, hash6, attemptDir, screenshotPath, specIdOf, realNativeLogDeps, captureNativeLog, BUN_TIMEOUT_MARGIN_MS2, ownHook, currentScope, createScope, runInScope, hooksFor, resolveUse, registrationDefaults, markOnly, onlyWasSeen, WORKSPACE_VERSION, WARDEN_E2E_VERSION2 };
package/index.mjs CHANGED
@@ -41,7 +41,7 @@ import {
41
41
  registrationDefaults,
42
42
  markOnly,
43
43
  WARDEN_E2E_VERSION2
44
- } from "./chunk-vs5npy59.mjs";
44
+ } from "./chunk-y0y7frfz.mjs";
45
45
  // ../../packages/e2e/src/expect/expect.ts
46
46
  import { expect as bunExpect } from "bun:test";
47
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delacour/warden-e2e",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "TypeScript spec API for `warden e2e`: test, expect, screen, device, app",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -37,7 +37,7 @@
37
37
  "LICENSE"
38
38
  ],
39
39
  "peerDependencies": {
40
- "@delacour/warden": "0.8.0"
40
+ "@delacour/warden": "0.9.0"
41
41
  },
42
42
  "dependencies": {
43
43
  "zod": "^4.4.3"
package/preload.mjs CHANGED
@@ -109,7 +109,7 @@ import {
109
109
  onlyWasSeen,
110
110
  WORKSPACE_VERSION,
111
111
  WARDEN_E2E_VERSION2
112
- } from "./chunk-vs5npy59.mjs";
112
+ } from "./chunk-y0y7frfz.mjs";
113
113
 
114
114
  // ../../packages/e2e/src/preload.ts
115
115
  import { afterAll, setDefaultTimeout } from "bun:test";
@@ -8272,7 +8272,7 @@ function deviceTypeTextBudgetMs(text) {
8272
8272
  var DEFAULT_QUIET_MS = 250;
8273
8273
  var DEFAULT_SETTLE_TIMEOUT_MS2 = 5000;
8274
8274
  var SETTLE_MARGIN_MS = 2000;
8275
- var REBIND_TIMEOUT_MS = 3000;
8275
+ var REBIND_TIMEOUT_MS = 1e4;
8276
8276
  var GESTURE_MARGIN_MS = 5000;
8277
8277
  var FRONTMOST_TIMEOUT_MS = 3000;
8278
8278
  var LAUNCH_TIMEOUT_MS = 30000;
@@ -8500,8 +8500,11 @@ function createIosDriver(swap, simctl, opts) {
8500
8500
  if (!result.success)
8501
8501
  return result;
8502
8502
  const { fallback } = result.data;
8503
- if (fallback)
8503
+ if (fallback) {
8504
8504
  opts.log?.(`[ios] snapshot fell back ${fallback.from} -> ${fallback.to}: ${fallback.reason}`);
8505
+ noteSpanDetail("backend", fallback.to);
8506
+ noteSpanDetail("fallback", fallback.reason);
8507
+ }
8505
8508
  return { success: true, data: toSnapshot(result.data, now()) };
8506
8509
  };
8507
8510
  async function snapshot(o) {
@@ -72,3 +72,9 @@ export declare function resolveKind(project: Project, kind: BuildKind, device?:
72
72
  * `device` target the project builds for a physical iPhone: the signed `xcodebuild` command, the device bundle id.
73
73
  */
74
74
  export declare function projectForKind(project: Project, kind: BuildKind, device?: DeviceTarget): Project;
75
+ /**
76
+ * The kind-less build of `project` on `platform` is the `dev` kind's build: same command, Debug, no JS in the key, no
77
+ * variant, kind env or device target. Then both are one build, cached once under the dev kind (`kindHash`), and a
78
+ * kind-less row of the same fingerprint (written before they were unified) is that build too.
79
+ */
80
+ export declare function kindlessIsDev(project: Project, platform: Platform): boolean;