test: update webServer port on playwright e2e test

This commit is contained in:
JimmFly
2022-12-19 14:25:38 +08:00
parent abbe1dc014
commit 8a01938b0d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ const config: PlaywrightTestConfig = {
/* Run your local dev server before starting the tests */ /* Run your local dev server before starting the tests */
webServer: { webServer: {
command: 'npm run dev', command: 'npm run dev',
port: 3000, port: 8080,
}, },
}; };
+1 -1
View File
@@ -2,7 +2,7 @@ import { test } from '@playwright/test';
export function loadPage() { export function loadPage() {
test.beforeEach(async ({ page }) => { test.beforeEach(async ({ page }) => {
await page.goto('http://localhost:3000'); await page.goto('http://localhost:8080');
// waiting for page loading end // waiting for page loading end
await page.waitForTimeout(1000); await page.waitForTimeout(1000);
}); });