diff --git a/app/ui/user/sign-in-form/sign-in-form.stories.tsx b/app/ui/user/sign-in-form/sign-in-form.stories.tsx index ad8596e2..1a371055 100644 --- a/app/ui/user/sign-in-form/sign-in-form.stories.tsx +++ b/app/ui/user/sign-in-form/sign-in-form.stories.tsx @@ -8,12 +8,24 @@ import { resetMockDB, mockDatabase } from '@/app/mocks/db.mock'; const meta = { title: 'ui/user/SignInForm', component: SignInForm, - decorators: [ - (Story) => ( -
- -
- ), + decorators: [ + (Story) => { + const beforeEach = () => { + resetMockDB(); + mockDatabase.createUser({ + authId: 'testtest', + password: 'test1234!', + studentNumber: '60000001', + engLv: 'ENG12', + }); + }; + beforeEach(); + return ( +
+ +
+ ); + }, ], args: { onNext: fn(),