From eea3e5e457f164e45c378a412fb2878f1071e01a Mon Sep 17 00:00:00 2001 From: chrisvasqm Date: Fri, 20 Sep 2024 15:25:19 -0400 Subject: [PATCH] Add missing awaits --- tests/automaty.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/automaty.spec.ts b/tests/automaty.spec.ts index 537c9fd..d11010f 100644 --- a/tests/automaty.spec.ts +++ b/tests/automaty.spec.ts @@ -7,17 +7,17 @@ test.describe('Automaty', () => { test.beforeEach(async ({page}) => { login = new Login(page); - login.goto(); + await login.goto(); }); test('should login with valid credentials', async () => { - login.signIn('admin', 'admin'); + await login.signIn('admin', 'admin'); await expect(login.welcomeHeading).toBeVisible({timeout: 6000}); }); test('should not login with invalid credentials', async () => { - login.signIn('admin', 'admin123'); + await login.signIn('admin', 'admin123'); await expect(login.alert).toBeVisible(); });