0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-02-22 15:25:05 +01:00

Remove response status check from e2e homepage test

Playwright already fails on non-OK responses by default.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
silverwind 2026-02-15 11:54:23 +01:00
parent 7075f3ad4a
commit aa8b0ad87e
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443

View File

@ -2,8 +2,7 @@ import {test, expect} from '@playwright/test';
import {login, logout} from './utils.ts';
test('homepage', async ({page}) => {
const response = await page.goto('/');
expect(response?.status()).toBe(200);
await page.goto('/');
await expect(page.getByRole('img', {name: 'Logo'})).toHaveAttribute('src', '/assets/img/logo.svg');
});