Files
hearth/package/gitea/source/tests/e2e/login.test.ts
T
2026-06-02 08:36:01 +00:00

13 lines
350 B
TypeScript

import {test, expect} from '@playwright/test';
import {login, logout} from './utils.ts';
test('homepage', async ({page}) => {
await page.goto('/');
await expect(page.getByRole('img', {name: 'Logo'})).toHaveAttribute('src', '/assets/img/logo.svg');
});
test('login and logout', async ({page}) => {
await login(page);
await logout(page);
});