From 35a788c55c409c58bfd5add3cdd4b3ca17296ccc Mon Sep 17 00:00:00 2001 From: amitbadala Date: Thu, 16 Nov 2023 13:49:58 +0530 Subject: [PATCH] Remove unecessary code --- test/end-to-end/signin.test.js | 3 --- test/end-to-end/signup.test.js | 2 -- 2 files changed, 5 deletions(-) diff --git a/test/end-to-end/signin.test.js b/test/end-to-end/signin.test.js index 6a71798cb..8cac767bd 100644 --- a/test/end-to-end/signin.test.js +++ b/test/end-to-end/signin.test.js @@ -773,8 +773,6 @@ describe("SuperTokens SignIn", function () { request.continue(); } }; - - await page.setRequestInterception(true); page.on("request", requestHandler); try { @@ -785,7 +783,6 @@ describe("SuperTokens SignIn", function () { assert.deepStrictEqual(formFieldErrors, ["Please add email", "Field is not optional"]); } finally { page.off("request", requestHandler); - await page.setRequestInterception(false); } assert.ok(!apiCallMade, "Empty form making API request to signin"); diff --git a/test/end-to-end/signup.test.js b/test/end-to-end/signup.test.js index b964160fc..c16c12894 100644 --- a/test/end-to-end/signup.test.js +++ b/test/end-to-end/signup.test.js @@ -488,7 +488,6 @@ describe("SuperTokens SignUp", function () { } }; - await page.setRequestInterception(true); page.on("request", requestHandler); try { @@ -503,7 +502,6 @@ describe("SuperTokens SignUp", function () { ]); } finally { page.off("request", requestHandler); - await page.setRequestInterception(false); } assert.ok(!apiCallMade, "Empty form making signup API request");