0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-02-23 10:45:28 +01:00
silverwind e9e676d553
Address e2e review feedback
- Add ENABLE_CAPTCHA=false to CI app.ini so the server starts with
  CAPTCHA disabled instead of relying on env var in test script
- Retry on 502/503 in addition to 500 in apiRetry helper
- Fix typo: workarkound → workaround
- Add comment about section-unaware INI parsing in test-e2e.sh

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 03:03:15 +01:00
..
2026-02-18 03:03:15 +01:00

import {env} from 'node:process';
import {test, expect} from '@playwright/test';
import {createRepoApi, deleteRepoApi} from './utils.ts';

test('README renders on repository page', async ({page}) => {
  const repoName = `e2e-readme-${Date.now()}`;
  await createRepoApi(page.request, {name: repoName});
  await page.goto(`/${env.E2E_USER}/${repoName}`);
  await expect(page.locator('#readme')).toContainText(repoName);

  // cleanup
  await deleteRepoApi(page.request, env.E2E_USER!, repoName);
});