chore: web e2e improvements (#7155)

This commit is contained in:
Jason Rasmussen
2024-02-16 16:31:22 -05:00
committed by GitHub
parent 67b1675850
commit a24f3805c9
5 changed files with 19 additions and 17 deletions
@@ -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>