diff --git a/web/e2e/fixtures/NavigatorFixture.ts b/web/e2e/fixtures/NavigatorFixture.ts index 53d55cd850..645cd71f04 100644 --- a/web/e2e/fixtures/NavigatorFixture.ts +++ b/web/e2e/fixtures/NavigatorFixture.ts @@ -31,12 +31,15 @@ export class NavigatorFixture extends PageFixture { * * @param to The pathname or URL to wait for. */ - public waitForPathname = async (to: string | URL): Promise => { + public waitForPathname = async ( + to: string | URL, + options?: Parameters[1], + ): Promise => { const expectedPathname = typeof to === "string" ? to : to.pathname; this.logger.info(`Waiting for URL to change to ${expectedPathname}`); - await this.page.waitForURL(`**${expectedPathname}**`); + await this.page.waitForURL(`**${expectedPathname}**`, options); this.logger.info(`URL changed to ${this.page.url()}`); };