Commit 640b72b7 by Jaxon

chron: e2e 测试配置

1 parent 13a536da
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* 2. 安装浏览器:npx playwright install * 2. 安装浏览器:npx playwright install
* 3. 运行测试:npx playwright test * 3. 运行测试:npx playwright test
* 4. 带 UI 运行:npx playwright test --ui * 4. 带 UI 运行:npx playwright test --ui
* 5. 运行特定测试:npx playwright test tests/e2e/profitMarginTable.spec.js * 5. 运行特定测试:npx playwright test e2e/xxx.e2e.js
* 6. 生成报告:npx playwright show-report * 6. 生成报告:npx playwright show-report
*/ */
...@@ -14,7 +14,7 @@ import { defineConfig, devices } from "@playwright/test"; ...@@ -14,7 +14,7 @@ import { defineConfig, devices } from "@playwright/test";
export default defineConfig({ export default defineConfig({
// 测试文件位置 // 测试文件位置
testDir: "./tests/e2e", testDir: "./e2e",
// 超时时间 // 超时时间
timeout: 30 * 1000, timeout: 30 * 1000,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!