cypress - 未捕获的 AssertionError:未设置环境,中止运行柏树问题
问题描述
每次我尝试运行我的柏树测试时,我都会收到此错误:
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 或在文件夹内运行时,它会像这样打开,我必须手动选择测试文件夹?
当我执行 npm install 时,我收到此错误:
Required: {"node":">=8.9.4","npm":"~5.6.0"}
Actual: {"npm":"6.4.1","node":"11.11.0"}
解决方案
推荐阅读
- google-sheets - 如何使用 Google Sheet API 知道哪些单元格或单元格范围在 Google 电子表格中受到保护?
- javascript - 使用没有任何插件的javascript从一个拖动到另一个
我有两个表:乘客和航班。
<table> <tr> <th> Passenger Name </th> <th> Passenger Flight </th> </tr> <tr> <td> Passenger 1 </td> <td> FR5412 &l
- android - FirebaseCrashlytics.getInstance() 在多进程应用程序中导致应用程序崩溃
- javascript - 如果单击选项卡,下拉菜单关闭
- javascript - 如何等待promise解决然后在reactjs中渲染
- python - 尽管匹配网络表单数据,但无法使用 requests.post 登录网站
- node.js - Node JS 弹性搜索结果改进
- javascript - POST 请求中缺少授权标头
- python - 包含任何元素的列表的最大可能乘积
- php - 问题 SQLSTATE[HY000]: 一般错误:1215 无法添加外键约束