mirror of
https://github.com/go-gitea/gitea.git
synced 2026-02-23 02:13:18 +01:00
Declare E2E_USER, E2E_PASSWORD and E2E_URL as string in ProcessEnv so non-null assertions are no longer needed throughout the e2e tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
13 lines
476 B
TypeScript
13 lines
476 B
TypeScript
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);
|
|
await deleteRepo(page, env.E2E_USER, repoName);
|
|
});
|