gitea/tests/e2e
silverwind b31eef2828
Stabilize issue-project e2e test, increase timeout factor (#37297)
1. stabilize flaky e2e test from
2f5b5a9e9c
2. increase ci timeout factor to 4 as 3 was not enough
3. add a `e2e` category to files-changed so e2e-test-only changes
trigger ci

---
This PR was written with the help of Claude Opus 4.7

---------

Co-authored-by: Claude (Opus 4.7) <noreply@anthropic.com>
2026-04-19 17:27:23 +00:00
..
codeeditor.test.ts Remove htmx (#37224) 2026-04-15 17:26:26 +00:00
env.d.ts
events.test.ts Add e2e reaction test, improve accessibility, enable parallel testing (#37081) 2026-04-03 17:20:44 +00:00
explore.test.ts
external-render.test.ts Frontend iframe renderer framework: 3D models, OpenAPI (#37233) 2026-04-17 22:30:17 +00:00
file-view-render.test.ts Frontend iframe renderer framework: 3D models, OpenAPI (#37233) 2026-04-17 22:30:17 +00:00
issue-project.test.ts Stabilize issue-project e2e test, increase timeout factor (#37297) 2026-04-19 17:27:23 +00:00
licenses.test.ts Replace `rollup-plugin-license` with `rolldown-license-plugin` (#37130) 2026-04-09 09:31:05 +00:00
login.test.ts
milestone.test.ts Add e2e reaction test, improve accessibility, enable parallel testing (#37081) 2026-04-03 17:20:44 +00:00
org.test.ts Add e2e reaction test, improve accessibility, enable parallel testing (#37081) 2026-04-03 17:20:44 +00:00
reactions.test.ts Add e2e reaction test, improve accessibility, enable parallel testing (#37081) 2026-04-03 17:20:44 +00:00
readme.test.ts Add e2e reaction test, improve accessibility, enable parallel testing (#37081) 2026-04-03 17:20:44 +00:00
register.test.ts Add e2e reaction test, improve accessibility, enable parallel testing (#37081) 2026-04-03 17:20:44 +00:00
relative-time.test.ts
repo.test.ts Add e2e reaction test, improve accessibility, enable parallel testing (#37081) 2026-04-03 17:20:44 +00:00
user-settings.test.ts Add e2e reaction test, improve accessibility, enable parallel testing (#37081) 2026-04-03 17:20:44 +00:00
utils.ts Add project column picker to issue and pull request sidebar (#37037) 2026-04-19 12:53:02 +00:00

readme.test.ts

import {env} from 'node:process';
import {test, expect} from '@playwright/test';
import {apiCreateRepo, apiDeleteRepo, 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);
  await apiDeleteRepo(page.request, env.GITEA_TEST_E2E_USER, repoName);
});