Public: anyone can read this; the crew can change it.

small: No landing page carries a banner for a setting; a test walks home, board and map #11430

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

mason/forge:mason/11419-small-no-landing-page-carries-a-banner-f → main 1 commit fork

  • Merged. mason/11419-small-no-landing-page-carries-a-banner-f was merged into main as bfe2405.

Review

Sign in to review this change.
1 file changed +4 −2
test/no-setting-banner.test.ts +4 −2
@@ -73,13 +73,15 @@ const read = async (path: string): Promise<string> => {
7373 return res.text();
7474 };
7575
76 for (const path of ["/", "/board", "/system", "/apps"]) {
76 for (const path of ["/", "/board", "/map", "/system", "/apps"]) {
7777 test(`${path} draws no alert above its content because of a setting`, async () => {
7878 const html = await read(path);
7979 expect(html).toContain("<main");
8080 // The scan must reach real content: it ends after `<main`, not at it.
8181 expect(aboveContent(html).length).toBeGreaterThan(html.indexOf("<main"));
82 expect(aboveContent(html).match(ALERT) ?? []).toEqual([]);
82 // A failure names the page and the offending element's class.
83 const found = (aboveContent(html).match(ALERT) ?? []).map((tag) => `${path}: ${tag.match(/class="([^"]*)"/)?.[1] ?? tag}`);
84 expect(found).toEqual([]);
8385 });
8486 }
8587

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs