【问题标题】:Error 'Cannot read property 'data' of undefined'错误'无法读取未定义的属性'数据''
【发布时间】:2020-09-04 09:49:22
【问题描述】:

重现错误的步骤:

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

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

2.我一登录应用程序,就会显示一个错误,上面写着“无法读取未定义的属性'数据'”

enter image description here

3.我在控制台中检查了请求:错误请求 400 - Uncaught (in promise) TypeError

4. 后端的四个请求都失败了,给出响应:

状态码:400 错误请求

enter image description here

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

test.only("文章表访问", async 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

【问题讨论】:

    标签: testing automation automated-tests e2e-testing testcafe


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-09-07
      • 2020-10-15
      • 2014-06-05
      • 2021-12-31
      • 2022-10-05
      • 2022-07-06
      相关资源
      最近更新 更多