Files
gitea/tests/e2e
silverwind 84c9f8ad76 test(e2e): add more e2e test coverage (#40429)
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
2026-11-18 19:46:05 +00:00
..
2026-02-20 16:26:47 -08:00

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);
});