diff --git a/gunet.js b/gunet.js index 472c6d8..7be07b1 100644 --- a/gunet.js +++ b/gunet.js @@ -137,10 +137,10 @@ exports.casLogin = async (page, user, password, cas_lang = "en") => { await this.loginWith(page, user, password); await this.assertTicketGrantingCookie(page); await page.waitForTimeout(2000) - if (cas_type === 'en') { + if (cas_lang === 'en') { await this.assertInnerText(page, '#content div h2', "Log In Successful"); } - else if (cas_type === 'el') { + else if (cas_lang === 'el') { await this.assertInnerText(page, '#content div h2', "Επιτυχής Σύνδεση"); } }