在非反应路由器应用程序中,我使用以下简单代码测试了状态代码:
const response = await page.goto(url, { timeout: 60000, waitUntil: ['networkidle0','domcontentloaded'] })
assert.equal(response.status(), 200)
但是在一个React-Router应用程序(使用BrowserRouter)中,我得到了这个异常
Failed to load resource: the server responded with a status of 500
我没有找到有关如何在历史记录API中使用Puppeteer的更多信息。 我该如何解决这个问题?
更多信息: