错误“无法读取未定义的属性”数据”

问题描述

重现该错误的步骤:

1。我正在使用以下命令运行自动化测试:

testcafe chrome e2e-tests / fixtures / articles-table.ts

2。登录应用程序后,立即显示错误消息,提示“无法读取未定义的属性'data'”

enter image description here

3。我在控制台中检查了请求:错误请求400-未捕获(承诺)TypeError

4。到后端的四个请求均失败,给出了响应:

状态码:400错误的请求

enter image description here

5。我实际尝试运行的测试是:

test.only(“文章表访问”,异步t => { 等待t.click(homePageView.productMenu)

等待t.expect((articlesPageView.articleTable).exists).ok();

});

环境详细信息:

testcafe 1.9.2版本:

node.js版本:

命令行参数:testcafe chrome e2e-tests / fixtures / articles-table.ts

浏览器名称和版本:Chrome版本85.0.4183.83(正式版本)(64位)

平台和版本:Windows 10

解决方法

TestCafe GitHub存储库中已经报告了具有相同详细信息的problem。所有更新都将发布在这里。请跟踪以下线程以了解其进度:https://github.com/DevExpress/testcafe/issues/5499