Files
E2E-Test/config/test.config.ts
2025-11-04 16:29:07 +08:00

71 lines
2.0 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 测试配置文件
* 集中管理所有测试相关的配置信息
*/
export const TestConfig = {
// 环境配置
env: {
baseUrl: 'https://pre.prodream.cn/en',
loginUrl: 'https://pre.prodream.cn/en',
},
// 登录账号信息
credentials: {
email: 'xdf.admin@applify.ai',
password: 'b9#0!;+{Tx4649op',
},
// 超时设置(毫秒)
timeouts: {
test: 600000, // 10分钟
navigation: 30000, // 30秒
action: 10000, // 10秒
aiGeneration: 60000, // 1分钟 (AI生成)
longAiGeneration: 180000, // 3分钟 (长AI生成如Essay)
veryLongAiGeneration: 240000, // 4分钟 (超长AI生成)
grammarCheck: 120000, // 2分钟
plagiarismCheck: 100000, // 100秒
aiDetection: 80000, // 80秒
humanize: 110000, // 110秒
polish: 110000, // 110秒
rated: 120000, // 2分钟
improvement: 200000, // 200秒
},
// 测试数据
testData: {
student: {
name: '黄子旭测试',
branchText: /^Please select branch$/,
branchValue: /^1$/,
counselorEmail: /^2-2@2\.com$/,
contractCategory: '11',
contractName: '11',
},
material: {
title: 'Community Art & Cultural Education Project社区艺术与文化教育项目',
content: '在高二至高三期间我每周投入约3小时参与社区艺术与文化教育项目协助为当地儿童开设艺术工作坊。我主要负责示范水彩晕染、湿画法与层次叠加等技法并教授楷书与行书的基础笔画练习帮助孩子们理解中西方艺术表现的差异。',
expectedButtonText: 'Community Art',
},
draft: {
level: 'Intermediate',
length: '500',
},
},
// 等待时间配置
waits: {
pageStable: 10000, // 页面稳定等待
shortWait: 1000, // 短暂等待
mediumWait: 3000, // 中等等待
longWait: 10000, // 长等待
},
// 报告配置
report: {
directory: '.', // 报告保存目录
filePrefix: 'test-error-report', // 报告文件前缀
},
};