test: realign verification baseline and supporting tests

This commit is contained in:
Your Name
2026-05-28 15:19:34 +08:00
parent 6be90ddff8
commit 260046a581
31 changed files with 454 additions and 1936 deletions

View File

@@ -18,7 +18,7 @@ vi.mock('@/services/auth', () => ({
function renderActivateAccountPage(initialEntry: string) {
return render(
<MemoryRouter initialEntries={[initialEntry]}>
<MemoryRouter future={{ v7_startTransition: true, v7_relativeSplatPath: true }} initialEntries={[initialEntry]}>
<Routes>
<Route path="/activate-account" element={<ActivateAccountPage />} />
</Routes>

View File

@@ -17,7 +17,7 @@ vi.mock('@/services/auth', () => ({
function renderForgotPasswordPage() {
return render(
<MemoryRouter initialEntries={['/forgot-password']}>
<MemoryRouter future={{ v7_startTransition: true, v7_relativeSplatPath: true }} initialEntries={['/forgot-password']}>
<Routes>
<Route path="/forgot-password" element={<ForgotPasswordPage />} />
</Routes>

View File

@@ -100,7 +100,7 @@ function renderLoginPage(
} = '/login',
) {
return render(
<MemoryRouter initialEntries={[initialEntry]}>
<MemoryRouter future={{ v7_startTransition: true, v7_relativeSplatPath: true }} initialEntries={[initialEntry]}>
<AuthContext.Provider value={authContextValue}>
<LoginPage />
</AuthContext.Provider>

View File

@@ -25,7 +25,7 @@ const authContextValue: AuthContextValue = {
function renderOAuthCallbackPage(entry: string) {
return render(
<MemoryRouter initialEntries={[entry]}>
<MemoryRouter future={{ v7_startTransition: true, v7_relativeSplatPath: true }} initialEntries={[entry]}>
<AuthContext.Provider value={authContextValue}>
<OAuthCallbackPage />
</AuthContext.Provider>

View File

@@ -16,7 +16,7 @@ vi.mock('@/services/auth', () => ({
function renderResetPasswordPage(initialEntry: string) {
return render(
<MemoryRouter initialEntries={[initialEntry]}>
<MemoryRouter future={{ v7_startTransition: true, v7_relativeSplatPath: true }} initialEntries={[initialEntry]}>
<Routes>
<Route path="/reset-password" element={<ResetPasswordPage />} />
</Routes>