Skip to content

Commit ce30f80

Browse files
Get rid of using random UUID for appId
1 parent ab67e59 commit ce30f80

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/end-to-end/passwordless.test.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import {
4040
} from "../helpers";
4141

4242
import { TEST_CLIENT_BASE_URL, SOMETHING_WENT_WRONG_ERROR } from "../constants";
43-
import { randomUUID } from "crypto";
43+
import { tryEmailPasswordSignUp, tryPasswordlessSignInUp } from "./mfa.helpers";
4444

4545
/*
4646
* Tests.
@@ -349,9 +349,8 @@ export function getPasswordlessTestCases({ authRecipe, logId, generalErrorRecipe
349349
const contactMethod = "EMAIL_OR_PHONE";
350350

351351
before(async function () {
352-
const appId = randomUUID();
353352
const coreUrl = await setupCoreApp({
354-
appId,
353+
appId: "test-app-id",
355354
coreConfig: {
356355
passwordless_code_lifetime: 4000,
357356
passwordless_max_code_input_attempts: 3,
@@ -543,15 +542,14 @@ export function getPasswordlessTestCases({ authRecipe, logId, generalErrorRecipe
543542
function getTestCases(contactMethod, inputName, contactInfo) {
544543
let accountLinkingSupported;
545544
let coreUrl;
546-
const appId = randomUUID();
547545
const coreConfig = {
548546
passwordless_code_lifetime: 4000,
549547
passwordless_max_code_input_attempts: 3,
550548
};
551549

552550
before(async function () {
553551
coreUrl = await setupCoreApp({
554-
appId,
552+
appId: "test-app-id",
555553
coreConfig,
556554
});
557555
});

0 commit comments

Comments
 (0)