Skip to content

test(playwright): refresh 2.1 visual baselines for the core-ui icon swap and add missing visual read fixtures - #37657

Closed
shah-harshit wants to merge 6 commits into
2.1from
shah-harshit/visual-baselines-2.1
Closed

shah-harshit wants to merge 6 commits into
2.1from
shah-harshit/visual-baselines-2.1

Conversation

@shah-harshit

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes the visual lane of the 2.1 release-branch nightly. It fails identically on PostgreSQL (43129232095) and MySQL (43129242705): the same 351 tests fail on all three attempts, and 6 of the 7 shards stop at maxFailures: 50, so about 700 more never run. The lane has failed every night since it first ran on 2.1 (Nov 9). This is a test-only fix, so there is no linked issue.

RCA

1. Baselines captured before the icon swap (334 tests). #37237 refreshed the baselines from main@e21b5ffb53f. #37093, which replaced the app's assets/svg icons with core-ui icons (875 files), merged at 03:48Z on Nov 6, and #37237 merged at 06:59Z without re-capturing. In the diff images only the icons are marked: the sidebar, the header, the editor toolbar and the connection-form auth tabs. 98% of these diffs are 1–5% of the pixels. Two baselines also changed size: the Kafka and Redpanda expanded forms now show the secret fields of the Consumer/Schema Registry config (702a646).

Fix: each mismatched baseline is replaced with the first-attempt -actual.png from the PG nightly above. The Expected:/Received: pairs in the job logs map each image to its baseline. These are captures from the CI Linux renderer and the regular UI bundle the lane uses, not local macOS captures.

2. Reads the visual lane has no fixture for (42 errors).

Error Tests Fix
Missing visual read fixture: contextCenter/memories/extractedApproval form-context-article, context-article-* Returns an empty approval preview. The fixture articles have no Unprocessed memories.
Missing visual read fixture: ontologies/<id>/working/validation Governance states › ontology-* Backports the fixtures from #37641 (validation plus the RDF/XML export preview).

Not covered here

About 700 tests never ran in the source run because of the failure cap. Any stale baselines among them, and the tests blocked by the missing fixtures, will show up in this PR's visual lane and are refreshed here from that run.

Type of change:

  • Bug fix

High-level design:

N/A: test fixtures and baseline images only.

Tests:

Playwright

  • This PR's visual lane is the verification. The baselines are Linux-renderer captures and can't be checked on macOS.
  • I compared the diff images side by side for the roles page, form-create-glossary, a connection branch, table-overlay-owners-dark, and the Kafka expanded form. All of them are intended UI changes.
  • Local: yarn lint:playwright: 0 errors. Prettier is clean on visualData.ts.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is descriptive.

🤖 Generated with Claude Code

shah-harshit and others added 5 commits November 12, 2026 14:25
…sual lane

The Context Center memories card now previews extracted-memory approval on
mount, and the visual lane fails any GET it has no fixture for.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…port reads in the visual lane

Backports the visual fixtures from #37641 to 2.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…baseline (revert before merge)"

This reverts commit 651f0f3.
…on 2.1

The baselines refreshed in #37237 were captured from a main build that
predated #37093, which replaced the app's assets/svg icons with core-ui
icons. Every screen showing the sidebar, header, editor toolbar or
connection-form tabs has differed since. Each baseline is replaced with
the first-attempt -actual.png from the 2.1 nightly visual lane (Linux
renderer, regular UI bundle).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shah-harshit
shah-harshit requested a review from a team as a code owner November 12, 2026 10:05
@shah-harshit
shah-harshit requested review from karthicksharan and removed request for a team November 12, 2026 10:05
@shah-harshit shah-harshit added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Nov 12, 2026
@shah-harshit shah-harshit self-assigned this Nov 12, 2026
@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.

@shah-harshit
shah-harshit enabled auto-merge (squash) November 12, 2026 10:40
@gitar-bot

gitar-bot Bot commented Nov 12, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟢 Low risk

The changes only add Playwright visual-data mocks for ontology reads and extracted-memory approval, limiting impact to test fixtures rather than runtime behavior.

Refreshes 2.1 visual baselines for the core-ui icon swap and adds missing visual read fixtures for the context article approval and ontology validation reads, unblocking the failing visual lane. 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

@shah-harshit

Copy link
Copy Markdown
Contributor Author

Not required

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 skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant