Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Add CONTINUE_ON_ERRORS test flag
Sebastian Martinez committed 2 years ago
commit bdd83644a66fc781d0d7e1eb795b43c8dc3c9e93
parent 364844f47f9cdbc379ae37d9e95386d69def85f4
1 file changed +8 -6
modified tests/support/fixtures.ts
@@ -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