fix(e2e): move data-test to visible wrapper in EnvironmentSelect#7161
Conversation
…ronmentSelect React Select puts rest props on the hidden <input>, making data-test="switch-environment-*-active" invisible to Playwright's waitForElementVisible. Move it to the wrapping <div> so the selector resolves to a visible element. Fixes ARM E2E timeout on environment rename test. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit at claude.ai/admin-settings/claude-code.
Once credits are available, reopen this pull request to trigger a review.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Docker builds report
|
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
|
Visual Regression16 screenshots compared. See report for details. |
Changes
Fixes the ARM E2E timeout on the environment rename test.
React Select puts
...restprops (includingdata-test) on the hidden<input>element. Playwright'swaitForElementVisiblefinds the element but it's always hidden — causing a 20s timeout after 44 resolution attempts.The fix: extract
data-testfrom rest props and put it on the visible wrapping<div>instead.How did you test this code?