fix: address onboarding review feedback

This commit is contained in:
Thomas Camlong authored and ajnart committed 2026-08-14 01:20:27 +02:00
1 parent 07770e862c
commit d89bf25e21
72 files changed
+7783 -280

No files matched your search

+11
View File
@@ -72,6 +72,17 @@ describe("locale and onboarding proxy", () => {
expect(mocks.getOnboardingStep).not.toHaveBeenCalled();
});
it("does not treat nested routes ending in init or auth/login as onboarding access routes", async () => {
mocks.getOnboardingStep.mockResolvedValue("setup");
const { proxy } = await loadProxy();
const initResponse = await proxy(createRequest("/en/boards/init"));
const loginResponse = await proxy(createRequest("/en/settings/auth/login"));
expect(initResponse.headers.get("location")).toBe("http://localhost/init");
expect(loginResponse.headers.get("location")).toBe("http://localhost/init");
});
it("uses the configured default locale for a missing or invalid locale cookie", async () => {
mocks.getDefaultLocale.mockResolvedValue("de");
const { proxy } = await loadProxy();