2

我面临剧作家配置的问题。测试场景放在项目目录下,但在执行期间它显示没有找到测试

  1. npm i -D @playwright/test
  2. npx 剧作家安装
  3. 执行:npx 编剧测试附上截图
4

1 回答 1

3

您需要将文件名重命名为first.test.js或在配置文件中添加testMatch属性。

testMatch- 匹配测试文件的全局模式或正则表达式。

因为默认情况下,Playwright Test 运行.(test|spec)

于 2021-09-25T12:32:37.053 回答