Skip to content

Commit

Permalink
we always call the english page
Browse files Browse the repository at this point in the history
  • Loading branch information
kkalev committed Nov 26, 2023
1 parent 5fa801f commit 6742a54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gunet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 6742a54

Please sign in to comment.