Replace xpath-based selectors in test.js with charlie's bare-text and
regex locators per the app-test migration guide. Fixes mocha-app CI
failures from xpath escape-hatch enforcement and exact-text mismatches
on Mastodon's banner and timeline copy.
- Drop `await clearCache()` from login/auth helpers; clearing cache before
every login is no longer necessary now that charlie isolates sessions.
- Replace `logout` helpers with `clearCache` directly in `it()` calls; the
helpers were either thin wrappers around `clearCache()` or did real
navigation that is no longer worth the maintenance.
- Simplify `xpath=//button[text()=...]` / `[contains(., ...)]` button text
selectors to charlie's bare-string (or RegExp for OR-clauses) form.
charlie now treats bare strings as exact-match (was substring) and
RegExp as the explicit fuzzy escape hatch. The 'text=' prefix has
been removed and now throws a migration error from charlie.
Made-with: Cursor
expect.js is unmaintained and unnecessary — Node's built-in assert
module covers all our assertion patterns. This also removes expect.js
from package.json dependencies.
Made-with: Cursor