Uncaught AssertionError:未设置环境,正在终止运行赛普拉斯问题

时间:2019-03-14 21:35:28

标签: cypress

每次我尝试运行赛普拉斯测试时,都会出现此错误:

Uncaught AssertionError: Env not set,  aborting run

This error originated from your test code, not from Cypress.

When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.

Cypress could not associate this error to any specific test.

We dynamically generated a new test to display this failure.

检查控制台的堆栈跟踪信息,或单击此消息以查看其起源。

也许是因为当我运行cypress open或在文件夹内运行时,它会像这样打开并且我必须手动选择测试文件夹吗?

enter image description here

当我进行npm安装时,出现此错误:

Required: {"node":">=8.9.4","npm":"~5.6.0"}
Actual:   {"npm":"6.4.1","node":"11.11.0"}

0 个答案:

没有答案