diff --git a/packages/stim-cli/src/__tests__/guide.test.ts b/packages/stim-cli/src/__tests__/guide.test.ts index 2deccc27e8..138d14e2a4 100644 --- a/packages/stim-cli/src/__tests__/guide.test.ts +++ b/packages/stim-cli/src/__tests__/guide.test.ts @@ -579,7 +579,7 @@ test('the run section names the marker version the status payload reports and on test('the run section checks each change on the tutorial app with agent-device', () => { const run = flat('run'); - for (const testID of ['tap-button', 'dark-accent-switch', 'name-input']) expect(run).toContain(testID); + for (const testID of ['tap-button', 'dark-accent-switch', 'size-m']) expect(run).toContain(testID); expect(run).toContain('agent-device open dev.stim.tutorial --platform ios --udid '); expect(run).toMatch(/snapshot -i before every action/); }); diff --git a/packages/stim-cli/src/guide/tutorial.ts b/packages/stim-cli/src/guide/tutorial.ts index 304cd82470..1087759d3b 100644 --- a/packages/stim-cli/src/guide/tutorial.ts +++ b/packages/stim-cli/src/guide/tutorial.ts @@ -92,8 +92,8 @@ ${screenshots} Check each change on the device with agent-device in that same session, after the after screenshot, so Stim Desktop records your actions and the user can -replay them: tap tap-button, toggle dark-accent-switch, type a name in -name-input, then take a screenshot (agent-device screenshot +replay them: tap tap-button, toggle dark-accent-switch, pick a size +(size-s, size-m or size-l), then take a screenshot (agent-device screenshot .expo/screenshots/checked.png) and confirm the change. Refs expire after each action: run agent-device snapshot -i before every action and use the ref it reports for that testID. When agentDevice.installed is false in stim status diff --git a/website/docs/desktop.md b/website/docs/desktop.md index 0307b252df..828399f98c 100644 --- a/website/docs/desktop.md +++ b/website/docs/desktop.md @@ -107,8 +107,8 @@ a tiny Expo app, and shows: When the tutorial ends, the panel shows a completion card: the time from clone to archive, the first build, the second build's cache hit and the time it saved, the two worktrees, the agent actions you can replay, and the space Delete freed, each only when Stim measured it. Each optional step you finished is a badge; a skipped one stays dashed. Your agent checks each change on its simulator with agent-device, following -`stim guide tutorial run`: it taps **Tap me**, toggles **Dark accent**, types a -name and takes a screenshot, so Desktop records its actions for the Agent +`stim guide tutorial run`: it taps **Tap me**, toggles **Dark accent**, picks a +**Size** and takes a screenshot, so Desktop records its actions for the Agent Actions and Replay step. When agent-device is not installed, **Make a Change** shows a card with