Add release headers service, runtime-aware API header handling, and i18n updates for release configuration

- Implement `releaseHeaders.js` to manage release-related HTTP headers.
- Update requests to include runtime-based release headers.
- Extend i18n phrases across multiple locales for release runtime and configuration labels.
- Enhance unit tests for header building and API availability error handling.
This commit is contained in:
Jeppe Bundgaard
2026-05-20 17:52:54 +02:00
parent 130cc2fc10
commit ea8db593c5
43 changed files with 3191 additions and 171 deletions
@@ -29,6 +29,19 @@ function getLiveSettings() {
test.describe.configure({ mode: "serial" });
test("api-v2 gateway ping serves a trusted TLS API response", async ({ request }) => {
const response = await request.get("https://api-v2.truckwash.io/ping");
const body = await response.json();
expect(response.ok()).toBeTruthy();
expect(body).toMatchObject({
success: true,
data: {
message: "pong",
},
});
});
test.describe("Live smoke release gate", () => {
test.skip(!liveSmokeEnabled, "Set PLAYWRIGHT_BASE_URL and seeded live credentials to run the live smoke gate.");