Repository navigation
feat(e2e): update SSO settings URL in tests and improve test structur… - #681
Merged
Merged
Conversation
…e for Git permissions
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Both root causes check out against the code they depend on.
- SSO settings deep link —
sso.spec.tsintroducesSSO_SETTINGS_URL(?section=sso) and points the add-provider and delete-provider tests at it./admin/settingsnow derives its active section from thesectionsearch param and defaults tovisible[0](branding for an admin), so the SSO section — and its "Add provider" button — was not rendered on the default view.section=ssois in the validatedSECTIONSset, so the deep link resolves correctly. The two permission-gate tests that still useSETTINGS_URLare unaffected: asettings:write-only user lands on branding, asettings.sso:write-only user hasvisible[0] === "sso". - Git permissions label collision —
git-permissions.spec.tsrenames theREADERmember ingit:read cannot link a repositorytoLINKREADER.memberWithderives both a project-role name and a username from a per-workerRUN_ID, and an earlier test in the same file already createdREADER, so the second creation collided deterministically (the worker restart on Playwright retry regeneratedRUN_ID, which is what made it look flaky). All labels in the file are now unique; the remaining diff is biome reformatting.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
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.

Summary
Fixes the failing
e2e-testsworkflow run (#41201916039)./admin/settingsis now split into sections (Workspace branding, SSO, Login security) and opens on branding, so the "Add provider" button was never on the page. The add-provider and delete-provider tests now go to/admin/settings?section=sso. The 5 "did not run" tests per browser were later tests in the same serial SSO suite.git:read cannot link a repositorycreated a member labelledREADER, the same label an earlier test in the file uses with the same per-worker run id. The duplicate username made user creation fail on the first attempt, and the retry passed in a fresh worker. It now uses the labelLINKREADER.git-permissions.spec.ts; formatting only.Only
apps/e2etest files change; no app code.Test plan
tests/admin/sso.spec.tsandtests/iam/git-permissions.spec.tspass on chromium against the local e2e stack (23 passed)e2e-testsgreen on webkit, firefox, mobile-chrome and mobile-safari (not run locally)🤖 Generated with Claude Code