Re-add some logging
This commit is contained in:
parent
7b017cc218
commit
f417b331f6
1 changed files with 5 additions and 1 deletions
|
|
@ -116,13 +116,17 @@ export class BasePage {
|
||||||
}
|
}
|
||||||
|
|
||||||
async validateURL(issPageValue: string) {
|
async validateURL(issPageValue: string) {
|
||||||
|
console.log(`Checking for page value: ${issPageValue}`);
|
||||||
let pass = false;
|
let pass = false;
|
||||||
let currentUrl = this.page.url();
|
let currentUrl = this.page.url();
|
||||||
|
console.log(`Current URL: ${currentUrl}`);
|
||||||
pass = currentUrl.includes(issPageValue);
|
pass = currentUrl.includes(issPageValue);
|
||||||
const isBailout = currentUrl.includes('bailout-page');
|
const isBailout = currentUrl.includes('bailout-page');
|
||||||
if(!pass && !isBailout) {
|
if(!pass && !isBailout) {
|
||||||
|
console.log('Waiting for URL to change');
|
||||||
await this.waitForURLToChange(currentUrl);
|
await this.waitForURLToChange(currentUrl);
|
||||||
currentUrl = this.page.url();
|
currentUrl = this.page.url();
|
||||||
|
console.log(`New URL: ${currentUrl}`);
|
||||||
pass = currentUrl.includes(issPageValue);
|
pass = currentUrl.includes(issPageValue);
|
||||||
}
|
}
|
||||||
expect(pass).toBeTruthy();
|
expect(pass).toBeTruthy();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue