Skip to content

[2.0] test(ui): expect editable SAML SP fields in SSOConfiguration spec - #38432

Merged
ShaileshParmar11 merged 1 commit into
2.0from
ShaileshParmar11/2.0-saml-sp-editable-spec
Nov 23, 2026
Merged

ShaileshParmar11 merged 1 commit into
2.0from
ShaileshParmar11/2.0-saml-sp-editable-spec

Conversation

@ShaileshParmar11

@ShaileshParmar11 ShaileshParmar11 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes the SSOConfiguration.spec.ts:415 failure (should show SAML SP Entity ID and ACS URL as readonly) in the 2.0 nightly Playwright runs (MySQL and PostgreSQL, nightly #199, run 44968681989 / 44968688028).

The test fails on every attempt:

Locator:  locator('[id="root/authenticationConfiguration/samlConfiguration/sp/entityId"]')
Expected: have attribute
Received: attribute not present

Why: #38197 backported the SAML / Test Login changes from #38219 to 2.0. Among them, SAML_UI_SCHEMA.sp.entityId and sp.acs in SSO.constant.ts lost 'ui:readonly': true, and their help text changed from "Auto-generated…" to "Defaults to the application…". The backport's Jest test asserts the new behaviour (SSOConfigurationForm.test.tsx: should allow editing the default SAML entity ID and ACS URL). However, the 2.0 Playwright spec still asserted the old readonly fields and help text.

Main never hit this: #35547 had already moved these UI-only SSO checks from Playwright to Jest there, so #38219 had no spec to update. #35547 was not backported to 2.0, so the old Playwright block still exists on 2.0.

Change: the test now asserts the shipped 2.0 behaviour. Both SP fields are editable (toBeEditable()), and the new help text is shown. It is renamed to should let the admin edit the SAML SP Entity ID and ACS URL.

Type of change:

  • Bug fix

High-level design:

N/A — one test in one spec file.

Tests:

Use cases covered

  • Admin selects SAML in SSO settings and sees the SP Entity ID and ACS URL as editable fields with the "Defaults to the application…" help text.

Unit tests

Backend integration tests

  • Not applicable (no backend changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Updated: openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/SSOConfiguration.spec.ts
  • Ran locally against the 2.0 UI (Vite dev server from this branch, --project=chromium --retries=0, PLAYWRIGHT_IS_OSS=true). The old test ran in the same pass from a temporary copy of the original 2.0 spec:
    • Old should show SAML SP Entity ID and ACS URL as readonly: failed at :425 with the same error as the nightly (attribute not present).
    • New should let the admin edit the SAML SP Entity ID and ACS URL: passed.
    • Result: 4 passed (setup, entity-data-setup, the new test, teardown), 1 failed (the old test, expected).
  • The backend for that run was a local main server (4ecb6d5), not a 2.0 build. The assertions only read the 2.0 UI's SAML_UI_SCHEMA.
  • Not run: the rest of SSOConfiguration.spec.ts and other impacted specs; the 2.0 nightly covers them.
  • Prettier and ESLint are clean on the changed file.

Manual testing performed

  1. Served this branch's 2.0 UI with VITE_DEV_SERVER_TARGET=http://localhost:8585 yarn start --port 3000 against a local OpenMetadata server.
  2. Ran the old and new test together as described above and compared the results.

UI screen recording / screenshots:

Not applicable — test-only change.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation> — test fix, no issue (skip-pr-checks).
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above — test fix, no issue.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: not applicable.
  • For UI changes: not applicable.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • Self-reviewed against REVIEW.md at 78baf56f640. No 🔴 or 🟡 findings.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Updates one Playwright test to match the existing SAML form.

  • The SAML settings test expects editable SP fields.

Reviews (1) · Last reviewed commit: "test(ui): expect editable SAML SP fields..." · Reviewed by Greptile

Backport #38197 made the SAML SP Entity ID and ACS URL editable and changed
their help text, but the 2.0-only SSOConfiguration spec still asserted the
fields were readonly, failing the 2.0 nightly on MySQL and PostgreSQL.
@ShaileshParmar11
ShaileshParmar11 requested a review from a team as a code owner November 23, 2026 05:59
@ShaileshParmar11 ShaileshParmar11 added the skip-pr-checks Bypass PR metadata validation check label Nov 23, 2026
@ShaileshParmar11
ShaileshParmar11 requested review from karthicksharan and removed request for a team November 23, 2026 05:59
@ShaileshParmar11
ShaileshParmar11 merged commit bef16c8 into 2.0 Nov 23, 2026
62 of 63 checks passed
@ShaileshParmar11
ShaileshParmar11 deleted the ShaileshParmar11/2.0-saml-sp-editable-spec branch November 23, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-pr-checks Bypass PR metadata validation check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants