aboutsummaryrefslogtreecommitdiff
path: root/tests/e2e/logout.spec.ts
blob: 12534ffc06dcda52fb25caf49a6d53483c08a3bf (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('#notification-wrapper')).toBeVisible();
        await page.getByLabel('Profilmenü').click();
        await page.getByText('Logout').click();
        await expect(page).toHaveURL(/dispatch\.php\/login/);
    });
});