fix(e2e): deflake firefox form-validation by waiting for nav links to be visible #402
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/PMS-543-firefox-nav-visible-wait"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Deflakes the firefox run of
e2e/tests/form-validation.spec.ts. Resolves PMS-543.The spec navigates in-app by clicking sidebar/list router links (a hard
gotowould reboot the WASM app and drop the bearer), then clicks the Create button. The Create-button clicks already wait explicitly for visibility with a 15s timeout, but the four nav-link clicks relied on Playwright's default action timeout. Firefox paints the post-WASM-nav DOM more slowly than Chromium/WebKit, soa[href="/tickets"]could miss that timeout and the click failed with the link "never visible" (run 2782; chromium and webkit passed the same run).The four nav clicks now go through a
navClickhelper that waits for the:visibleinstance with the same 15s timeout the buttons use, then clicks. The:visible+.first()selector semantics are unchanged, so the load-bearing mobile-drawer-vs-desktop-sidebar behavior (the existing in-test comment) is preserved.Verification
Local:
tsc --noEmitis clean andplaywright test --listcollects the spec across chromium/firefox/webkit.Not exercised end-to-end here: the firefox flake only reproduces against the live staging deployment (the suite gates on a staging
/api/v1/healthprobe), which can't run locally. The change is an additive visibility wait, so it cannot affect the already-green chromium/webkit runs; the staging e2e run on this PR is the real confirmation.Context
This was the last of the mokosh-server CI-failure backlog. The sibling tickets were the staging
/api/v1/health404 reachability gate (PMS-544/547, now returning 200) and an integration.yml runner OOM (PMS-527/528), all closed as resolved/out-of-date.