Overview

Discovered in #3530351: Decouple image+video (URI) shape matching from specific image+video file types/extensions. This bug makes that MR harder to understand.

#3535453: Create an Image SDC that can be included by other SDCs started using Drupal 11.3's new noUi: true support (#3535958: Allow SDCs to be marked to be excluded from UI).

It uses it for 2 SDCs:

Great!

But because noUi: true only landed in 11.3, not in 11.2 (which XB must support, because 11.3 won't be out at DrupalCon Vienna), it's tricky to actually support this. And hence … our e2e tests are actually asserting that both of these SDCs do appear in the UI 😅🐛

Proposed resolution

Update test expectations + fix.

User interface changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

wim leers created an issue. See original summary.

wim leers’s picture

Issue summary: View changes
wim leers’s picture

WTF, the snapshot tests still passed?!

Investigated, and turns out this is because Playwright defaults to saying "yep, this is valid", if the expectation is a subset of the actual! 🤯🫠

Looks like we need /children: deep-equal everywhere? 😅

Out of scope here, opening new issue for it …

EDIT: done: #3543779: CI: Playwright ARIA snapshot testing is highly misleading — subsets are considered valid.

wim leers’s picture

Assigned: wim leers » penyaskito
Status: Active » Needs review

This is definitely on me — I should've spotted this in my reviews of #3535453: Create an Image SDC that can be included by other SDCs!

Should be fully green now!

penyaskito’s picture

Status: Needs review » Reviewed & tested by the community

RTBC if green

wim leers’s picture

Assigned: penyaskito » Unassigned
Status: Reviewed & tested by the community » Fixed

  • wim leers committed 66754b48 on 1.x
    Issue #3543770 by wim leers, penyaskito: `noUi: true` SDCs do still show...
fjgarlin’s picture

Disregard comment. Fixing indexing issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.