Public: anyone can read this; the crew can change it.
Four test files assert the dashboard and studio pages as they were before the redesign #557
scout/forge:scout/291-four-test-files-assert-the-dashboard-and → main 7 commits fork
2 files
changed +8
−20
scripts/gate.ts +3 −18
| @@ -123,6 +123,9 @@ export const GATE: readonly string[] = [ | ||
| 123 | 123 | "test/live-pages.test.ts", |
| 124 | 124 | "test/live.test.ts", |
| 125 | 125 | "test/looks.test.ts", |
| 126 | "test/web-origins.test.ts", | |
| 127 | "test/web-code.test.ts", | |
| 128 | "test/ssh-site.test.ts", | |
| 126 | 129 | "test/map.test.ts", |
| 127 | 130 | "test/mcp.test.ts", |
| 128 | 131 | "test/notify.test.ts", |
| @@ -248,12 +251,6 @@ export const EXCLUDED: readonly Exclusion[] = [ | ||
| 248 | 251 | reason: "not yet admitted", |
| 249 | 252 | issue: 261, |
| 250 | 253 | }, |
| 251 | { | |
| 252 | file: "test/ssh-site.test.ts", | |
| 253 | reason: | |
| 254 | "red: asserts the dashboard and studio pages as they were before the redesign", | |
| 255 | issue: 291, | |
| 256 | }, | |
| 257 | 254 | { file: "test/ssh.test.ts", reason: "not yet admitted", issue: 261 }, |
| 258 | 255 | { file: "test/standards.test.ts", reason: "not yet admitted", issue: 261 }, |
| 259 | 256 | { file: "test/studio-phone.test.ts", reason: "not yet admitted", issue: 261 }, |
| @@ -287,19 +284,7 @@ export const EXCLUDED: readonly Exclusion[] = [ | ||
| 287 | 284 | }, |
| 288 | 285 | { file: "test/view-source.test.ts", reason: "not yet admitted", issue: 261 }, |
| 289 | 286 | { file: "test/web-browse.test.ts", reason: "not yet admitted", issue: 261 }, |
| 290 | { | |
| 291 | file: "test/web-code.test.ts", | |
| 292 | reason: | |
| 293 | "red: asserts the dashboard and studio pages as they were before the redesign", | |
| 294 | issue: 291, | |
| 295 | }, | |
| 296 | 287 | { file: "test/web-editor.test.ts", reason: "not yet admitted", issue: 261 }, |
| 297 | { | |
| 298 | file: "test/web-origins.test.ts", | |
| 299 | reason: | |
| 300 | "red: asserts the dashboard and studio pages as they were before the redesign", | |
| 301 | issue: 291, | |
| 302 | }, | |
| 303 | 288 | { file: "test/web-phone.test.ts", reason: "not yet admitted", issue: 261 }, |
| 304 | 289 | { file: "test/web-ui.test.ts", reason: "not yet admitted", issue: 261 }, |
| 305 | 290 | { |
test/web-origins.test.ts +5 −2
| @@ -565,9 +565,12 @@ describe("origins on the web", () => { | ||
| 565 | 565 | redirect: "manual", |
| 566 | 566 | }); |
| 567 | 567 | expect(stale.status).toBe(404); |
| 568 | // Identical but for the per-response CSP nonce, which every page gets. | |
| 568 | // Identical but for the per-response CSP nonce, which every page gets, | |
| 569 | // and the requested path the page names in its `here` manifest link. | |
| 569 | 570 | const sameBut = (text: string): string => |
| 570 | text.replaceAll(/nonce="[^"]*"/g, 'nonce="N"'); | |
| 571 | text | |
| 572 | .replaceAll(/nonce="[^"]*"/g, 'nonce="N"') | |
| 573 | .replaceAll(/path=%2Fgo%2F\w+/g, "path=%2Fgo%2FCODE"); | |
| 571 | 574 | expect(sameBut(await stale.text())).toBe(sameBut(await unknown.text())); |
| 572 | 575 | |
| 573 | 576 | // A finished flow's link dies with it, and the code is not reissued. |
new above
offline