GeezerVison is showing github.com — feat(scripts): scenarios prove a fix in the real app with e2e, on web… · AndryHTC/t3code@ae14293
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/workflows/mobile-showcase-screenshots.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 88 | 88 | axe --version | 89 | 89 |
| 90 | 90 | - name: Install foldable simulator controls | 91 | | - | | 91 | + | 92 | 92 |
| 93 | 93 | - name: Capture iOS showcase | 94 | 94 | run: pnpm screenshots:mobile --platform ios --appearance "${{ inputs.appearance }}" --theme "${{ inputs.theme }}" | |
Collapse file Copy file name to clipboardExpand all lines: .gitignore +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -38,6 +38,7 @@ apps/mobile/.android-cache/ | 38 | 38 | artifacts/app-store/screenshots/ | 39 | 39 | artifacts/mobile-e2e/ | 40 | 40 | artifacts/mobile-behavior/ | | 41 | +scripts/.e2e/ | 41 | 42 | .github/pr-assets/ | 42 | 43 | native/**/target/ | 43 | 44 | node_modules/ | |
Collapse file Copy file name to clipboardExpand all lines: AGENTS.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -108,7 +108,7 @@ An empty database is a bad test. Seed your worktree's `.t3` with a copy of real | 108 | 108 | - [Testing](docs/internals/testing.md) carries these same test rules, plus review guidance, for review bots. Change both together. | 109 | 109 | - **Do not run repo-wide checks.** No `vp check`, no `vp run -r test`, no `vp run -r typecheck` unless I ask. CI owns the full suite. | 110 | 110 | - Backend behavior changes ship with focused tests for that behavior. | 111 | | -- Proof for a bug fix depends on the bug. Logic, data, state, and protocol bugs get a failing test first (the fewest that fail on `main` for that reason, in an existing case of the module's test file where one fits), then the fix. Purely visual bugs (spacing, colour, alignment, a layout shift) get before/after captures as their proof and no test: do not add UI tests for nitpicks, and do not ask for one in review when a capture already shows it. A server-only fix with no visible surface ships the test plus a short runtime transcript. | | 111 | +- Proof for a bug fix depends on the bug. Logic, data, state, and protocol bugs get a failing test first (the fewest that fail on `main` for that reason, in an existing case of the module's test file where one fits), then the fix. Purely visual bugs (spacing, colour, alignment, a layout shift) get before/after captures as their proof and no test: do not add UI tests for nitpicks, and do not ask for one in review when a capture already shows it. A server-only fix with no visible surface ships the test plus a short runtime transcript. For a bug a user can reproduce in the web client, `vp run scenarios:prove` shows it failing on base and passing on the fix in the real app; see [Scenarios](docs/operations/scenarios.md). | 112 | 112 | - The server is event-sourced, and side effects run after the command commits. In tests, drain the effect worker (`OrchestrationEffectWorkerV2.drain`) or await the specific persisted event or `Deferred` that marks the milestone. Never wait on sleeps or polling. A test that needs a timeout to pass is wrong. Concretely: | 113 | 113 | - `it.effect` runs on a `TestClock`; `Effect.sleep` only advances through `TestClock.adjust`. `it.live` is wall-clock and only for subprocess or network fixtures. | 114 | 114 | - No `yieldNow` or `sleep` polling loops. Await the `Deferred`, take from the `Queue`, or drain the worker. | |
Collapse file Copy file name to clipboardExpand all lines: apps/desktop/package.json +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 27 | 27 | "electron-updater": "^6.8.9", | 28 | 28 | "electron-webauthn": "catalog:", | 29 | 29 | "ffi-rs": "1.3.2", | 30 | | - "playwright-core": "1.60.0", | | 30 | + "playwright-core": "1.64.1", | 31 | 31 | "react-grab": "^0.1.32", | 32 | 32 | "tldts": "catalog:" | 33 | 33 | }, | |
Collapse file Copy file name to clipboardExpand all lines: apps/server/package.json +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 67 | 67 | "effect": "catalog:", | 68 | 68 | "ffi-rs": "1.3.2", | 69 | 69 | "node-pty": "^1.2.0-beta.15", | 70 | | - "playwright-core": "1.60.0", | | 70 | + "playwright-core": "1.64.1", | 71 | 71 | "proper-lockfile": "4.1.2", | 72 | 72 | "saxes": "6.0.0", | 73 | 73 | "stream-chain": "^4.2.5", | |
Collapse file Copy file name to clipboardExpand all lines: apps/server/src/device/AgentDeviceShim.ts +4-1Lines changed: 4 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -12,7 +12,7 @@ const STALE_RUNTIME = | 12 | 12 |
| 13 | 13 | const quoteShell = (value: string) => "'" + value.replaceAll("'", "'\"'\"'") + "'"; | 14 | 14 |
| 15 | | -/** agent-device 0.21.31's flags that take a value, so the launcher can find the command past them. */ | | 15 | +/** agent-device 0.21.36's flags that take a value, so the launcher can find the command past them. */ | 16 | 16 | const VALUE_FLAGS: ReadonlyArray<string> = [ | 17 | 17 | "--activity", | 18 | 18 | "--all", | @@ -53,6 +53,7 @@ const VALUE_FLAGS: ReadonlyArray<string> = [ | 53 | 53 | "--header", | 54 | 54 | "--hold-ms", | 55 | 55 | "--host", | | 56 | + "--image-tag", | 56 | 57 | "--in-app", | 57 | 58 | "--include", | 58 | 59 | "--interval-ms", | @@ -79,6 +80,7 @@ const VALUE_FLAGS: ReadonlyArray<string> = [ | 79 | 80 | "--metro-port", | 80 | 81 | "--network-profile", | 81 | 82 | "--on-error", | | 83 | + "--os", | 82 | 84 | "--os-version", | 83 | 85 | "--out", | 84 | 86 | "--pattern", | @@ -101,6 +103,7 @@ const VALUE_FLAGS: ReadonlyArray<string> = [ | 101 | 103 | "--provider-geo-location", | 102 | 104 | "--provider-language", | 103 | 105 | "--provider-locale", | | 106 | + "--provider-network-hosts", | 104 | 107 | "--provider-network-profile", | 105 | 108 | "--provider-os-version", | 106 | 109 | "--provider-project", | |
Collapse file Copy file name to clipboard +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | { | 2 | | - "agent-device": "0.21.31", | 3 | | - "expo-device-hub": "0.19.1" | | 2 | + "agent-device": "0.21.36", | | 3 | + "expo-device-hub": "0.22.1" | 4 | 4 | } |
Collapse file Copy file name to clipboardExpand all lines: apps/server/src/preview/ServerBrowserPage.test.ts -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -180,7 +180,6 @@ describe("server browser element refs", () => { | 180 | 180 | ); | 181 | 181 | expect(result.visibleText).not.toContain("editable-pass"); | 182 | 182 | expect(result.visibleText).toContain("Order ••••••••-2"); | 183 | | - expect(tree).toMatch(/row "password: •+"/); | 184 | 183 | expect(tree).toMatch(/textbox "Username" [^\n]*: maria$/m); | 185 | 184 | const line = tree.split("\n").find((line) => line.includes('textbox "Password"')); | 186 | 185 | expect(line).toMatch(/: •+$/); | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/package.json +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 111 | 111 | "compression": "^1.8.2", | 112 | 112 | "micromark-util-types": "catalog:", | 113 | 113 | "oxc-transform-react": "~0.152.0", | 114 | | - "playwright": "1.60.0", | | 114 | + "playwright": "1.64.1", | 115 | 115 | "tailwindcss": "^4.0.0", | 116 | 116 | "vite": "catalog:", | 117 | 117 | "vite-plus": "catalog:" | |
Collapse file Copy file name to clipboardExpand all lines: docs/README.md +1Lines changed: 1 addition & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -65,6 +65,7 @@ source alone does not explain. Most code changes do not need an internal documen | 65 | 65 | ### Runbooks | 66 | 66 |
| 67 | 67 | - [Development and local builds](./operations/development.md) | | 68 | +- [Scenarios: real-app proof for a fix](./operations/scenarios.md) | 68 | 69 | - [T3 Connect setup](./operations/connect-setup.md) | 69 | 70 | - [Release](./operations/release.md) | 70 | 71 | - [Observability](./operations/observability.md) | |
|