Commit 20f81539 by Hugo Häggmark Committed by GitHub

Tests: Adds better logging to e2e tests (#17511)

parent 756989c1
......@@ -56,6 +56,7 @@ export class ClickablePageObject extends PageObject implements ClickablePageObje
}
click = async (): Promise<void> => {
console.log('Trying to click on:', this.selector);
await expect(this.page).not.toBeNull();
await expect(this.page).toClick(this.selector);
};
......@@ -67,6 +68,7 @@ export class InputPageObject extends PageObject implements InputPageObjectType {
}
enter = async (text: string): Promise<void> => {
console.log(`Trying to enter text:${text} into:`, this.selector);
await expect(this.page).not.toBeNull();
await expect(this.page).toFill(this.selector, text);
};
......@@ -78,6 +80,7 @@ export class SelectPageObject extends PageObject implements SelectPageObjectType
}
select = async (text: string): Promise<void> => {
console.log(`Trying to select text:${text} in dropdown:`, this.selector);
await expect(this.page).not.toBeNull();
await this.page.select(this.selector, text);
};
......
......@@ -57,6 +57,7 @@ export class TestPage<T> implements TestPageType<T> {
navigateTo = async (): Promise<void> => {
this.throwIfNotInitialized();
console.log('Trying to navigate to:', this.pageUrl);
await this.page.goto(this.pageUrl);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment