天天看点

Cypress 启动本地浏览器的学习笔记

下列两种命令启动 Cypress:

  • yarn run cypress open
  • npx cypress open

文档地址:

https://docs.cypress.io/guides/guides/launching-browsers

下拉菜单里选择浏览器:

Cypress 启动本地浏览器的学习笔记

这个链接可以下载指定版本的 Chrome:

https://chromium.cypress.io/
Cypress 启动本地浏览器的学习笔记

By default, we will launch Chrome in headed mode. To run Chrome headlessly, you can pass the --headless argument to cypress run.

继续阅读