Repository navigation
test(playwright): find the Teams EditUser member row by login, not display name - #38074
Merged
Merged
Conversation
…splay name #37127 moved the login out of the users table's Name column, so the row name no longer contains the firstName-dot the locator relied on and the remove click hung until the test timeout.
Code Review ✅ Approved 🟢 Low riskThe Playwright-only locator and response-wait fix changes test synchronization, not product behavior, so its impact is limited to this test. Switches the Teams EditUser remove-user step to locate the member row by unique login in the Email cell instead of display-name row text, fixing the nightly timeout caused by the new column layout. The refetch wait now uses waitForResponseWithStatus so error responses fail fast. No issues found. VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
harsh-vador
enabled auto-merge (squash)
November 18, 2026 05:55
anuj-kumary
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes:
Fixes the
Teams.spec.ts›Teams Page with EditUser Permission›Add and Remove User for Teamnightly failure (AUT run 44200749877: 3/3 timeouts on both MySQL and PostgreSQL, also in 44223858579; passing in 44020681792).Root cause. The "Remove user from Team" step located the member row by its accessible name:
A react-aria grid row takes its name from the row header — the first column. Until #37127 that column showed the login (
happy42c4d2c6.tiger68d8c337.1794966067259), and"H Happy42c4d2c6."matched it only by coincidence: a case-insensitive substring that happened to hit the first-name/last-name separator dot. #37127 made the first column the display name and moved the login to the new Email column, so the row name becameH Happy42c4d2c6Tiger68d8c337— no dot. The locator matched nothing and theremove-user-btnclick waited until the 60 s test timeout (locator.click: Target page, context or browser has been closed). The CI error-context shows the table as:Not a product bug — the new column layout is intended.
Fix.
getRowByName(page, userName)(playwright/utils/scopedLocators.ts), keyed on the user's unique login. The login is in the Email cell whether the email is masked (login shown) or visible (the email contains it), so the locator no longer depends on how the Name column formats a user.waitForResponseWithStatuswith the GET method, per handbook §7.3/7.4, so an error response fails at that line instead of hanging until timeout.No other spec builds a row name this way.
Type of change:
High-level design:
N/A — single-file test fix.
Tests:
Use cases covered
Unit tests
Not applicable — Playwright-only change.
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
playwright/e2e/Pages/Teams.spec.ts--project=chromium --no-deps --retries=0against a local server:Teams Page with EditUser Permission›Add and Remove User for Team,--repeat-each=3: 3 passed, 0 failed, 0 flakyTeams.spec.ts: 21 passed, 0 failedeslinton the spec: 0 errors (the 4 warnings are older, on the untouched fixture lines 138–156);prettier --checkclean;tsc -p playwright/tsconfig.jsonreports no errors in this file.Result (HTML report screenshot):
screenshot: teams-edituser-playwright-report.png
screenshot: teams-full-playwright-report.png
Visual regression baselines
Manual testing performed
results.jsonand the HTML report (error-context + screenshot) for the failing test from the nightly run.eee37774138).UI screen recording:
Not applicable — test-only fix, no UI behaviour change.
Checklist:
Fixes <issue-number>: <short explanation>— N/A, test fix (skip-pr-checks).Fixes #<issue-number>above — N/A, test fix.REVIEW.md(thepr-checklistskill runs it) and fixed every 🔴 finding, or answered it on the line below.Reviewed
e74dcda137b(rebase ofd03ea1e582c, same diff): no 🔴. No helper or test id renamed, so Collate callers are unaffected; reverting the locator brings back the CI hang; the closingnot.toBeVisibletargets an element visible before the action, so it can still fail.🤖 Generated with Claude Code


Confidence Score: 5/5
This test-only change appears safe to merge.Summary
Updates the Teams member-removal test to find the user by login instead of display-name formatting.
No actionable issues found. Tests were not run during this review.
Reviews (7) · Last reviewed commit: "test(playwright): find the Teams EditUse..." · Reviewed by Greptile