test(e2e): read a WHO-5 check-in word for word in German and Brazilian Portuguese

The check-in journeys anchor on data attributes so they read the same in
every language, which leaves the words themselves unchecked. Two journeys on
the wellbeing account now read the stem, the first and last item and the
answer labels in German (the validated WHO translation, reproduced exactly)
and in Brazilian Portuguese (the translation written for the app, with its
note), submit, and check the score on screen against the assessment the
server stored, with its language and kind of wording.
This commit is contained in:
Marc-André Bombeck committed 2026-10-23 13:02:32 +02:00
1 parent 0bf6a54be0
commit 0e9daa51f9
2 files changed
+182 -2

No files matched your search

@@ -47,9 +47,10 @@ const E2E = join(process.cwd(), "e2e");
/**
* The `@critical` tests found in `e2e/*.spec.ts`. Pinned at the real count:
* the set is the release gate, so a journey that loses its tag is a change
* somebody should see here.
* somebody should see here. It counts title literals in the source, so a
* title written once inside a loop counts once however many tests it names.
*/
const CRITICAL_TEST_FLOOR = 13;
const CRITICAL_TEST_FLOOR = 14;
/** A test whose title literal carries the tag, however the call is spelled. */
const CRITICAL_TEST =