chore: re-adjust test for new login button

This commit is contained in:
Matthias 2024-07-05 13:19:07 +02:00
parent 4cd553d300
commit 13273c5380

View File

@ -66,7 +66,7 @@ test.describe('Login', () => {
await expect(page.locator('button', { hasText: 'Login' })).not.toBeVisible();
// Test logout
await page.locator('#avatar-drop').click();
await page.locator('a:visible', { hasText: 'Sign Out' }).click();
await page.locator('button', { hasText: 'Sign Out' }).click();
// Assert we're logged out again
await expect(page.locator('button', { hasText: 'Login' })).toBeVisible();
});