From 4107be769fc3750dcfa9aed2339965aec60d77e7 Mon Sep 17 00:00:00 2001 From: Ayla Croft Date: Tue, 6 Oct 2026 22:08:31 -0400 Subject: [PATCH] test(extension): the never-swap test no longer depends on the date The language a word shows in is drawn per page per day (slice 18), and "thanks" has three. The test expected Russian, which the draw picks on some days only; on 2026-10-07 (UTC) it drew Mandarin, which failed CI on every branch and the rc.1 release build (security review finding C-08). The test is about the never-swap list, so it now loads only the Russian words. Pinned to each day of October 2026, it failed on 18 days before and passes on all after. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Ayla Croft --- test/dom/content.test.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/dom/content.test.mjs b/test/dom/content.test.mjs index 057ba42..ef0ace5 100644 --- a/test/dom/content.test.mjs +++ b/test/dom/content.test.mjs @@ -802,7 +802,9 @@ describe("sensitive sites and page settings (slice 16)", () => { }); test("a word on the never-swap list stays, on every page, until it is taken off", async () => { - const { $, set } = await load(`

my house, thanks

`, { prefs: { neverSwap: ["house"] } }); + // Russian words only: with three languages for "thanks", which one shows is drawn per + // day (slice 18), and the release build of rc.1 ran on a day that drew Mandarin. + const { $, set } = await load(`

my house, thanks

`, { words: WORDS.filter((w) => w.lang === "ru"), prefs: { neverSwap: ["house"] } }); assert.equal($("p").textContent, "my house, спасибо"); await set({ prefs: { neverSwap: [] } }); assert.equal($("p").textContent, "my дом, спасибо");