From fb5ee4acaf7b753d5d1172e6c7d30eec91a8c738 Mon Sep 17 00:00:00 2001 From: Mihaly Lengyel Date: Mon, 24 Jun 2024 17:19:11 +0200 Subject: [PATCH] test: add missing cleanup --- test/end-to-end/signin.test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/end-to-end/signin.test.js b/test/end-to-end/signin.test.js index 30fd6b2db..46a4fcbad 100644 --- a/test/end-to-end/signin.test.js +++ b/test/end-to-end/signin.test.js @@ -112,6 +112,10 @@ describe("SuperTokens SignIn", function () { }); describe("SignIn test ", function () { + afterEach(async function () { + await page.evaluate(() => localStorage.removeItem("signoutOnSessionNotExists")); + }); + it("Should contain email and password fields only", async function () { const inputNames = await getInputNames(page); assert.deepStrictEqual(inputNames, ["email", "password"]);