0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-02-22 21:53:17 +01:00
silverwind 799d525f64
Fix repo creation test by using direct input selector
Use locator('input[name="repo_name"]') instead of getByLabel which
can fail when Fomantic UI interferes with label-input association.

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

import {env} from 'node:process';
import {test, expect} from '@playwright/test';
import {login, createRepo, deleteRepo} from './utils.ts';

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

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