Commit Graph

19 Commits

Author SHA1 Message Date
Joseph Doherty 014038fbbd test(playwright): repair 14 selector-drift failures from two Central UI refactors
All 14 pre-existing Playwright failures triage to selector drift, not rig data,
timing, or application defects — every one is a test-side assumption that two
merged UI refactors invalidated without updating this suite.

`9e243493` (2026-08-11 density sweep + Theme 0.4.1) regrouped page/dialog action
buttons into `btn-group btn-group-sm`, moving the size class off the button and
onto the group. Twelve selectors still pinned `.btn-sm` on the button itself:
ConfigurationAuditLog's Search (4 tests), the Topology Create/Move dialog footers
(3), the Notification Lists row Edit/Delete (2), and the Notification Report row
Retry/Discard (2). The same sweep re-cast SiteForm's per-node subsections from
bare `<h6>` headings to Bootstrap cards, so `h6:has-text('Node A')` matches
nothing (1). Note the swept surfaces are a subset — the recipient table on the
notification-list edit form, OffsetPager, DiffDialog and friends still carry
`.btn-sm` on the button, so the selectors are deliberately asymmetric; the
remaining `.btn-sm` selectors in this suite were each re-verified against current
markup rather than swept along.

`a506b19d` moved TemplateEdit's page-embedded modals onto the DialogService host.
The attribute modal is now the DialogHost modal (`modal fade show d-block`, title
in an h5), so the `:not(.fade)` guard written to exclude DialogHost — plus the
`h6.modal-title` assertion — excluded the very modal under test (2). TemplateEdit
renders no page-local modal any more, so the guard has nothing left to guard.

Comments at each site record why the size class is absent, so a future reader
does not "fix" the selectors back.

Verified: 14 failed / 158 passed baseline -> the 36 tests in the seven affected
classes all green; solution build 0 warnings / 0 errors.
2026-08-15 03:33:51 -04:00
Joseph Doherty 8524a7f746 test(sms-e2e): valid Twilio SID fixture so the create path passes (Gitea #29)
TestAccountSid was 'ACtest123' (AC + 6 chars). The management create
path validates the Account SID against ^AC[0-9a-fA-F]{32}$
(ManagementActor.cs:2205, added 2026-07-10, commit 40088a21) while the
fixture predates the guard (2026-06-19) — so the create was rejected and
the config-card + secret-non-leak assertions have been red/inert since.

Use AC + 32 hex (AC00000000000000000000000000000001) so the create
succeeds and the downstream Auth-Token-non-leak assertion actually runs
again. Unit-level RepositoryCoverageTests keep their short SIDs — they
construct SmsConfiguration directly and never hit the validated path.
2026-07-23 14:03:49 -04:00
Joseph Doherty d6ead8ae62 test(sms): live Playwright E2E for SMS config page + Type selector + Type column (S11) 2026-06-19 11:54:25 -04:00
Joseph Doherty 8270a603d3 test(playwright): update pager/markup selectors to M10 component hooks (INT) 2026-06-18 20:41:43 -04:00
Joseph Doherty 5bc8dbad31 test(playwright): Notification hygiene — scoped pager locator, next-enabled re-assert, role-mapping-delete doc note 2026-06-07 10:22:54 -04:00
Joseph Doherty 70e84a7b79 test(playwright): seed inside try in Notification filter/modal tests for guaranteed cleanup (review fix) 2026-06-07 04:32:16 -04:00
Joseph Doherty b1d7497463 test(playwright): seed inside try in Notification stuck/pagination tests for guaranteed cleanup (review fix) 2026-06-07 04:23:33 -04:00
Joseph Doherty 99a69c1fba test(playwright): Notification Report stuck-only + pagination edge cases (Wave 4) 2026-06-07 04:18:04 -04:00
Joseph Doherty 5774b30d0d test(playwright): scope Notification detail-modal title selector to the open modal (review fix) 2026-06-07 04:15:25 -04:00
Joseph Doherty 42f38996a9 test(playwright): Notification Report filter-combo + detail-modal edge cases (Wave 4) 2026-06-07 04:12:02 -04:00
Joseph Doherty 5c190885da test(playwright): generalize NotificationDataSeeder for status/created-at (Wave 4 prep)
Add InsertNotificationAsync with explicit status/createdAt parameters so tests
can seed back-dated Retrying rows that satisfy the IsStuck derived property
(Status ∈ {Pending,Retrying} && CreatedAt < now − 10 min). Refactor
InsertParkedNotificationAsync to delegate to it, preserving its exact public
signature and producing identical SQL for existing callers.
2026-06-07 03:31:28 -04:00
Joseph Doherty 4cfe950232 test(playwright): drop hollow SMTP restore, make render assert web-first (review fix) 2026-06-06 15:00:08 -04:00
Joseph Doherty 3b1f76b7df test(playwright): add SMTP config validation + render coverage (Wave 3) 2026-06-06 14:52:34 -04:00
Joseph Doherty d03aa3c556 test(playwright): harden NotificationList toast + nav assertions (review fix) 2026-06-06 14:49:39 -04:00
Joseph Doherty b48741f903 test(playwright): add NotificationList CRUD + recipient + validation coverage (Wave 3) 2026-06-06 14:42:45 -04:00
Joseph Doherty d61c9212d6 test(playwright): add NotificationKpis render + refresh coverage (Wave 3) 2026-06-06 14:36:54 -04:00
Joseph Doherty 667d141f1a test(e2e): unify toast assertion + extract shared PlaywrightDbConnection (review cleanups) 2026-06-05 11:00:27 -04:00
Joseph Doherty fac0bcbb01 test(e2e): use web-first toast assertion in notification tests (review fix) 2026-06-05 10:47:06 -04:00
Joseph Doherty 4d55c0ac95 test(e2e): cover notification retry/discard + parked-messages query 2026-06-05 10:40:06 -04:00