Repository navigation
test(e2e): stabilise Domains "Rename domain" — longer slot + settle manage menu - #33801
Conversation
Ran 66.7s wall against the 60s default, 17.9s of it in Before Hooks. Its 30.3s baseline leaves under 2x headroom and shards run ~1.7x baseline, so this is a test sitting on the edge rather than one that regressed. Eight tests in this file already carry slow() for the same reason; this one is the next by baseline that does not. Recorded the trace trap in the test too, because it cost me a wrong diagnosis first time through: the trace is dominated by a 57s "Wait for selector input[name=email]", which reads like a login stall. It is the losing branch of the Promise.any in authenticateAdminPage, left running once the sidebar won, and it costs nothing -- exactly what that helper's comment warns about. (cherry picked from commit d2859db)
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
✅ Playwright Results — workflow succeededValidated commit ✅ 93 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 32m 0s ⏱️ Max setup 2m 58s · max shard execution 15m 57s · max shard-job elapsed before upload 19m 13s · reporting 3s 🌐 233.92 requests/attempt · 2.73 app boots/UI scenario · 0.00% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
The Rename button sits inside an Ant dropdown that scales in on mount. A click on that item while the popup is still animating puts mousedown and mouseup in different places, so the browser never synthesises a click -- the item takes focus and the rename dialog that was supposed to follow never opens. Same failure signature as the subdomain delete race fixed in DataProductAndSubdomains.spec.ts. Give the popup one frame to settle after `manage-button.click()` so the subsequent `renameButton.click()` lands on a stable target. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Code Review ✅ Approved🟡 Medium risk · Test-only timeout and dropdown-settling changes alter E2E execution behavior. Adds OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
The Domains "Rename domain" test flakes for two independent reasons — this PR addresses both.
1. Over-budget test wall time. Ran 66.7s wall against the 60s default, 17.9s of it in
beforeEachhooks. 30.3s baseline leaves under 2× headroom and shards run ~1.7× baseline. Eight tests in this file already carrytest.slow()for the same reason; this one is the next by baseline that does not. Addstest.slow().2. Manage-menu Ant animation race. The Rename button sits inside an Ant dropdown that scales in on mount. A click on that item while the popup is still animating puts
mousedownandmouseupin different places, so the browser never synthesises a click — the item takes focus and the rename dialog that was supposed to follow never opens. Same failure signature as the subdomain delete race fixed in #33800. Fix:waitForAntdPopupToSettle(page)between the manage-button click and the rename-button click.Type of change:
Commits:
ab77d30c88—test(e2e): give Domains "Rename domain" the longer slot(from Fixes #33087: validate full Playwright coverage and repair CI races #33088, authored by @harshach)f57453ee52—fix(test): settle the manage menu before pressing Rename on a domain(new, authored by me, follows the pattern from fix(test): settle the manage menu before pressing Delete on a subdomain #33800)Notes:
Follow-up on the observation that "Rename domain" was still flaking even with the longer slot — the root cause is the same Ant overlay animation race #33800 hardened for subdomain delete. The
test.slow()on its own would only mask the flake by absorbing retries into a bigger budget; this actually removes the race.🤖 Generated with Claude Code
The PR appears safe to merge; the test-only changes use established timeout and popup-settling patterns without changing product behavior.
Summary
This PR stabilizes the Domains “Rename domain” Playwright test by increasing its timeout allowance and waiting for the Ant Design Manage dropdown animation to settle before selecting Rename.
test.slow().Reviews (2) · Last reviewed commit: "fix(test): settle the manage menu before..."