小编Joh*_*itt的帖子

如何忽略TestCafe中的“超出ResizeObserver循环限制”

我目前正在使用 TestCafe 进行一些 e2e 测试。我遇到了以下错误

   1) - Error in Role initializer -
      A JavaScript error occurred on "http://localhost:3000/".
      Repeat test actions in the browser and check the console for errors.
      If you see this error, it means that the tested website caused it. You can fix it or disable tracking JavaScript errors in TestCafe. To do the latter, enable the "--skip-js-errors" option.
      If this error does not occur, please write a new issue at:
      "https://github.com/DevExpress/testcafe/issues/new?template=bug-report.md".
      
      JavaScript error details:
      ResizeObserver loop …
Run Code Online (Sandbox Code Playgroud)

javascript testing automated-tests reactjs testcafe

12
推荐指数
1
解决办法
2万
查看次数

反应路由器不使用参数

我有以下设置:

<div>
    <Router history={browserHistory}>
        <Route path="/" component={NewCustomerContainer} />
        <Route path="/newCustomer" component={NewCustomerContainer} />
        <Route path="/search" component={SearchPageContainer} />
        <Route path="/network" component={NetworkContainer} />
        <Route path="/network/:id" component={NetworkContainer} ></Route>
    </Router>
</div>
Run Code Online (Sandbox Code Playgroud)

该路线http://localhost:8100/network工作正常。该路由http://localhost:8100/network/abc123没有出现在我的控制台中的 404 错误。有没有人见过这样的事情?

javascript reactjs webpack react-router redux

7
推荐指数
2
解决办法
1万
查看次数