Skip to content

Follow the redesigned site selector dropdown in the UI test - #276

Draft
tzi wants to merge 1 commit into
6.x-devfrom
design-system-site-selector-dropdown
Draft

Follow the redesigned site selector dropdown in the UI test#276
tzi wants to merge 1 commit into
6.x-devfrom
design-system-site-selector-dropdown

Conversation

@tzi

@tzi tzi commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Description

Points the site selector clicks in the UI test at the redesigned dropdown panel.

Impact

None visible to users: this repository only changes a UI test selector, which follows the site selector redesign in core.

Step by step tests

With the core branch pinned

  1. Check out Design System - Redesign site selector dropdown matomo#24987 (design-system-site-selector-dropdown), which pins this branch as plugins/CustomAlerts.
  2. Run ddev matomo:console tests:run-ui --plugin=CustomAlerts.
    👁️ All specs pass, including the ones that switch site through the selector.

Why the selector changed

  1. Open tests/UI/CustomAlerts_spec.js.
    👁️ Both site selector clicks now target .siteSelector .piwikSelector__dropdown li instead of .siteSelector .dropdown li.
    👁️ The core PR drops the dropdown class from the panel, so the old selector matches no list item and the click silently does nothing.

Against core 6.x-dev

  1. Run the same suite with core on 6.x-dev instead.
    👁️ Expect the site-switching specs to fail: the new selector only exists with the core PR.

Checklist

  • [✔] I have understood, reviewed, and tested all AI outputs before use
  • [✔] All AI instructions respect security, IP, and privacy rules

The site selector dropdown no longer carries the legacy `dropdown` class;
it is now a `.piwikSelector__dropdown` wrapper around `.mtm-dropdownPanel`.
Without this the jQuery selector matches nothing, the click never happens and
the alert-condition screenshot captures a stale site.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant