We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65d9ec7 commit d61174fCopy full SHA for d61174f
cypress/e2e/site.cy.js
@@ -1,3 +1,20 @@
1
+/**
2
+ * Handle uncaught exceptions from third-party scripts.
3
+ *
4
+ * The vector.co pixel.js script throws an uncaught exception when it detects a cloud provider environment.
5
+ * This happens in the GitHub Actions runner but not locally, causing tests to fail in CI.
6
7
+ * We catch and ignore this specific error while still allowing other legitimate errors to fail the tests.
8
+ */
9
+Cypress.on('uncaught:exception', (err) => {
10
+ // Return false to prevent the error from failing the test
11
+ if (err.message.includes('Cloud provider detected')) {
12
+ return false;
13
+ }
14
+ // Return true for other errors to fail the test
15
+ return true;
16
+});
17
+
18
describe("www.pulumi.com", () => {
19
20
describe("home page", () => {
0 commit comments