Skip to content

Commit a84100e

Browse files
quanruyuyutaotao
andauthored
feat(mcp, shared, visualizer): add license (#818)
* feat(mcp, shared, visualizer): add license * docs(core): update playwright reporter doc --------- Co-authored-by: yutao <[email protected]>
1 parent 3510a8c commit a84100e

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

apps/site/docs/en/integrate-with-playwright.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ export default defineConfig({
3030
});
3131
```
3232

33+
The `type` option of the `reporter` configuration can be `merged` or `separate`. The default value is `merged`, which indicates that one merged report for all test cases; the optional value is `separate`, indicating that the report is separated for each test case.
34+
3335
## Step 2: extend the `test` instance
3436

3537
Save the following code as `./e2e/fixture.ts`:

apps/site/docs/zh/integrate-with-playwright.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ export default defineConfig({
3030
});
3131
```
3232

33+
其中 `reporter` 配置项的 `type` 可选值为 `merged``separate`,默认值为 `merged`,表示多个测试用例生成一个报告,可选值为 `separate`,表示为每个测试用例一个报告。
34+
3335
## 第二步:扩展 `test` 实例
3436

3537
把下方代码保存为 `./e2e/fixture.ts`;

packages/mcp/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@
3737
},
3838
"dependencies": {
3939
"puppeteer": "24.2.0"
40-
}
40+
},
41+
"license": "MIT"
4142
}

packages/shared/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,6 @@
7474
"publishConfig": {
7575
"access": "public",
7676
"registry": "https://registry.npmjs.org/"
77-
}
77+
},
78+
"license": "MIT"
7879
}

packages/visualizer/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,6 @@
7171
"@midscene/web": "workspace:*",
7272
"antd": "^5.21.6",
7373
"dayjs": "^1.11.11"
74-
}
74+
},
75+
"license": "MIT"
7576
}

0 commit comments

Comments
 (0)