Skip to content

Commit a389b4e

Browse files
authored
Merge pull request #36 from OpenTestSolar/dev/support_symbol
删除无用代码
2 parents a9d32f7 + e9b44bf commit a389b4e

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎playwright/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "testsolar-oss-playwright",
3-
"version": "0.2.17",
3+
"version": "0.2.18",
44
"description": "TestSolar support for playwright tool",
55
"main": "main.js",
66
"scripts": {

‎playwright/src/playwrightx/utils.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,16 +371,16 @@ export function generateCommands(
371371
if (useEnvJsonFile) {
372372
// 使用环境变量设置 JSON 输出
373373
if (testCases.length === 0) {
374-
command = `export NO_COLOR=1 && export PLAYWRIGHT_JSON_OUTPUT_NAME=${jsonName} && npx playwright test --reporter=json ${traceOption} ${extraArgs}`;
374+
command = `export PLAYWRIGHT_JSON_OUTPUT_NAME=${jsonName} && npx playwright test --reporter=json ${traceOption} ${extraArgs}`;
375375
} else {
376-
command = `export NO_COLOR=1 && export PLAYWRIGHT_JSON_OUTPUT_NAME=${jsonName} && npx playwright test ${casePath} ${grepPattern} --reporter=json ${traceOption} ${extraArgs}`;
376+
command = `export PLAYWRIGHT_JSON_OUTPUT_NAME=${jsonName} && npx playwright test ${casePath} ${grepPattern} --reporter=json ${traceOption} ${extraArgs}`;
377377
}
378378
} else {
379379
// 使用原始的重定向方式
380380
if (testCases.length === 0) {
381-
command = `export NO_COLOR=1 && npx playwright test --reporter=json ${traceOption} ${extraArgs} > ${jsonName}`;
381+
command = `npx playwright test --reporter=json ${traceOption} ${extraArgs} > ${jsonName}`;
382382
} else {
383-
command = `export NO_COLOR=1 && npx playwright test ${casePath} ${grepPattern} --reporter=json ${traceOption} ${extraArgs} > ${jsonName}`;
383+
command = `npx playwright test ${casePath} ${grepPattern} --reporter=json ${traceOption} ${extraArgs} > ${jsonName}`;
384384
}
385385
}
386386

‎playwright/testtool.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ schemaVersion: 1.0
22
name: playwright
33
nameZh: Playwright自动化测试
44
lang: javascript
5-
version: '0.2.17'
5+
version: '0.2.18'
66
defaultBaseImage: node:18
77
langType: INTERPRETED
88
description: |-

0 commit comments

Comments
 (0)