Skip to content

Commit

Permalink
Add missing awaits
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvasqm committed Sep 20, 2024
1 parent 8f2c712 commit eea3e5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/automaty.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit eea3e5e

Please sign in to comment.