Skip to content

Commit 2b06e77

Browse files
committed
add automatic waitForUrl
1 parent b2389ce commit 2b06e77

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

testing/e2e/src/pages/__root.page.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ export abstract class RootPage {
2525
}
2626

2727
async goto<TPath extends RouteTo>(...args: NavigateArgs<TPath>): Promise<void> {
28-
await this.$ref.goto(this.getUrlWithParams(...args));
28+
const url = this.getUrlWithParams(...args);
29+
await this.$ref.goto(url);
30+
await this.expect.toHaveURL(url);
2931
}
3032
}

0 commit comments

Comments
 (0)