mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-04 03:00:32 +08:00
Add CONTINUE_ON_ERRORS test flag
This allows when debugging tests to avoid that the test ends before having an opportunity to debug what really went wrong.
This commit is contained in:
@@ -57,12 +57,14 @@ export const test = base.extend<{
|
||||
log(msg.text(), browserLabel, outputLog);
|
||||
});
|
||||
|
||||
page.on("pageerror", msg => {
|
||||
expect(
|
||||
false,
|
||||
`Test failed because there was a console error in the app: ${msg}`,
|
||||
).toBeTruthy();
|
||||
});
|
||||
if (!process.env.CONTINUE_ON_ERRORS) {
|
||||
page.on("pageerror", msg => {
|
||||
expect(
|
||||
false,
|
||||
`Test failed because there was a console error in the app: ${msg}`,
|
||||
).toBeTruthy();
|
||||
});
|
||||
}
|
||||
|
||||
if (!customAppConfig) {
|
||||
// Remember: `page.addInitScript()` is run in the browser which
|
||||
|
||||
Reference in New Issue
Block a user