Skip to content

Fix settings Playwright failures after the unsaved-changes guard - #38070

Merged
Rohit0301 merged 5 commits into
mainfrom
Rohit0301/profiledetails-failures-fix
Nov 18, 2026
Merged

Rohit0301 merged 5 commits into
mainfrom
Rohit0301/profiledetails-failures-fix

Conversation

@Rohit0301

@Rohit0301 Rohit0301 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes the 6 Playwright failures in the Collate mysql~full run (ProfileSsoSettings, ProfileGovernance, ProfileDetails, ProfileMembers, ServiceForm). Five come from the unsaved-changes guard added in #37904; one is a real product bug.

Test Root cause Fix
ProfileSsoSettings › Test Login … Back keeps the edited values Product bug. ProfilePage guards 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. SsoPanel marks the provider crumb.
ProfileSsoSettings › discards unsaved edits The spec clicked sso-unsaved-changes-discard, removed in #37904. Click unsaved-changes-popover-confirm.
ProfileGovernance › cancel returns to the list Cancel on a form with edits now asks first; the spec never discarded. Expect the prompt, discard.
ProfileDetails › submission is blocked… Same: Change Password Cancel goes through the guard. Expect the prompt, discard.
ProfileMembers › go back a page with the before cursor The list already loads at limit=15. textContent() of the whole Select isn't exactly '15', so the helper picked 15 again: no change, no request, and the hoisted waitForResponse timed out. Read the size from the picker's trigger button.
ServiceForm › SSL cert upload with long filename caCertificate is format: password, so the /automations/workflows response returns *********. Assert on the POST request body the form sent.

Type of change:

  • Bug fix

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.
  • Jest: 66/66 pass across ProfilePage, SsoPanel, useUnsavedExitGuard and PersonasPanel.

Playwright — the 6 previously failing tests, run locally

Run against this branch's UI (Vite) and a local Collate server, --no-deps --retries=0.

ProfileSsoSettings, ProfileDetails and ProfileMembers passing

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/status returns 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.

ProfileGovernance passing (IntakeForm project)

ServiceForm SSL cert test passing

Manual testing

  1. Settings → SSO → Okta → Configure, edit Client ID, click Test Login.
  2. Click the Okta crumb: you land back on the form with your edit kept, and no unsaved-changes prompt appears.
  3. With the edit still there, click the Single Sign-On crumb or the sidebar: the prompt still appears.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence 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.

  • The Okta breadcrumb returns from Test Login to the SSO form without prompting.
  • Dirty-form cancellation tests confirm the shared prompt before discarding edits.
  • The service form test checks the CA certificate in the request it sends.
  • The members pagination test reads the selected page size from its button.

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

- 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.
@Rohit0301
Rohit0301 requested a review from a team as a code owner November 18, 2026 04:57
@Rohit0301
Rohit0301 requested a review from karanh37 November 18, 2026 04:57
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@Rohit0301 Rohit0301 added the safe to test Add this label to run secure Github workflows on PRs label Nov 18, 2026
@Rohit0301
Rohit0301 enabled auto-merge (squash) November 18, 2026 05:24
@gitar-bot

gitar-bot Bot commented Nov 18, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

The 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.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@Rohit0301
Rohit0301 merged commit d3649e0 into main Nov 18, 2026
59 of 61 checks passed
@Rohit0301
Rohit0301 deleted the Rohit0301/profiledetails-failures-fix branch November 18, 2026 05:48
ShaileshParmar11 added a commit that referenced this pull request Nov 19, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants