mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-19 15:14:40 +09:00
Add e2e coverage for browser flows that regressed before and had no browser test. - Web editor: preview with relative links, diff preview and proposing on a new branch, catching CRLF in the diff and the commit - Task lists: toggling in preview and after save with non-ASCII text - Actions: cancel, rerun and view the earlier attempt - File navigation: tree, go to file and tag selector on a nested file with special characters Assisted-by: Claude Code:claude-opus-5-5
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);
});