test: 删除根目录下的非核心E2E测试文件(任务 2/8)
This commit is contained in:
@@ -100,7 +100,7 @@ async function globalSetup(config: FullConfig) {
|
||||
backendArgs = [
|
||||
'-jar',
|
||||
jarFile,
|
||||
'--spring.profiles.active=dev',
|
||||
'--spring.profiles.active=test',
|
||||
'-Xms256m',
|
||||
'-Xmx512m'
|
||||
];
|
||||
@@ -108,7 +108,7 @@ async function globalSetup(config: FullConfig) {
|
||||
console.log('📦 使用Maven启动后端服务...');
|
||||
console.log(' 提示: 运行 "mvn clean package -DskipTests" 构建JAR文件以获得更快的启动速度');
|
||||
backendCommand = 'mvn';
|
||||
backendArgs = ['spring-boot:run', '-Dspring-boot.run.profiles=dev'];
|
||||
backendArgs = ['spring-boot:run', '-Dspring-boot.run.profiles=test'];
|
||||
}
|
||||
|
||||
console.log(` 目录: ${backendDir}`);
|
||||
@@ -250,7 +250,7 @@ async function verifyAllServices(): Promise<void> {
|
||||
const response = await fetch('http://localhost:8080/api/auth/login', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ username: 'admin', password: 'admin123' }),
|
||||
body: JSON.stringify({ username: 'admin', password: 'Test@123' }),
|
||||
signal: AbortSignal.timeout(10000) as any
|
||||
});
|
||||
|
||||
@@ -290,7 +290,7 @@ async function waitForBackendReady(): Promise<void> {
|
||||
const loginTest = await fetch('http://localhost:8084/api/auth/login', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ username: 'admin', password: 'admin123' }),
|
||||
body: JSON.stringify({ username: 'admin', password: 'Test@123' }),
|
||||
signal: AbortSignal.timeout(10000) as any
|
||||
});
|
||||
|
||||
@@ -336,7 +336,7 @@ async function waitForGatewayReady(): Promise<void> {
|
||||
const loginTest = await fetch('http://localhost:8080/api/auth/login', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ username: 'admin', password: 'admin123' }),
|
||||
body: JSON.stringify({ username: 'admin', password: 'Test@123' }),
|
||||
signal: AbortSignal.timeout(10000) as any
|
||||
});
|
||||
|
||||
@@ -398,7 +398,7 @@ async function cleanupTestData(): Promise<void> {
|
||||
},
|
||||
body: JSON.stringify({
|
||||
username: 'admin',
|
||||
password: 'admin123'
|
||||
password: 'Test@123'
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user