typescript-typenfehler behoben.. npm run lint läuft nun fehlerfrei durch.

This commit is contained in:
Codex Agent
2025-11-22 11:49:47 +01:00
parent 6c78d7e281
commit eb41cb6194
74 changed files with 469 additions and 396 deletions

View File

@@ -1,4 +1,4 @@
import { test, expect } from '@playwright/test';
import { test, expect, type Response, type ConsoleMessage } from '@playwright/test';
test.describe('Homepage Links Test', () => {
test('Click all links on homepage and check for errors', async ({ page }) => {
@@ -47,7 +47,7 @@ test.describe('Homepage Links Test', () => {
// For each link, create temporary listeners
const linkFailedRequests: { url: string; status: number }[] = [];
const linkConsoleErrors: string[] = [];
const linkResponseHandler = (response: any) => {
const linkResponseHandler = (response: Response) => {
if (response.status() >= 400) {
linkFailedRequests.push({
url: response.url(),
@@ -55,7 +55,7 @@ test.describe('Homepage Links Test', () => {
});
}
};
const linkConsoleHandler = (msg: any) => {
const linkConsoleHandler = (msg: ConsoleMessage) => {
if (msg.type() === 'error') {
linkConsoleErrors.push(msg.text());
}
@@ -103,4 +103,4 @@ test.describe('Homepage Links Test', () => {
console.log('All links tested successfully.');
});
});
});

View File

@@ -1,5 +1,4 @@
import { test, expect } from '@playwright/test';
import { chromium } from 'playwright';
test.describe('Package Flow in Admin PWA', () => {
test('Create event with package and verify limits', async ({ page }) => {