chore: sync additional local changes and e2e artifacts
This commit is contained in:
@@ -64,7 +64,7 @@ test.describe('🦟 蚊子项目 E2E测试 - API可用性验证', () => {
|
||||
});
|
||||
|
||||
test('前端服务可访问', async ({ page }, testInfo) => {
|
||||
const FRONTEND_URL = process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:5173';
|
||||
const FRONTEND_URL = process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:5176';
|
||||
|
||||
await page.goto(FRONTEND_URL);
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import { test, expect } from '@playwright/test';
|
||||
|
||||
test.describe('👤 用户H5前端操作测试', () => {
|
||||
|
||||
const FRONTEND_URL = process.env.H5_BASE_URL || 'http://localhost:5173';
|
||||
const FRONTEND_URL = process.env.H5_BASE_URL || 'http://localhost:5176';
|
||||
const API_BASE_URL = process.env.API_BASE_URL || 'http://localhost:8080';
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,7 +9,7 @@ test('简单健康检查 - 后端API', async ({ request }) => {
|
||||
|
||||
test('简单健康检查 - 前端服务', async ({ page }) => {
|
||||
// 简单检查前端服务是否可访问
|
||||
const response = await page.goto('http://localhost:5173');
|
||||
const response = await page.goto('http://localhost:5176');
|
||||
expect(response).not.toBeNull();
|
||||
expect(response?.status()).toBeLessThan(400);
|
||||
});
|
||||
|
||||
@@ -7,7 +7,7 @@ import { test, expect } from '@playwright/test';
|
||||
|
||||
test.describe('👤 用户前端操作测试', () => {
|
||||
|
||||
const FRONTEND_URL = 'http://localhost:5173';
|
||||
const FRONTEND_URL = process.env.H5_BASE_URL || 'http://localhost:5176';
|
||||
const API_BASE_URL = 'http://localhost:8080';
|
||||
|
||||
test.beforeEach(async ({ page }) => {
|
||||
|
||||
@@ -12,7 +12,7 @@ import { fileURLToPath } from 'url';
|
||||
*/
|
||||
|
||||
const API_BASE_URL = process.env.API_BASE_URL || 'http://localhost:8080';
|
||||
const FRONTEND_URL = process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:5173';
|
||||
const FRONTEND_URL = process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:5176';
|
||||
|
||||
const DEFAULT_TEST_API_KEY = 'test-api-key-000000000000';
|
||||
const DEFAULT_TEST_USER_TOKEN = 'test-e2e-token';
|
||||
@@ -38,7 +38,7 @@ function loadTestData(): TestData {
|
||||
userToken: process.env.E2E_USER_TOKEN || DEFAULT_TEST_USER_TOKEN,
|
||||
userId: 10001,
|
||||
shortCode: 'test123',
|
||||
baseUrl: process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:5173',
|
||||
baseUrl: process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:5176',
|
||||
apiBaseUrl: process.env.API_BASE_URL || 'http://localhost:8080',
|
||||
};
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import { fileURLToPath } from 'url';
|
||||
*/
|
||||
|
||||
const API_BASE_URL = process.env.API_BASE_URL || 'http://localhost:8080';
|
||||
const FRONTEND_URL = process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:5173';
|
||||
const FRONTEND_URL = process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:5176';
|
||||
|
||||
const DEFAULT_TEST_API_KEY = 'test-api-key-000000000000';
|
||||
const DEFAULT_TEST_USER_TOKEN = 'test-e2e-token';
|
||||
@@ -38,7 +38,7 @@ function loadTestData(): TestData {
|
||||
userToken: process.env.E2E_USER_TOKEN || DEFAULT_TEST_USER_TOKEN,
|
||||
userId: 10001,
|
||||
shortCode: 'test123',
|
||||
baseUrl: process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:5173',
|
||||
baseUrl: process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:5176',
|
||||
apiBaseUrl: process.env.API_BASE_URL || 'http://localhost:8080',
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user