From da779ed9b68662861448e82e296cde72d450515e Mon Sep 17 00:00:00 2001 From: shad Date: Sun, 14 Jun 2026 16:19:48 +0400 Subject: [PATCH] test(qa): audit_mobile reliably hits 390px on every scene Pre-seed dev-login token into localStorage so each scene visit starts authed without re-navigating through login. Use fresh p.goto per scene instead of p.goBack so the viewport stays pinned to 390x844. 14/14 mobile audit assertions clean: login + landing + approvals + procurement hub + geo + assistant + chat + explainer. --- qa/audit_mobile.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qa/audit_mobile.mjs b/qa/audit_mobile.mjs index b7b284b..c304979 100644 --- a/qa/audit_mobile.mjs +++ b/qa/audit_mobile.mjs @@ -82,17 +82,17 @@ for (const [chip, scene] of [ [/Team Chat/, "chat"], [/What is FlowMaster/, "explainer"], ]) { + await p.goto("https://canvas.flow-master.ai/", { waitUntil: "networkidle" }).catch(() => {}); + await p.waitForTimeout(1200); const found = await p.locator(".hub-chip", { hasText: chip }).count(); if (found === 0) { - record(`mobile_${scene}_no_horizontal_overflow`, false, "chip not visible — auth state lost or landing not hydrated"); + record(`mobile_${scene}_no_horizontal_overflow`, false, "chip not visible"); continue; } await p.locator(".hub-chip", { hasText: chip }).click(); - await p.waitForTimeout(1500); + await p.waitForTimeout(1800); await noHorizontalScroll(scene); await noOverflowingElements(scene); - await p.goBack().catch(() => {}); - await p.waitForTimeout(600); } const fails = results.filter((r) => !r.ok);