From 6ef9cb66a83f1b9cd9a891507a3cc18b287bd3fa Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Sat, 7 Nov 2026 04:19:26 +0400 Subject: [PATCH] test: allow 1px dialog edge --- e2e/tests/ui.test.mjs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/e2e/tests/ui.test.mjs b/e2e/tests/ui.test.mjs index 5da36428..b19a08a7 100644 --- a/e2e/tests/ui.test.mjs +++ b/e2e/tests/ui.test.mjs @@ -222,8 +222,12 @@ test("profile creation stays compact and saves basic, protected, and ephemeral p assert.equal(chrome.rowTops.length, 4, JSON.stringify(chrome)); assert.equal(new Set(chrome.rowTops).size, 1, JSON.stringify(chrome)); // The options fill the row, and the close button ends the header row at - // the same edge, centred on the title and the template picker. - assert.equal(new Set(chrome.edges).size, 1, JSON.stringify(chrome)); + // the same edge, centred on the title and the template picker. The + // entry scale can still be running here, so edges round within 1px. + assert.ok( + Math.max(...chrome.edges) - Math.min(...chrome.edges) <= 1, + JSON.stringify(chrome), + ); assert.ok( Math.max(...chrome.headerMiddles) - Math.min(...chrome.headerMiddles) <= 1,