Repository navigation
Fix settings Playwright failures after the unsaved-changes guard - #38070
Conversation
- The SSO Test Login provider crumb returns to its own form, as Back does, so it no longer opens the unsaved-changes prompt. Panels list such in-editor crumbs in inEditorBreadcrumbIds; guardBreadcrumbAction runs them without the guard. - SSO, glossary relation and change-password specs discard through the shared unsaved-changes popover. - Members pagination reads the page size from the picker's trigger, so a list already at 15 does not wait for a reload that never comes. - The SSL certificate test asserts the workflow request the form sent; the response masks the password-format caCertificate.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
…s-fix' into Rohit0301/profiledetails-failures-fix
Code Review ✅ Approved 🟡 Medium riskThe SSO provider breadcrumb bypasses the dirty-form guard to return to its editor; if it exits the editor, users could lose unsaved edits. Fixes six failing Playwright tests in the settings and profile flows by allowing the SSO Test Login provider breadcrumb to return without triggering the unsaved-changes guard, updating specs to handle the discard prompt, reading the page size from the picker trigger, and asserting on the POST body for the SSL cert upload. 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 |
…38167) Partial cherry-pick of #38070 (d3649e0), ServiceForm.spec.ts hunk only. #37962 backported masking of Superset sslConfig certificates to 2.0, so the workflow response now returns caCertificate as a mask. Assert on the request body the form sent instead. The other #38070 hunks cover personal-space and AI profile code that does not exist on 2.0.
Describe your changes:
Fixes the 6 Playwright failures in the Collate
mysql~fullrun (ProfileSsoSettings, ProfileGovernance, ProfileDetails, ProfileMembers, ServiceForm). Five come from the unsaved-changes guard added in #37904; one is a real product bug.ProfilePageguards every header crumb. On the Test Login sub page the provider crumb only returns to the same form (as the unguarded Back button does), but with edits it opened the unsaved-changes prompt, so the sub page never closed.ProfileHeaderOverride.inEditorBreadcrumbIds;guardBreadcrumbAction(action, inEditorIds)runs those crumbs without the guard.SsoPanelmarks the provider crumb.sso-unsaved-changes-discard, removed in #37904.unsaved-changes-popover-confirm.limit=15.textContent()of the whole Select isn't exactly'15', so the helper picked 15 again: no change, no request, and the hoistedwaitForResponsetimed out.caCertificateisformat: password, so the/automations/workflowsresponse returns*********.Type of change:
Tests:
Unit tests
useUnsavedExitGuard.test.ts: an in-editor crumb runs at once while an editor is dirty; other crumbs still go through the guard.ProfilePage.test.tsx: a panel's in-editor crumb skips the exit guard; other crumbs still ask.SsoPanel.test.tsx: the Test Login sub page lists the provider crumb as in-editor.Playwright — the 6 previously failing tests, run locally
Run against this branch's UI (Vite) and a local Collate server,
--no-deps --retries=0.The header in this first report also counts ServiceForm as "Failed 1". That run failed before reaching the changed assertion: Test Connection was disabled because the local server can't reach its Argo pipeline client (
/services/ingestionPipelines/statusreturns 500; the Argo token gets a 401). ServiceForm was rerun below with that one status endpoint stubbed healthy for the local run only. The stub is not in this PR, and CI has a real pipeline client.Manual testing
🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge.Summary
Fixes the SSO breadcrumb return path and updates settings tests to match the unsaved-changes prompt.
No new actionable issues found in the follow-up changes.
Reviews (2) · Last reviewed commit: "test: reset the exit guard after each Pr..." · Reviewed by Greptile