Repository navigation
test(playwright): fix Bots.spec revoke button casing after #37878 - #37938
Merged
Merged
Conversation
…sing #37878 title-cased label.revoke-token to "Revoke Token", but createBot still asserted the old "Revoke token" with a case-sensitive toContainText, so Bots.spec failed on every main run since.
Code Review ✅ Approved 🟢 Low riskThis one-line Playwright assertion change stops pinning button-label casing while retaining visibility and token checks, with no production behavior impact. Replaces a case-sensitive 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
marked this pull request as ready for review
November 17, 2026 05:44
harsh-vador
enabled auto-merge (squash)
November 17, 2026 05:53
Rohit0301
approved these changes
Nov 17, 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
Pages/Bots.spec.ts› Bots Page should work properly failure onmain(first seen on d9fb134, shardchromium-14, failed on both attempts).Root cause: #37878 title-cased
label.revoke-token("Revoke token"→"Revoke Token") in every locale, butcreateBotinplaywright/utils/bot.tsstill asserted the old wording withtoContainText, which is case-sensitive. Playwright was skipped on #37878, so the first full run after merge is where it surfaced. The product is fine — this is a stale assertion, not a flake.Fix: assert that the revoke button is visible instead of pinning its label's casing. The step only needs to prove the bot was created with a token; the next assertion already checks the token value in
center-panel. The other two strings #37878 re-cased (No {{entity}} Found,View Changes) have no case-sensitive assertions left inplaywright/— the one hit (AccessControlSettings.spec.ts,getByText('No Teams found')) matches case-insensitively.Type of change:
High-level design:
N/A — one-line test fix.
Tests:
Use cases covered
Bots.spec.ts).Unit tests
Not applicable — Playwright helper change only.
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
playwright/utils/bot.tsplaywright/e2e/Pages/Bots.spec.tslocally against this branch's UI: 1 passed (22.5s) on0d54a11. Commands:PLAYWRIGHT_IS_OSS=true npx playwright test --project=setup, thennpx playwright test playwright/e2e/Pages/Bots.spec.ts --project=Basic --no-deps --retries=0. The UI was this branch served by Vite and proxied to a local 2.1 backend, with the admin in classic app mode (as in CI).Result (HTML report screenshot):
Visual regression baselines
Manual testing performed
N/A — test-only change; verified by the local Playwright run above.
UI screen recording:
Not applicable — test-only change.
Checklist:
Fixes <issue-number>: <short explanation>— test fix, no issue (skip-pr-checks).Fixes #<issue-number>above — test fix, no issue.REVIEW.md(thepr-checklistskill runs it) and fixed every 🔴 finding, or answered it on the line below.0d54a11; no 🔴. The assertion stays meaningful: a missing token showsauth-mechanisminstead ofrevoke-button, sotoBeVisible()still fails if the bot is created without a token.🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge.Summary
Updates
createBotto check thatrevoke-buttonis visible instead of matching its label’s casing.Reviews (1) · Last reviewed commit: "test(playwright): assert the bot revoke ..." · Reviewed by Greptile