mirror of
https://github.com/go-gitea/gitea.git
synced 2026-06-18 07:13:35 +02:00
The e2e database is isolated and uses random org names, so per-test cleanup is unnecessary and only leaks the org on mid-test failure. Assisted-by: claude-code:opus-4.8
import {env} from 'node:process';
import {test, expect} from '@playwright/test';
import {apiCreateRepo, randomString} from './utils.ts';
test('repo readme', async ({page}) => {
const repoName = `e2e-readme-${randomString(8)}`;
await apiCreateRepo(page.request, {name: repoName});
await page.goto(`/${env.GITEA_TEST_E2E_USER}/${repoName}`);
await expect(page.locator('#readme')).toContainText(repoName);
});