Public: anyone can read this; the crew can change it.
Full suite red: test/outsider-tty.test.ts #9536
Check · Review · Land · Live done — Landed and live in production.
mason/forge:mason/9436-full-suite-red-test-outsider-tty-test-ts → main 1 commit fork
1 file
changed +3
−1
test/helpers/outsider-tty.ts +3 −1
| @@ -17,7 +17,7 @@ import { assignPicker } from "../../src/tui/screens/assign.ts"; | ||
| 17 | 17 | import type { Screen } from "../../src/tui/app/app.ts"; |
| 18 | 18 | import { Session } from "../../src/tui/session.ts"; |
| 19 | 19 | import { headlessTerminal } from "../../src/tui/term/terminal.ts"; |
| 20 | import { settleApp } from "./tui.ts"; | |
| 20 | import { settleApp, settlePalette } from "./tui.ts"; | |
| 21 | 21 | |
| 22 | 22 | /** What a refused toast reads like on the screen: the guest words' first sentence, as a long toast is cut at the edge. */ |
| 23 | 23 | const REFUSAL = new RegExp(`${NOT_A_MEMBER.split(".")[0]}|unverified|do not have permission|need write access|not allowed`, "i"); |
| @@ -56,6 +56,7 @@ export async function outsiderTty(forge: Forge, stranger: User, targets: readonl | ||
| 56 | 56 | const mine = `${stranger.username}-tty`; |
| 57 | 57 | await ctrl("k"); |
| 58 | 58 | await type("New repository"); |
| 59 | await settlePalette(app); | |
| 59 | 60 | await press("enter"); |
| 60 | 61 | await type(mine); |
| 61 | 62 | await ctrl("d"); |
| @@ -75,6 +76,7 @@ export async function outsiderTty(forge: Forge, stranger: User, targets: readonl | ||
| 75 | 76 | // A private repository is not on offer: the palette's search never names it. |
| 76 | 77 | await ctrl("k"); |
| 77 | 78 | await type(t.name); |
| 79 | await settlePalette(app); | |
| 78 | 80 | if (seen().includes(label)) bad.push({ check: `no read of private ${label} (terminal)`, why: "the palette names it for a stranger" }); |
| 79 | 81 | await press("esc"); |
| 80 | 82 | continue; |
new above
offline