TypeScript
chore(mobile): e2e runner on agent-device 0.21.32, side-rail aware tab checks
Julius Marminge9db3401bdc4e
diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex fe5956f3fa6..16a4e6269fc 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -2253,8 +2253,8 @@ importers:specifier: workspace:*version: link:../packages/tailscaleagent-device:- specifier: 0.21.31- version: 0.21.31+ specifier: 0.21.32+ version: 0.21.32effect:specifier: 4.0.5version: 4.0.5@@ -7332,8 +7332,8 @@ packages:engines: {node: '>=18.18'}hasBin: true- resolution: {integrity: sha512-541X/tXHqQS3Xg5PutPSek1nQFLgEJEXFdLPiZ9jTvSb+SMHr/Z4kzVCnBkGza59R+EHO1atLWx0ZAW5vK84IQ==}+ resolution: {integrity: sha512-gfpNs+qeCHKKLY3mqD/NpC7Et7wh5qxNvM9A2cPOhOpzX21e9UHSkO7zOMBpUK7NGtOOkbtz67jco5SVmZOPog==}engines: {node: '>=22.12'}hasBin: truepeerDependencies:@@ -17214,7 +17214,7 @@ snapshots:- [email protected]: {}+ [email protected]: {}dependencies:diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex f953a77de46..47b9494c436 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -224,6 +224,7 @@ minimumReleaseAgeExclude:- "@pierre/[email protected]"- "@pierre/[email protected]"- "@pierre/[email protected]"overrides:# Pin every patched package, including transitive dependencies, so lockfile-freediff --git a/scripts/mobile-e2e/journey.ts b/scripts/mobile-e2e/journey.tsindex f3442d0a8c9..65e3cfa6d1b 100644--- a/scripts/mobile-e2e/journey.ts+++ b/scripts/mobile-e2e/journey.ts@@ -140,6 +140,8 @@ export async function runJourney(await delay(1_000);threads = await device.orient(device.pose.landscape ? "landscape" : "portrait");const tabs = tabBarRect(threads);+ // A bottom tab bar gives way to a pushed thread; the folded Duo's side rail stays put.+ const bottomTabs = phone && tabs && tabs.width > tabs.height ? tabs : undefined;const wide = threads.viewport.width > threads.viewport.height;await capture("threads", threads, [check(@@ -160,19 +162,18 @@ export async function runJourney();const threadShot = NodePath.join(directory, `${steps.length + 1}-thread.png`);await device.screenshot(threadShot);- const openLag =- phone && tabs- ? await lagCheck(- "no tabs over the entering thread (video)",- {- video: opening,- nav: topBand(threads),- chrome: tabs,- viewportWidth: threads.viewport.width,- },- NodePath.join(directory, "open-thread-lag.png"),- )- : null;+ const openLag = bottomTabs+ ? await lagCheck(+ "no tabs over the entering thread (video)",+ {+ video: opening,+ nav: topBand(threads),+ chrome: bottomTabs,+ viewportWidth: threads.viewport.width,+ },+ NodePath.join(directory, "open-thread-lag.png"),+ )+ : null;steps.push({name: "thread",screenshot: threadShot,@@ -185,9 +186,9 @@ export async function runJourney(inside(composer(thread)?.rect, thread),describeRect(composer(thread)?.rect),),- ...(phone+ ...(phone ? [check("back button visible", backButton(thread) !== undefined, "back")] : []),+ ...(bottomTabs? [- check("back button visible", backButton(thread) !== undefined, "back"),check("tab bar hidden",tabBarRect(thread) === undefined,@@ -238,13 +239,13 @@ export async function runJourney();const listShot = NodePath.join(directory, `${steps.length + 1}-back.png`);await device.screenshot(listShot);- const backLag = tabs+ const backLag = bottomTabs? await lagCheck("tabs return with the list (video)",{video: back,nav: topBand(list),- chrome: tabs,+ chrome: bottomTabs,viewportWidth: list.viewport.width,},NodePath.join(directory, "back-lag.png"),diff --git a/scripts/mobile-e2e/poses.ts b/scripts/mobile-e2e/poses.tsindex 9cc42b40a26..3398c26d5eb 100644--- a/scripts/mobile-e2e/poses.ts+++ b/scripts/mobile-e2e/poses.ts@@ -38,7 +38,7 @@ export const POSES: ReadonlyArray<Pose> = [appearance: "light",fold: "closed",pending:- "agent-device fold refuses simulators outside the default device set, which Simlock uses",+ "agent-device alert accept cannot see the iOS open-link prompt on the iPhone Duo, so the app never launches",}),pose({id: "iphone-duo-unfolded",@@ -48,7 +48,7 @@ export const POSES: ReadonlyArray<Pose> = [appearance: "dark",fold: "open",pending:- "agent-device fold refuses simulators outside the default device set, which Simlock uses",+ "agent-device alert accept cannot see the iOS open-link prompt on the iPhone Duo, so the app never launches",}),pose({id: "ipad-13-portrait",diff --git a/scripts/package.json b/scripts/package.jsonindex 80e7dd33ab7..bd5b39ce347 100644--- a/scripts/package.json+++ b/scripts/package.json@@ -12,7 +12,7 @@"@electron/osx-sign": "2.7.0","@t3tools/shared": "workspace:*","@t3tools/tailscale": "workspace:*",- "agent-device": "0.21.31",+ "agent-device": "0.21.32","effect": "catalog:","plist": "catalog:","pngjs": "7.0.0",