Comments (93)
The fix is in progress
from cypress-cloud.
Is this also related to the issue that viewing a run in Sorry Cypress is not possible and shows the following error:
from cypress-cloud.
Please check out the upgrade guide: https://currents.dev/readme/integration-with-cypress/cypress-cloud/migration-to-cypress-13
from cypress-cloud.
I just tested the upgrade to cypress-cloud beta and tests are no longer reported as failing, see https://jenkins.softwareheritage.org/blue/organizations/jenkins/DWAPPS%2Fgitlab-builds/detail/gitlab-builds/302/pipeline/89/.
There is still the error about screenshots that appears after each test suite though but if you do not use that cypress feature it is not critical for running the tests.
from cypress-cloud.
I too am having issues with the latest build 1.10.0-beta.2
, but not the same as above.
file:///C:/dev/src/my-project/node_modules/cypress-cloud/index.mjs:2273
..._11.cloneDeep(specResults),
^
TypeError: _11.cloneDeep is not a function
Hacking in a bit of debugging, it seems that _11
contains default
, which contains cloneDeep
- which seems to me to be imported as a commonjs module rather than esm (which is how all my project is configured).
EDIT:
In v1.9.4
, the imports in index.mjs
are in the format import _11 from "lodash";
, whereas in same file in v1.10.0-beta.2
, the imports are now import * as _11 from "lodash";
from cypress-cloud.
Thanks @anlambert and @richardmward, working on the fixes for those issues
from cypress-cloud.
For us, after updating everything to the latest version we got the following error, and the specs are not executed:
11:47:24 Copyright (C) 2023 Currents Software Inc https://currents.dev
11:47:24 This is free software, and you are welcome to redistribute it under certain
11:47:24 conditions. This program comes with no warranty. Parts of this program are MIT
11:47:24 licensed. Refer to the license for details
11:47:24 https://github.com/currents-dev/cypress-cloud/blob/main/LICENSE.md
11:47:24
11:47:26
11:47:26
11:47:26 (Attempt 1 of 2) An uncaught error was detected outside of a test
11:47:26 1) An uncaught error was detected outside of a test
11:47:26
11:47:26 0 passing (910ms)
11:47:26 1 failing
11:47:26
11:47:26 1) An uncaught error was detected outside of a test:
11:47:26 Error: The following error originated from your test code, not from Cypress.
11:47:26
11:47:26 > Dynamic require of "@neuralegion/cypress-har-generator/commands" is not supported
11:47:26
11:47:26 When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.
11:47:26
11:47:26 Cypress could not associate this error to any specific test.
11:47:26
Versions:
- "cypress": "13.1.0",
- "cypress-cloud": "1.9.4",
- "cypress-debugger": "^1.0.9",
from cypress-cloud.
The tests are working with
"cypress": "13.1.0",
"cypress-cloud": "1.10.0-beta.2",
"cypress-debugger": "1.0.7",`
and you can see the logs on the command line that the tests passed ok:
12:45:25 (Run Starting)
12:45:25
12:45:25 ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
12:45:25 │ Cypress: 13.1.0 │
12:45:25 │ Browser: Electron 106 (headless) │
12:45:25 │ Node Version: v16.16.0 (/usr/bin/node) │
12:45:25 │ Specs: 1 found (admin_auth.spec.ts) │
12:45:25 │ Searched: cypress/test/genially/admin/admin_auth.spec.ts │
12:45:25 │ Experiments: experimentalRunAllSpecs=true,experimentalMemoryManagement=true,experimentalWe… │
12:45:25 └────────────────────────────────────────────────────────────────────────────────────────────────┘
12:45:25
12:45:25
12:45:25 ────────────────────────────────────────────────────────────────────────────────────────────────────
12:45:25
12:45:25 Running: admin_auth.spec.ts (1 of 1)
12:45:32
12:45:32
12:45:32 Admin/Auth/AdminUser
12:45:37 ✓ should login as authorized master user (5497ms)
12:45:40 ✓ should logout as authorized master user (2265ms)
12:45:40
12:45:40
12:45:40 2 passing (9s)
12:45:40
12:45:40
12:45:40 (Results)
12:45:40
12:45:40 ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
12:45:40 │ Tests: 2 │
12:45:40 │ Passing: 2 │
12:45:40 │ Failing: 0 │
12:45:40 │ Pending: 0 │
12:45:40 │ Skipped: 0 │
12:45:40 │ Screenshots: 0 │
12:45:40 │ Video: false │
12:45:40 │ Duration: 8 seconds │
12:45:40 │ Spec Ran: admin_auth.spec.ts │
12:45:40 └────────────────────────────────────────────────────────────────────────────────────────────────┘
12:45:40
12:45:40
12:45:40 resize: can't open terminal /dev/tty
12:45:40 ====================================================================================================
12:45:40
12:45:40 (Run Finished)
12:45:40
12:45:40
12:45:40 Spec Tests Passing Failing Pending Skipped
12:45:40 ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
12:45:40 │ ✔ admin_auth.spec.ts 00:08 2 2 - - - │
12:45:40 └────────────────────────────────────────────────────────────────────────────────────────────────┘
12:45:40 ✔ All specs passed! 00:08 2 2 - - -
12:45:40
12:45:40
12:45:40 Reporting results and artifacts in background...
12:45:40
12:45:40 ERROR TypeError: Cannot read properties of undefined (reading 'flatMap')
12:45:40 at /home/ubuntu/workspace/workspace/ressED_qa_PD-13026_cy13_recorder/mono-genially/qa/e2e/node_modules/lib/results/results.ts:27:21
12:45:40 at Array.flatMap (<anonymous>)
12:45:40 at /home/ubuntu/workspace/workspace/ressED_qa_PD-13026_cy13_recorder/mono-genially/qa/e2e/node_modules/lib/results/results.ts:26:19
12:45:40 at Array.flatMap (<anonymous>)
12:45:40 at getRunScreenshots (/home/ubuntu/workspace/workspace/ressED_qa_PD-13026_cy13_recorder/mono-genially/qa/e2e/node_modules/lib/results/results.ts:25:16)
12:45:40 at getInstanceResultPayload (/home/ubuntu/workspace/workspace/ressED_qa_PD-13026_cy13_recorder/mono-genially/qa/e2e/node_modules/lib/results/results.ts:66:18)
12:45:40 at getReportResultsTask (/home/ubuntu/workspace/workspace/ressED_qa_PD-13026_cy13_recorder/mono-genially/qa/e2e/node_modules/lib/results/uploadResults.ts:26:27)
12:45:40 at createReportTask (/home/ubuntu/workspace/workspace/ressED_qa_PD-13026_cy13_recorder/mono-genially/qa/e2e/node_modules/lib/runner/reportTask.ts:30:5)
12:45:40 at /home/ubuntu/workspace/workspace/ressED_qa_PD-13026_cy13_recorder/mono-genially/qa/e2e/node_modules/lib/runner/runner.ts:58:7
12:45:40 at Array.forEach (<anonymous>)
12:45:40 at runTillDone (/home/ubuntu/workspace/workspace/ressED_qa_PD-13026_cy13_recorder/mono-genially/qa/e2e/node_modules/lib/runner/runner.ts:57:14)
12:45:40
12:45:40
12:45:40 ====================================================================================================
12:45:40
12:45:40
12:45:40 Cloud Run Finished
12:45:40
12:45:40 ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
12:45:40 │ Spec Tests Passing Failing Pending Skipped │
12:45:40 ├────────────────────────────────────────────────────────────────────────────────────────────────┤
12:45:40 │ ✔ cypress/test/genially/admin/ad 8.6s 2 2 - - - │
12:45:40 │ min_auth.spec.ts │
12:45:40 ├────────────────────────────────────────────────────────────────────────────────────────────────┤
12:45:40 │ ✔ All specs passed! 8.6s 2 2 - - - │
12:45:40 └────────────────────────────────────────────────────────────────────────────────────────────────┘
12:45:40
12:45:40 🏁 Recorded Run: https://dashboard-sorrycypress.genially.com/run/4acaa09f2aa7f36f26d5acbec86c675e
The problem is, that the results do not appears on sorry cypress (or the mongodb) and you get 0 tests executed (and the specs runs indefinitely)
![image](https://user-images.githubusercontent.com/6990209/266587267-fec8d3cf-3348-474b-ad49-756700e02436.png)
![image](https://user-images.githubusercontent.com/6990209/266587342-79641042-133c-4f1c-a891-dab36a0475e1.png)
from cypress-cloud.
@estefafdez thanks for reporting - will keep cypress-debugger issue separated
@Roemer, @anlambert and @richardmward please check out 1.10.0-beta.3
also, please submit the debug logs when you face issues - would be much easier for us, and thanks for helping with polishing the integration!
from cypress-cloud.
Related Issues (20)
- Providing a comma-separated list of specs in an API call is not working
- Retry tests that failed when Chromium Renderer process crashed HOT 3
- Possibility to pass path to currents.config via CLI
- [CSR-635] Support ESM HOT 11
- When using cypress-cloud with the cypress-testrail plugin, testrails runs are created for each spec file and not the entire run HOT 2
- How to combine cypress-cloud and cypress-ntlm HOT 2
- Support multiple config files
- License file missing HOT 2
- Upload screenshots to Azure Blob Storage KO
- Can't use --headless on CLI. HOT 1
- Using CJS syntax in EMS setup fails HOT 5
- When launching 2 cypress-cloud run command for a same pipeline by specifying a tag, the second tagged run is not run.
- Glob patterns not working for --spec parameter HOT 1
- Advice on how best to avoid clashes between `cloudPlugin` and our own setup? HOT 1
- Question: Why not seeing the current test on 'npx cypress-cloud run' command HOT 4
- Executing requirements before execution of all spec files HOT 1
- Mochawesome.json is always deleted for each spec file ran HOT 2
- CSR-674 exit with code 1 when no specs detected
- "--record" flag is always being set to false HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cypress-cloud.