gitea/tests/e2e
silverwind d5831b9385
Frontend iframe renderer framework: 3D models, OpenAPI (#37233)
Introduces a frontend external-render framework that runs renderer
plugins inside an `iframe` (loaded via `srcdoc` to keep the CSP
`sandbox` directive working without origin-related console noise), and
migrates the 3D viewer and OpenAPI/Swagger renderers onto it. PDF and
asciicast paths are refactored to share the same `data-render-name`
mechanism.

Adds e2e coverage for 3D, PDF, asciicast and OpenAPI render paths, plus
a regression for the `RefTypeNameSubURL` double-escape on non-ASCII
branch names.

Signed-off-by: silverwind <me@silverwind.io>
Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-04-17 22:30:17 +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
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 Fix relative-time RangeError (#37021) 2026-03-28 13:10:51 +00:00
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 Frontend iframe renderer framework: 3D models, OpenAPI (#37233) 2026-04-17 22:30:17 +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);
});