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,3 +1,4 @@
/* eslint-disable react-hooks/rules-of-hooks */
import 'dotenv/config';
import { test as base, expect, Page, APIRequestContext, APIResponse } from '@playwright/test';
@@ -80,7 +81,7 @@ const tenantAdminEmail = process.env.E2E_TENANT_EMAIL ?? 'hello@lumen-moments.de
const tenantAdminPassword = process.env.E2E_TENANT_PASSWORD ?? 'Demo1234!';
export const test = base.extend<TenantAdminFixtures & TestingApiFixtures>({
tenantAdminCredentials: async ({}, use) => {
tenantAdminCredentials: async (_context, use) => {
if (!tenantAdminEmail || !tenantAdminPassword) {
await use(null);
return;

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 }) => {