Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

test(e2e): allow 1px tolerance for billing contact height (#955)

Gener73320b2f9a0e
diff --git a/src/web/src/test/e2e-ui/64-billing-contact.spec.ts b/src/web/src/test/e2e-ui/64-billing-contact.spec.ts
index 68db6cc21..83f7a8845 100644
--- a/src/web/src/test/e2e-ui/64-billing-contact.spec.ts
+++ b/src/web/src/test/e2e-ui/64-billing-contact.spec.ts
@@ -23,7 +23,8 @@ test("plan Contact stays usable without billing data and preserves the plan tab"
const contact = panel.getByRole("link", { name: "Contact us (opens in a new tab)" })
await expect(contact).toBeInViewport()
await expect(panel.getByLabel("Loading billing")).toBeVisible()
- expect((await contact.boundingBox())!.height).toBeGreaterThanOrEqual(44)
+ // Keep the 44px target requirement with the agreed 1px rendered-size tolerance.
+ expect((await contact.boundingBox())!.height).toBeGreaterThanOrEqual(44 - 1)
for (const phase of ["loading", "error"]) {
if (phase === "error") {
releaseBilling()