From fb81f80ce53d3dfbefc1d574d5130c7aa87b34cb Mon Sep 17 00:00:00 2001 From: Justin Parker Date: Thu, 19 Nov 2026 08:40:42 -0800 Subject: [PATCH] Fix the Subagents dialog test on Chrome 158: count its flow-end reading of justify-content as flex-end AI Assisted --- scripts/test-web-console-page-prefs.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/test-web-console-page-prefs.mjs b/scripts/test-web-console-page-prefs.mjs index 110c75d..25f3af9 100644 --- a/scripts/test-web-console-page-prefs.mjs +++ b/scripts/test-web-console-page-prefs.mjs @@ -973,6 +973,9 @@ test("the Subagents dialog looks as it did before Preferences moved to tabs", as second: await stylesOf(modal.locator("fieldset.modal-ranges").nth(1), ["margin-top"]), actions: await stylesOf(modal.locator(".modal-actions"), ["display", "justify-content"]), }; + // Chrome 158 reads `justify-content: flex-end` back as "flow-end"; older Chrome and Edge + // say "flex-end". The stylesheet is the same either way, so count them as one. + if (got.actions["justify-content"] === "flow-end") got.actions["justify-content"] = "flex-end"; if (process.env.P2C_PRINT_SUBAGENTS) console.log("SUBAGENTS " + JSON.stringify(got)); assert.deepEqual(got, SUBAGENTS_BEFORE); });