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

Closed opened this
Closed without merging

scout/forge:scout/291-four-test-files-assert-the-dashboard-and → main 7 commits fork

  • Closed without merging. Nothing was applied to main.

Review

Sign in to review this change.
2 files changed +8 −20
scripts/gate.ts +3 −18
@@ -123,6 +123,9 @@ export const GATE: readonly string[] = [
123123 "test/live-pages.test.ts",
124124 "test/live.test.ts",
125125 "test/looks.test.ts",
126 "test/web-origins.test.ts",
127 "test/web-code.test.ts",
128 "test/ssh-site.test.ts",
126129 "test/map.test.ts",
127130 "test/mcp.test.ts",
128131 "test/notify.test.ts",
@@ -248,12 +251,6 @@ export const EXCLUDED: readonly Exclusion[] = [
248251 reason: "not yet admitted",
249252 issue: 261,
250253 },
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 },
257254 { file: "test/ssh.test.ts", reason: "not yet admitted", issue: 261 },
258255 { file: "test/standards.test.ts", reason: "not yet admitted", issue: 261 },
259256 { file: "test/studio-phone.test.ts", reason: "not yet admitted", issue: 261 },
@@ -287,19 +284,7 @@ export const EXCLUDED: readonly Exclusion[] = [
287284 },
288285 { file: "test/view-source.test.ts", reason: "not yet admitted", issue: 261 },
289286 { 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 },
296287 { 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 },
303288 { file: "test/web-phone.test.ts", reason: "not yet admitted", issue: 261 },
304289 { file: "test/web-ui.test.ts", reason: "not yet admitted", issue: 261 },
305290 {
test/web-origins.test.ts +5 −2
@@ -565,9 +565,12 @@ describe("origins on the web", () => {
565565 redirect: "manual",
566566 });
567567 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.
569570 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");
571574 expect(sameBut(await stale.text())).toBe(sameBut(await unknown.text()));
572575
573576 // A finished flow's link dies with it, and the code is not reissued.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs