mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-11 19:39:02 +00:00
The login tab order test fails in WebKit on macOS, so `make test-e2e` fails locally on every Mac. CI on Linux is unaffected. - macOS WebKit moves Tab focus only between text fields, plus buttons and checkboxes when the system keyboard navigation setting is on, and never to links, like Safari. Option+Tab reaches every element there and acts as Tab in Linux WebKit, so the test presses Alt+Tab in WebKit. - Headless WebKit applies the username `autofocus` late, which pulled focus back from the password field. The test now waits for the autofocus first, which also covers it. Follow-up to https://github.com/go-gitea/gitea/pull/40081 Assisted-by: Claude Code:claude-opus-5-5
import {env} from 'node:process';
import {test, expect} from '@playwright/test';
import {apiCreateRepo, 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);
});