fix: address onboarding review feedback
This commit is contained in:
1 parent
dc71084323
commit
2566be2838
72 files changed
+7783
-280
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user