mirror of
https://github.com/hanzoai/team.git
synced 2026-09-30 01:57:35 +00:00
* Fix flaky email sort test by ignoring punctuation in localeCompare
PostgreSQL's en_US.UTF-8 collation ignores hyphens at the primary sort
level, but JS localeCompare() on a C-locale CI runner uses byte order,
causing the expected and actual sort orders to diverge for emails
containing hyphens. Passing ignorePunctuation:true aligns JS collation
with Postgres behavior.
* E2E/Cypress: re-enable CYPRESS_* env var overrides
allowCypressEnv: false was introduced in the v15.13 upgrade (PR #36091)
but broke the existing CYPRESS_adminUsername / CYPRESS_adminPassword
override mechanism that local and CI runners depend on.
* E2E/Cypress: fix MM-T1508 accessibility image test flakiness
The test was failing because the admin user could have a stale
compact display mode preference from a previous spec, causing
post avatars to render with pointer-events: none and blocking
the .status-wrapper click.
Two fixes:
- resetUserPreference() now resets message_display to 'clean'
so compact mode doesn't leak across spec files
- accessibility_image_spec before() now runs as a fresh user
with default preferences rather than the shared admin account
(cherry picked from commit 5d2a8ba29c)
Co-authored-by: Jesse Hallam <[email protected]>