Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
amitbadala committed Nov 17, 2023
1 parent 591ceb7 commit 746356a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions test/end-to-end/signin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,6 @@ describe("SuperTokens SignIn", function () {

describe("nonOptionalErrorMsg", function () {
it("Should be displayed on a blank form submit", async function () {
// await page.evaluate(() => localStorage.removeItem("SHOW_SIGNIN_DEFAULT_FIELDS"));

// set cookie and reload which loads the form with custom field
await page.evaluate(() =>
window.localStorage.setItem("SIGNIN_SETTING_TYPE", "FIELDS_WITH_NON_OPTIONAL_ERROR_MESSAGE")
Expand Down
2 changes: 0 additions & 2 deletions test/end-to-end/signup.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -742,8 +742,6 @@ describe("SuperTokens SignUp", function () {
pageErrorMessage = err.message;
});

// await page.evaluate(() => window.localStorage.removeItem("INCORRECT_GETDEFAULT"));
// await page.evaluate(() => window.localStorage.removeItem("INCORRECT_ONCHANGE"));
await page.evaluate(() =>
window.localStorage.setItem("SIGNUP_SETTING_TYPE", "INCORRECT_NON_OPTIONAL_ERROR_MSG")
);
Expand Down
5 changes: 0 additions & 5 deletions test/end-to-end/thirdpartyemailpassword.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,6 @@ describe("SuperTokens Third Party Email Password", function () {
});

it("Check on blank form submit nonOptionalErrorMsg gets displayed as expected", async function () {
// await page.evaluate(() => window.localStorage.removeItem("SHOW_SIGNIN_DEFAULT_FIELDS"));

// set cookie and reload which loads the form with custom field
await page.evaluate(() =>
window.localStorage.setItem("SIGNIN_SETTING_TYPE", "FIELDS_WITH_NON_OPTIONAL_ERROR_MESSAGE")
Expand Down Expand Up @@ -898,7 +896,6 @@ describe("SuperTokens Third Party Email Password", function () {
});

it("Check if non-string params to onChange throws error", async function () {
// await page.evaluate(() => window.localStorage.removeItem("INCORRECT_GETDEFAULT"));
await page.evaluate(() => window.localStorage.setItem("SIGNUP_SETTING_TYPE", "INCORRECT_ONCHANGE"));
await page.reload({
waitUntil: "domcontentloaded",
Expand Down Expand Up @@ -928,8 +925,6 @@ describe("SuperTokens Third Party Email Password", function () {
pageErrorMessage = err.message;
});

// await page.evaluate(() => window.localStorage.removeItem("INCORRECT_GETDEFAULT"));
// await page.evaluate(() => window.localStorage.removeItem("INCORRECT_ONCHANGE"));
await page.evaluate(() =>
window.localStorage.setItem("SIGNUP_SETTING_TYPE", "INCORRECT_NON_OPTIONAL_ERROR_MSG")
);
Expand Down

0 comments on commit 746356a

Please sign in to comment.