Title: Local testing fails when testObservability added to e2e.js · Issue #657 · browserstack/browserstack-cypress-cli · GitHub
Open Graph Title: Local testing fails when testObservability added to e2e.js · Issue #657 · browserstack/browserstack-cypress-cli
X Title: Local testing fails when testObservability added to e2e.js · Issue #657 · browserstack/browserstack-cypress-cli
Description: I noticed that when I try my Cypress tests on my local machine they will always fail when the following line is present in cypress/support/e2e.js: require('browserstack-cypress-cli/bin/testObservability/cypress'); The error I get (for ev...
Open Graph Description: I noticed that when I try my Cypress tests on my local machine they will always fail when the following line is present in cypress/support/e2e.js: require('browserstack-cypress-cli/bin/testObservab...
X Description: I noticed that when I try my Cypress tests on my local machine they will always fail when the following line is present in cypress/support/e2e.js: require('browserstack-cypress-cli/bin/testObse...
Opengraph URL: https://github.com/browserstack/browserstack-cypress-cli/issues/657
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Local testing fails when testObservability added to e2e.js","articleBody":"I noticed that when I try my Cypress tests on my local machine they will always fail when the following line is present in cypress/support/e2e.js:\r\n`require('browserstack-cypress-cli/bin/testObservability/cypress');`\r\n\r\nThe error I get (for every scenario):\r\n```\r\nTypeError: Cannot read properties of undefined (reading 'get')\r\n at runPrivilegedCommand (http://localhost:55177/__cypress/runner/cypress_runner.js:173408:27)\r\n at $Cy.task (http://localhost:55177/__cypress/runner/cypress_runner.js:151114:107)\r\n at $Cy.now (http://localhost:55177/__cypress/runner/cypress_runner.js:160956:90)\r\n at ../driver/node_modules/eventemitter2/lib/eventemitter2.js.EventEmitter.emit (http://localhost:55177/__cypress/runner/cypress_runner.js:96092:22)\r\n at parent.\u003ccomputed> [as emit] (http://localhost:55177/__cypress/runner/cypress_runner.js:164812:31)\r\n at $Cypress.action (http://localhost:55177/__cypress/runner/cypress_runner.js:157297:21)\r\n at LogManager.trigger (http://localhost:55177/__cypress/runner/cypress_runner.js:165684:22)\r\n at LogManager.triggerLog (http://localhost:55177/__cypress/runner/cypress_runner.js:165689:17)\r\n at $Cypress.log (http://localhost:55177/__cypress/runner/cypress_runner.js:165736:12)\r\n at commandRunningFailed (http://localhost:55177/__cypress/runner/cypress_runner.js:159448:18)\r\n at onError (http://localhost:55177/__cypress/runner/cypress_runner.js:159854:7)\r\n at tryCatcher (http://localhost:55177/__cypress/runner/cypress_runner.js:18744:23)\r\n at Promise._settlePromiseFromHandler (http://localhost:55177/__cypress/runner/cypress_runner.js:16679:31)\r\n at Promise._settlePromise (http://localhost:55177/__cypress/runner/cypress_runner.js:16736:18)\r\n at Promise._settlePromise0 (http://localhost:55177/__cypress/runner/cypress_runner.js:16781:10)\r\n at Promise._settlePromises (http://localhost:55177/__cypress/runner/cypress_runner.js:16857:18)\r\n at _drainQueueStep (http://localhost:55177/__cypress/runner/cypress_runner.js:13451:12)\r\n at _drainQueue (http://localhost:55177/__cypress/runner/cypress_runner.js:13444:9)\r\n at ../../node_modules/bluebird/js/release/async.js.Async._drainQueues (http://localhost:55177/__cypress/runner/cypress_runner.js:13460:5)\r\n at Async.drainQueues (http://localhost:55177/__cypress/runner/cypress_runner.js:13330:14)\r\n```\r\n\r\nOnce I remove the line from e2e.js, my tests run fine on my local machine. It doesn't seem to have an impact on my Browserstack integration either, maybe because in my config I've set \"testObservability\": false\r\n\r\nCypress version: 12.17.2\r\nBrowserstack-cypress-cli version: 1.24.4\r\nRun on latest windows version.","author":{"url":"https://github.com/jdvegmond","@type":"Person","name":"jdvegmond"},"datePublished":"2023-07-21T12:30:26Z","url":"https://github.com/browserstack/browserstack-cypress-cli/issues/657"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:32215408-16cd-a54b-8d25-c2ce5e3461ba |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC14:1F1B5:D500AC:12950E3:6B043E2E |
| html-safe-nonce | 86a6870dea36660a4181ea7f805f7221ccf07b0e761c3f36e8429bdb55db4891 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzE0OjFGMUI1OkQ1MDBBQzoxMjk1MEUzOjZCMDQzRTJFIiwidmlzaXRvcl9pZCI6Ijg2OTUyNzkwMTc2MDEwMjM1MzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f81589e7d206190818f05db445e8ef75de45babf94b1664c7da6bf93cad78934 |
| hovercard-subject-tag | issue:1815727795 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/browserstack/browserstack-cypress-cli/657/issue_layout |
| twitter:image | https://opengraph.githubassets.com/da98ca24f297eef6b9bd8b4de7feabcaacb2b25f7feb7b8e09554d7869ac8c79/browserstack/browserstack-cypress-cli/issues/657 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/da98ca24f297eef6b9bd8b4de7feabcaacb2b25f7feb7b8e09554d7869ac8c79/browserstack/browserstack-cypress-cli/issues/657 |
| og:image:alt | I noticed that when I try my Cypress tests on my local machine they will always fail when the following line is present in cypress/support/e2e.js: require('browserstack-cypress-cli/bin/testObservab... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jdvegmond |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| turbo-cache-control | no-preview |
| go-import | github.com/browserstack/browserstack-cypress-cli git https://github.com/browserstack/browserstack-cypress-cli.git |
| octolytics-dimension-user_id | 1119453 |
| octolytics-dimension-user_login | browserstack |
| octolytics-dimension-repository_id | 242935045 |
| octolytics-dimension-repository_nwo | browserstack/browserstack-cypress-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 242935045 |
| octolytics-dimension-repository_network_root_nwo | browserstack/browserstack-cypress-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width