Automation 测试:提交后页面超时

Automation 测试:提交后页面超时,automation,automated-tests,timeout,e2e-testing,testcafe,Automation,Automated Tests,Timeout,E2e Testing,Testcafe,单击“过滤器”按钮组装报告后,Test Cafe出现一些问题。这是我的密码: ... await report.accessReportBanks(testData.page + '/reports/report_banks'); const filterButton = Selector('input').withAttribute('type', 'submit').withAttribute('value', 'Filter');

单击“过滤器”按钮组装报告后,Test Cafe出现一些问题。这是我的密码:

         ...
         await report.accessReportBanks(testData.page + '/reports/report_banks');

         const filterButton = Selector('input').withAttribute('type', 'submit').withAttribute('value', 'Filter');

         await t
             .click(filterButton);
             .wait(120000)
             .expect(Selector('tbody').child('tr').count).gt(0, "Expects results for Report Banks");
     });
单击
操作工作正常,但超时似乎在预期时间之前过期,浏览器最终显示在一个空白屏幕中,除了URL之外,没有任何错误消息:

发生什么事了?我怎样才能解决这个问题

已在.testcaferc.json上设置了此值

{
     "assertionTimeout": 60000,  // Defines the maximum time TestCafe will wait the elements to be "ready" before performing an assertion
     "pageLoadTimeout": 60000,   // Defines the maximum time TestCafe will wait the page be "ready" before performing an assertion
     "quarantineMode": true,     // The quarantine mode is designed to isolate non-deterministic tests from the other tests
     "selectorTimeout": 60000    // Defines the maximum time TestCafe will wait for a selector be visible
}

并且还尝试使用
--页面加载超时120000运行我的测试,但仍然没有成功。

如果浏览器请求需要20秒以上才能完成,TestCafe可以中止浏览器请求。我们已经建议允许配置此超时:。您可以订阅它,以获得有关实施此建议的进度的通知


或者,您可以在中修改超时值,并构建自己的TestCafe版本。

测试代码看起来正常。问题的原因可能是特定于您的站点。请提供一个工作示例来演示和再现该问题。如果您可以提供这样一个示例,那么请使用以下模板在TestCafe github存储库中创建一个单独的问题:Site works fine manually。点击“过滤器”按钮后,只需45到50秒即可加载。我将看看是否有办法使这个URL可用,因为它只供内部使用。