From a4e3f1a32333297cbbfcc3f20ca7e6b14ab3570a Mon Sep 17 00:00:00 2001 From: Mihaly Lengyel Date: Thu, 5 Oct 2023 19:55:02 +0200 Subject: [PATCH] test: clean up account linking example test --- examples/with-account-linking/backend/package.json | 2 +- examples/with-account-linking/test/basic.test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/with-account-linking/backend/package.json b/examples/with-account-linking/backend/package.json index 59a4adeee..b8caea0aa 100644 --- a/examples/with-account-linking/backend/package.json +++ b/examples/with-account-linking/backend/package.json @@ -13,7 +13,7 @@ "helmet": "^5.1.0", "morgan": "^1.10.0", "npm-run-all": "^4.1.5", - "supertokens-node": "github:supertokens/supertokens-node#account-linking", + "supertokens-node": "^16.2.0", "ts-node-dev": "^2.0.0", "typescript": "^4.7.2" }, diff --git a/examples/with-account-linking/test/basic.test.js b/examples/with-account-linking/test/basic.test.js index b63fd29fa..b7e05fbd2 100644 --- a/examples/with-account-linking/test/basic.test.js +++ b/examples/with-account-linking/test/basic.test.js @@ -72,7 +72,7 @@ describe("SuperTokens Example Basic tests", function () { before(async function () { browser = await puppeteer.launch({ args: ["--no-sandbox", "--disable-setuid-sandbox"], - headless: false, + headless: true, }); page = await browser.newPage(); }); @@ -186,7 +186,7 @@ async function checkLoginMethods(page, expectedLoginMethods) { const className = await classNameProp.jsonValue(); const method = className.split(" ")[0]; const contactInfo = (await (await div.$(".contactInfo")).evaluate((el) => el.textContent)).trim(); - console.log({ expectedLoginMethods, method, contactInfo }); + assert( expectedLoginMethods.some( (m) =>