Skip to content

Commit 981829a

Browse files
committed
More resilient tests
1 parent 548ba88 commit 981829a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/e2e/tests/backend/endpoints/api/v1/contact-channels/send-verification-code.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { wait } from "@stackframe/stack-shared/dist/utils/promises";
12
import { it } from "../../../../../helpers";
23
import { Auth, ContactChannels, backendContext, niceBackendFetch } from "../../../../backend-helpers";
34

@@ -35,6 +36,7 @@ it("can't send a verification code while logged out", async ({ expect }) => {
3536
it("should send a verification code per e-mail", async ({ expect }) => {
3637
await Auth.Password.signUpWithEmail();
3738
await ContactChannels.sendVerificationCode();
39+
await wait(1000);
3840
expect(await backendContext.value.mailbox.fetchMessages({ noBody: true })).toMatchInlineSnapshot(`
3941
[
4042
MailboxMessage {

0 commit comments

Comments
 (0)