From d6e4b584f179026000919d5a6e6dc5076c50c152 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 9 Apr 2024 18:24:50 +0200 Subject: [PATCH] Improve login test --- e2e/login.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/e2e/login.spec.ts b/e2e/login.spec.ts index 2f19fecf..d27f8ffc 100644 --- a/e2e/login.spec.ts +++ b/e2e/login.spec.ts @@ -115,9 +115,11 @@ test.describe('Login', () => { await expect(loginButton).toContainText('Submit'); await expect(page.getByText('Name and Password are required.')).not.toBeVisible(); await expect(page.getByText('Connected to bot, however Login failed,')).not.toBeVisible(); + await expect(page.getByText('Invalid Password')).not.toBeVisible(); await Promise.all([loginButton.click(), page.waitForResponse('**/api/v1/token/login')]); await expect(page.getByText('Name and Password are required.')).toBeVisible(); + await expect(page.getByText('Invalid Password')).toBeVisible(); await expect(page.getByText('Connected to bot, however Login failed,')).toBeVisible(); }); });