Files

12 lines
503 B
TypeScript
Raw Permalink Normal View History

2026-02-21 01:26:47 +01:00
import {env} from 'node:process';
import {test, expect} from '@playwright/test';
import {apiCreateRepo, apiDeleteRepo, randomString} from './utils.ts';
2026-02-21 01:26:47 +01:00
test('repo readme', async ({page}) => {
const repoName = `e2e-readme-${randomString(8)}`;
2026-02-21 01:26:47 +01:00
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);
});