From 6742a5494dde27de40a2080af7af56e664727b6e Mon Sep 17 00:00:00 2001 From: kkalev Date: Sun, 26 Nov 2023 15:08:06 +0200 Subject: [PATCH] we always call the english page --- gunet.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gunet.js b/gunet.js index 4afb5a3..d4600ec 100644 --- a/gunet.js +++ b/gunet.js @@ -133,13 +133,15 @@ exports.assertNoTicketGrantingCookie = async (page) => { } exports.casLogin = async (page, url, user, password, cas_type = "cas") => { + console.log(`Going to ${url}`); await page.goto(url); await page.waitForTimeout(1000) await this.loginWith(page, user, password); await this.assertTicketGrantingCookie(page); await page.waitForTimeout(2000) if (cas_type === 'cas') { - await this.assertInnerText(page, '#content div h2', "Επιτυχής Σύνδεση"); + await this.assertInnerText(page, '#content div h2', "Log In Successful"); + // await this.assertInnerText(page, '#content div h2', "Επιτυχής Σύνδεση"); } else if (cas_type === 'simple-cas') { await this.assertInnerText(page, '#content div h2', "Log In Successful");