From 367ed27e4f732facabec06f0e42cb09d81833c6f Mon Sep 17 00:00:00 2001 From: Luka Isailovic Date: Wed, 28 Feb 2024 14:30:36 +0100 Subject: [PATCH] chore: add validation messages --- apps/laboratory/tests/shared/pages/ModalPage.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/laboratory/tests/shared/pages/ModalPage.ts b/apps/laboratory/tests/shared/pages/ModalPage.ts index dc5e11301b..66a3f89eb9 100644 --- a/apps/laboratory/tests/shared/pages/ModalPage.ts +++ b/apps/laboratory/tests/shared/pages/ModalPage.ts @@ -81,12 +81,12 @@ export class ModalPage { async disconnect() { const accountBtn = this.page.getByTestId('account-button') - await expect(accountBtn).toBeVisible() - await expect(accountBtn).toBeEnabled() + await expect(accountBtn, 'Account button should be visible').toBeVisible() + await expect(accountBtn, 'Account button should be enabled').toBeEnabled() await accountBtn.click({ force: true }) const disconnectBtn = this.page.getByTestId('disconnect-button') - await expect(disconnectBtn).toBeVisible() - await expect(disconnectBtn).toBeEnabled() + await expect(disconnectBtn, 'Disconnect button should be visible').toBeVisible() + await expect(disconnectBtn, 'Disconnect button should be visible').toBeEnabled() await disconnectBtn.click({ force: true }) }