From 87ab9f874a094adfe2225efd3029d0d5da451b2f Mon Sep 17 00:00:00 2001 From: Derek Date: Mon, 1 Jan 2024 17:07:26 -0500 Subject: [PATCH] fix: format --- apps/laboratory/tests/shared/pages/ModalPage.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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')