Skip to content

Commit 2ff7be9

Browse files
Merge branch 'ci/github-actions/auth-react/v0.41.0' of github.com-supertokens:supertokens/supertokens-auth-react into ci/github-actions/auth-react/v0.41.0
2 parents 8a62a20 + c0b3235 commit 2ff7be9

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

test/end-to-end/mfa.signin.test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
113113
it("sign in with email-otp (auto-setup)", async function () {
114114
const email = await getTestEmail();
115115

116-
setupST({
116+
await setupST({
117117
...appConfig,
118118
mfaInfo: {
119119
requirements: ["otp-email"],
@@ -139,7 +139,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
139139
const email = await getTestEmail();
140140
const phoneNumber = getTestPhoneNumber();
141141

142-
setupST({
142+
await setupST({
143143
...appConfig,
144144
mfaInfo: {
145145
requirements: [{ oneOf: ["otp-email", "otp-phone"] }],
@@ -163,7 +163,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
163163
});
164164

165165
it("set up otp-email and sign-in", async function () {
166-
setupST({
166+
await setupST({
167167
...appConfig,
168168
mfaInfo: {
169169
requirements: [],
@@ -179,7 +179,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
179179

180180
await logout(page);
181181

182-
setupST({
182+
await setupST({
183183
...appConfig,
184184
mfaInfo: {
185185
requirements: [{ oneOf: ["otp-email"] }],
@@ -203,15 +203,15 @@ describe("SuperTokens SignIn w/ MFA", function () {
203203
});
204204

205205
it("set up totp and sign-in", async function () {
206-
setupST({
206+
await setupST({
207207
...appConfig,
208208
mfaInfo: {
209209
requirements: [],
210210
},
211211
});
212212
const email = await getTestEmail();
213213

214-
setupST({
214+
await setupST({
215215
...appConfig,
216216
mfaInfo: {
217217
requirements: [{ oneOf: ["otp-email", "totp"] }],
@@ -245,7 +245,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
245245

246246
it("should show access denied if the only next option is an unknown factor id", async () => {
247247
const email = await getTestEmail();
248-
setupST({
248+
await setupST({
249249
...appConfig,
250250
mfaInfo: {
251251
requirements: ["unknown"],

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,11 @@ export function getPasswordlessTestCases({ authRecipe, logId, generalErrorRecipe
112112
await backendHook("before");
113113
({ browser, page } = await initBrowser(contactMethod, consoleLogs, authRecipe));
114114
const coreUrl = await setupCoreApp();
115-
await setupST({ coreUrl, passwordlessFlowType: "USER_INPUT_CODE", passwordlessContactMethod: contactMethod });
115+
await setupST({
116+
coreUrl,
117+
passwordlessFlowType: "USER_INPUT_CODE",
118+
passwordlessContactMethod: contactMethod,
119+
});
116120
});
117121

118122
after(async function () {
@@ -463,7 +467,11 @@ export function getPasswordlessTestCases({ authRecipe, logId, generalErrorRecipe
463467
disablePhoneGuess: true,
464468
}));
465469
const coreUrl = await setupCoreApp();
466-
await setupST({ coreUrl, passwordlessFlowType: "USER_INPUT_CODE", passwordlessContactMethod: contactMethod });
470+
await setupST({
471+
coreUrl,
472+
passwordlessFlowType: "USER_INPUT_CODE",
473+
passwordlessContactMethod: contactMethod,
474+
});
467475
});
468476

469477
after(async function () {

0 commit comments

Comments
 (0)