diff --git a/apps/laboratory/tests/shared/pages/ModalPage.ts b/apps/laboratory/tests/shared/pages/ModalPage.ts index 2bf49a42da..2d2f3fe6f4 100644 --- a/apps/laboratory/tests/shared/pages/ModalPage.ts +++ b/apps/laboratory/tests/shared/pages/ModalPage.ts @@ -36,7 +36,11 @@ export class ModalPage { async loginWithEmail(email: string) { await this.page.goto(this.url) - await this.connectButton.click() + // Connect Button doesn't have a proper `disabled` attribute so we need to wait for the button to change the text + await this.page + .getByTestId('connect-button') + .getByRole('button', { name: 'Connect Wallet' }) + .click() await this.page.getByTestId('wui-email-input').locator('input').focus() await this.page.getByTestId('wui-email-input').locator('input').fill(email) await this.page.getByTestId('wui-email-input').locator('input').press('Enter')