mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-07 04:12:04 +00:00
The delegated-writes spec checked for the invitation form's level control right after page load, before the form had painted, found nothing and skipped every test on every run, CI included. - Give the journey its own account pair, seeded and reset in global setup, so it no longer invites the same pair as the account-sharing journey (a second live grant between two accounts is refused with 409). - Wait for the form through its data-slot and fail when the WRITE level control is missing instead of skipping. - Revoke the journey's grant in afterAll. - Keep it out of the mobile project in the config rather than through a runtime skip. Add two checks so a skip cannot hide a spec again: - e2e-conditional-skip-guard.test.ts requires every conditional test.skip/test.fixme in e2e/ to carry a reason and refuses a bare test.skip(). - scripts/check-e2e-skipped-specs.mjs reads the Playwright JSON reports of both shards in the e2e gate job and fails when a spec file skipped all of its tests across every project, apart from an allowlist with reasons.
37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
/**
|
|
* Re-export pin for the seeded test-user identity. The cookie jar that
|
|
* authenticates each spec is captured ONCE in `global-setup.ts` and the
|
|
* specs reach for it via `STORAGE_STATE_PATH` directly. We keep this
|
|
* file (instead of a barrel inside global-setup) only so future helpers
|
|
* specific to the spec-side (e.g. multi-user scenarios that need
|
|
* fresh logins) have a natural home.
|
|
*/
|
|
export {
|
|
E2E_USER,
|
|
E2E_OWNER,
|
|
E2E_OWNER_FULL_NAME,
|
|
E2E_GUARDIAN,
|
|
E2E_SCOPE_DELEGATE,
|
|
E2E_SCOPE_RECORDS,
|
|
E2E_LEVEL_RECORDS,
|
|
E2E_DELEGATE_MARKER_KG,
|
|
E2E_OWNER_MARKER_KG,
|
|
STORAGE_STATE_PATH,
|
|
OWNER_STORAGE_STATE_PATH,
|
|
DELEGATE_STORAGE_STATE_PATH,
|
|
SCOPE_DELEGATE_STORAGE_STATE_PATH,
|
|
SCOPE_A11Y_STORAGE_STATE_PATH,
|
|
SCOPE_CAPABILITIES_STORAGE_STATE_PATH,
|
|
FENCE_STORAGE_STATE_PATH,
|
|
FENCE_OFFLINE_STORAGE_STATE_PATH,
|
|
CROSS_TAB_STORAGE_STATE_PATH,
|
|
REPORT_DELEGATE_STORAGE_STATE_PATH,
|
|
REPORT_OWNER_STORAGE_STATE_PATH,
|
|
GUARDIAN_STORAGE_STATE_PATH,
|
|
E2E_WRITE_OWNER,
|
|
E2E_WRITE_OWNER_FULL_NAME,
|
|
E2E_WRITE_DELEGATE,
|
|
WRITE_OWNER_STORAGE_STATE_PATH,
|
|
WRITE_DELEGATE_STORAGE_STATE_PATH,
|
|
} from "./global-setup";
|