From 020f505fba8ba3d3676ade051e8ad8673c935cb0 Mon Sep 17 00:00:00 2001 From: kdaud Date: Wed, 13 Nov 2024 15:38:54 +0300 Subject: [PATCH] use invalid values --- e2e/specs/biometrics.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/specs/biometrics.spec.ts b/e2e/specs/biometrics.spec.ts index 3afe37dcce..e5e02f8380 100644 --- a/e2e/specs/biometrics.spec.ts +++ b/e2e/specs/biometrics.spec.ts @@ -66,7 +66,7 @@ test('Record biometrics', async ({ page }) => { }); }); -test('Record abnormal biometrics', async ({ page }) => { +test('Record invalid biometrics', async ({ page }) => { const biometricsPage = new BiometricsAndVitalsPage(page); await test.step('When I visit the vitals and biometrics page', async () => { @@ -81,8 +81,8 @@ test('Record abnormal biometrics', async ({ page }) => { await expect(biometricsPage.page.getByText(/record vitals and biometrics/i)).toBeVisible(); }); - await test.step('When I fill `255` as the weight', async () => { - await biometricsPage.page.getByRole('spinbutton', { name: /weight/i }).fill('255'); + await test.step('When I fill `-5` as the weight', async () => { + await biometricsPage.page.getByRole('spinbutton', { name: /weight/i }).fill('-5'); }); await test.step('And I fill `275` as the height', async () => {