mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-02 11:27:06 +02: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:
co-authored by
Claude Opus 4.6
parent
7075f3ad4a
commit
aa8b0ad87e
@@ -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');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user