blob: bd87e0b28dafc2acbf23125dbd8d28880b96fa2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import { test, expect } from '@playwright/test';
const dozentFile = 'tests/e2e/.auth/dozent.json';
test.describe('Logging Out', () => {
test.use({ storageState: dozentFile });
test('should take us back to the homepage', async ({ page, baseURL }) => {
await page.goto(baseURL);
await expect(page.locator('#avatar-menu-container')).toBeVisible();
await page.getByTitle('Testaccount Dozent').click();
await page.getByRole('link', { name: 'Logout' }).click();
await expect(page).toHaveURL(/index\.php.*logout=true/);
});
});
|