Skip to content

test(e2e): stabilise Domains "Rename domain" — longer slot + settle manage menu - #33801

Merged
ShaileshParmar11 merged 2 commits into
mainfrom
chirag-madlani/rename-domain-longer-slot
Sep 23, 2026
Merged

ShaileshParmar11 merged 2 commits into
mainfrom
chirag-madlani/rename-domain-longer-slot

Conversation

@chirag-madlani

@chirag-madlani chirag-madlani commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

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 beforeEach hooks. 30.3s baseline leaves under 2× headroom and shards run ~1.7× baseline. Eight tests in this file already carry test.slow() for the same reason; this one is the next by baseline that does not. Adds test.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 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 #33800. Fix: waitForAntdPopupToSettle(page) between the manage-button click and the rename-button click.

Type of change:

  • Test fix (over-budget wall time + Ant overlay animation race)

Commits:

  1. 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)
  2. 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

RetriggerConfidence Score: 5/5

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.

  • Marks the long-running rename scenario with test.slow().
  • Prevents a timing-sensitive click while the dropdown is still scaling.
  • Uses an established shared helper for settled Ant dropdown interactions.

Reviews (2) · Last reviewed commit: "fix(test): settle the manage menu before..."

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)
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Sep 22, 2026
@github-actions

github-actions Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit f57453ee52bdede6d2cb41085bf220ef44632b30 in Playwright run 35746478983, attempt 1.

✅ 93 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky

Performance

Blocking 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:

  • Browser traffic was 233.92 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.73 per UI scenario (265 boots / 97 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 93 0 0 0 0 0

📦 Download artifacts

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>
@chirag-madlani chirag-madlani changed the title test(e2e): give Domains "Rename domain" the longer slot test(e2e): stabilise Domains "Rename domain" — longer slot + settle manage menu Sep 22, 2026
@gitar-bot

gitar-bot Bot commented Sep 22, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Test-only timeout and dropdown-settling changes alter E2E execution behavior.

Adds test.slow() to the Domains "Rename domain" test to accommodate measured runtime that exceeds the 60s default timeout on sharded runs. No issues found.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@ShaileshParmar11
ShaileshParmar11 added this pull request to the merge queue Sep 23, 2026
Merged via the queue into main with commit 585ae88 Sep 23, 2026
95 of 98 checks passed
@ShaileshParmar11
ShaileshParmar11 deleted the chirag-madlani/rename-domain-longer-slot branch September 23, 2026 07:22

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants