Skip to content

Commit 6e6ee2a

Browse files
Merge branch 'ci/github-actions/auth-react/v0.47.0' of github.com-supertokens:supertokens/supertokens-auth-react into ci/github-actions/auth-react/v0.47.0
2 parents 9802413 + 5003aee commit 6e6ee2a

File tree

2 files changed

+8
-58
lines changed

2 files changed

+8
-58
lines changed

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

Lines changed: 8 additions & 8 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"],
@@ -258,7 +258,7 @@ describe("SuperTokens SignIn w/ MFA", function () {
258258
});
259259

260260
it("should throw error if there are no valid next options", async () => {
261-
setupST({
261+
await setupST({
262262
...appConfig,
263263
mfaInfo: {
264264
requirements: ["unknown"],

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

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1882,56 +1882,6 @@ export function getPasswordlessTestCases({ authRecipe, logId, generalErrorRecipe
18821882
await waitForSTElement(page, "[data-supertokens~=input][name=userInputCode]");
18831883
});
18841884
});
1885-
1886-
if (authRecipe === "all") {
1887-
describe("with emailpassword combo", () => {
1888-
before(async function () {
1889-
await backendHook("before");
1890-
await setupST({
1891-
coreUrl,
1892-
passwordlessFlowType: "USER_INPUT_CODE",
1893-
passwordlessContactMethod: contactMethod,
1894-
});
1895-
({ browser, page } = await initBrowser(contactMethod, consoleLogs, authRecipe, undefined));
1896-
if (authRecipe === "all") {
1897-
await tryEmailPasswordSignUp(page, registeredEmailWithPass);
1898-
}
1899-
});
1900-
1901-
after(async function () {
1902-
await browser?.close();
1903-
await backendHook("after");
1904-
});
1905-
1906-
beforeEach(async function () {
1907-
await clearBrowserCookiesWithoutAffectingConsole(page, consoleLogs);
1908-
1909-
await page.evaluate(() => localStorage.removeItem("supertokens-passwordless-loginAttemptInfo"));
1910-
await page.evaluate(() => localStorage.removeItem("SHOW_GENERAL_ERROR"));
1911-
1912-
consoleLogs.length = 0;
1913-
});
1914-
1915-
it("should navigate to the sign in page when the user clicks on the forgot password link", async function () {
1916-
await page.goto(`${TEST_CLIENT_BASE_URL}/auth`);
1917-
1918-
await setInputValues(page, [{ name: "email", value: registeredEmailWithPass }]);
1919-
await submitForm(page);
1920-
1921-
const testVal = "nav check" + Date.now();
1922-
1923-
await page.evaluate((testVal) => {
1924-
window.testVal = testVal;
1925-
}, testVal);
1926-
1927-
await clickForgotPasswordLink(page);
1928-
await waitForUrl(page, "/auth/reset-password");
1929-
1930-
const testValAfterNav = await page.evaluate(() => window.testVal);
1931-
assert.strictEqual(testVal, testValAfterNav);
1932-
});
1933-
});
1934-
}
19351885
}
19361886
}
19371887

0 commit comments

Comments
 (0)