mirror of
https://github.com/immich-app/immich.git
synced 2025-12-09 15:03:54 +09:00
chore: web e2e improvements (#7155)
This commit is contained in:
@@ -35,7 +35,6 @@ export enum AppRoute {
|
||||
PARTNERS = '/partners',
|
||||
|
||||
AUTH_LOGIN = '/auth/login',
|
||||
AUTH_LOGOUT = '/auth/logout',
|
||||
AUTH_REGISTER = '/auth/register',
|
||||
AUTH_CHANGE_PASSWORD = '/auth/change-password',
|
||||
AUTH_ONBOARDING = '/auth/onboarding',
|
||||
|
||||
@@ -20,7 +20,7 @@ export async function handleError(error: unknown, message: string) {
|
||||
return;
|
||||
}
|
||||
|
||||
console.error(`[handleError]: ${message}`, error);
|
||||
console.error(`[handleError]: ${message}`, error, (error as Error)?.stack);
|
||||
|
||||
let serverMessage = await getServerErrorMessage(error);
|
||||
if (serverMessage) {
|
||||
|
||||
@@ -7,12 +7,6 @@
|
||||
import type { PageData } from './$types';
|
||||
|
||||
export let data: PageData;
|
||||
|
||||
const onSuccessHandler = async () => {
|
||||
await fetch(AppRoute.AUTH_LOGOUT, { method: 'POST' });
|
||||
|
||||
goto(AppRoute.AUTH_LOGIN);
|
||||
};
|
||||
</script>
|
||||
|
||||
<FullscreenContainer title={data.meta.title}>
|
||||
@@ -24,5 +18,5 @@
|
||||
enter the new password below.
|
||||
</p>
|
||||
|
||||
<ChangePasswordForm user={$user} on:success={onSuccessHandler} />
|
||||
<ChangePasswordForm user={$user} on:success={() => goto(AppRoute.AUTH_LOGIN)} />
|
||||
</FullscreenContainer>
|
||||
|
||||
Reference in New Issue
Block a user