Skip to content

feat(e2e): update SSO settings URL in tests and improve test structur… - #681

Merged
pikann merged 1 commit into
masterfrom
fix/fix-failed-e2e-sso-testing
Oct 31, 2026
Merged

pikann merged 1 commit into
masterfrom
fix/fix-failed-e2e-sso-testing

Conversation

@pikann

@pikann pikann commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes the failing e2e-tests workflow run (#41201916039).

  • SSO spec (failed in all 5 browsers): /admin/settings is 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 permissions spec (flaky in every browser): git:read cannot link a repository created a member labelled READER, 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 label LINKREADER.
  • Biome reformatted some pre-existing, unformatted lines in git-permissions.spec.ts; formatting only.

Only apps/e2e test files change; no app code.

Test plan

  • tests/admin/sso.spec.ts and tests/iam/git-permissions.spec.ts pass on chromium against the local e2e stack (23 passed)
  • CI e2e-tests green on webkit, firefox, mobile-chrome and mobile-safari (not run locally)

🤖 Generated with Claude Code

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

Both root causes check out against the code they depend on.

  • SSO settings deep link — sso.spec.ts introduces SSO_SETTINGS_URL (?section=sso) and points the add-provider and delete-provider tests at it. /admin/settings now derives its active section from the section search param and defaults to visible[0] (branding for an admin), so the SSO section — and its "Add provider" button — was not rendered on the default view. section=sso is in the validated SECTIONS set, so the deep link resolves correctly. The two permission-gate tests that still use SETTINGS_URL are unaffected: a settings:write-only user lands on branding, a settings.sso:write-only user has visible[0] === "sso".
  • Git permissions label collision — git-permissions.spec.ts renames the READER member in git:read cannot link a repository to LINKREADER. memberWith derives both a project-role name and a username from a per-worker RUN_ID, and an earlier test in the same file already created READER, so the second creation collided deterministically (the worker restart on Playwright retry regenerated RUN_ID, which is what made it look flaky). All labels in the file are now unique; the remaining diff is biome reformatting.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@pikann
pikann merged commit c0ebdd8 into master Oct 31, 2026
2 checks passed
@pikann
pikann deleted the fix/fix-failed-e2e-sso-testing branch October 31, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant