Skip to content

[2.0] Fix ContextCenterPermission and AuditLogs specs broken by the article-permission and Audit Logs backports - #38887

Merged
ShaileshParmar11 merged 2 commits into
2.0from
ShaileshParmar11/2.0-fix-cc-auditlogs-specs
Nov 26, 2026
Merged

ShaileshParmar11 merged 2 commits into
2.0from
ShaileshParmar11/2.0-fix-cc-auditlogs-specs

Conversation

@ShaileshParmar11

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes the ContextCenterPermission and AuditLogs Playwright failures on the 2.0 nightly (Collate AUT, 1.12.14 ➡ 2.0, MySQL and PostgreSQL). Two 2.0 backports changed the UI but not these specs. The UI is correct in both cases; the specs were stale.

ContextCenterPermission (3 tests: view-only, ViewAll-only and Data Consumer users see edit-owner-btn)

AuditLogs (should display audit log entry in UI after entity creation)

Other branches. main (#38818) and 2.1 (#38819) have the same article-header change and the same ContextCenterPermission spec, so they will fail the same way. I'll fix those in follow-up PRs. AuditLogs is already correct on main.

Counterpart. The third failure on this nightly, SSOTestLogin, is a real Collate bug: Collate 2.0's index.tsx lacks the Test Login popup guard. Fixed by the Collate 2.0 backport PR linked in a comment below.

Type of change:

  • Bug fix

High-level design:

N/A — test-only change, 2 files.

Tests:

Use cases covered

  • A view-only, ViewAll-only or Data Consumer user cannot change the owners of an article that has an owner.
  • The Audit Logs list shows the created glossary in the entry's change summary.

Unit tests

Not applicable (Playwright specs only).

Backend integration tests

  • Not applicable (no backend changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Files updated: playwright/e2e/Features/ContextCenterPermission.spec.ts, playwright/e2e/Pages/AuditLogs.spec.ts
  • Local checks: prettier clean, and tsc --noEmit -p playwright/tsconfig.json reports no errors in either file.
  • Not run locally: the specs themselves (they need a running 2.0 stack). The next 2.0 nightly verifies them. ESLint was not run locally because the 2.0 config does not load with the main node_modules I had; CI ui-checkstyle covers it.

Manual testing performed

  1. Read the failing traces from nightly runs 45833809256 (MySQL) and 45833824926 (PostgreSQL): permission and article responses for ContextCenterPermission, and DOM snapshots for AuditLogs.
  2. Confirmed in OrganizationPolicy.json on 2.0 that OrganizationPolicy-NoOwner-Rule grants EditOwners under noOwner().
  3. Checked that no other test in ContextCenterPermission depends on the shared article having no owner. The EditAll user still sees edit-owner-btn through EditAll.

UI screen recording / screenshots:

Not applicable (test-only change).

Checklist:

  • I have read the CONTRIBUTING document.
  • Self-reviewed against REVIEW.md at 2e9a383. No 🔴 findings. Test map: both changed files are specs (they are their own tests).
  • My PR title is Fixes <issue-number>: <short explanation> — test fix, no issue (skip-pr-checks).
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

🤖 Generated with Claude Code

…backports

Two 2.0 backports changed the UI without updating these specs, so they fail
on every 2.0 nightly.

- ContextCenterPermission: #38821 (#38800) gates the article header on the
  article's own permission. The spec's article had no owner, and
  OrganizationPolicy-NoOwner-Rule lets any user set the owner of an unowned
  asset, so edit-owner-btn is now correctly shown to view-only and Data
  Consumer users. Give the article an owner (the admin) so the check is about
  EditOwners again, and open that article in the role-based tests instead of
  whichever article is first in the tree.
- AuditLogs: #38687 (#38290) renders the change summary with
  data-testid="description-content" instead of the description-content class.
  Select it by test id, as main's spec already does.
@ShaileshParmar11
ShaileshParmar11 requested a review from a team as a code owner November 26, 2026 16:23
@ShaileshParmar11 ShaileshParmar11 added the skip-pr-checks Bypass PR metadata validation check label Nov 26, 2026
@ShaileshParmar11
ShaileshParmar11 requested review from karthicksharan and removed request for a team November 26, 2026 16:23
@ShaileshParmar11

Copy link
Copy Markdown
Contributor Author

Counterpart: open-metadata/openmetadata-collate#9006 backports the Collate SSO Test Login popup fix (#8624) to 2.0, which fixes the third failure on the same nightly (SSOTestLogin).

@ShaileshParmar11

Copy link
Copy Markdown
Contributor Author

ContextCenterPermission fix ported to main in #38888 and 2.1 in #38889.

@gitar-bot

gitar-bot Bot commented Nov 26, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟢 Low risk

The changes only adjust Playwright fixtures, navigation, and a selector; production behavior remains unchanged, limiting impact to test coverage.

Updates the ContextCenterPermission and AuditLogs Playwright specs to match the 2.0 UI changes: the owner-button test now uses an article with a known owner, and the audit log locator switches to getByTestId('description-content'). 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

@ShaileshParmar11
ShaileshParmar11 merged commit 15aa84e into 2.0 Nov 26, 2026
58 of 59 checks passed
@ShaileshParmar11
ShaileshParmar11 deleted the ShaileshParmar11/2.0-fix-cc-auditlogs-specs branch November 26, 2026 17:05
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