typescript-typenfehler behoben.. npm run lint läuft nun fehlerfrei durch.
This commit is contained in:
@@ -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.');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user