Code Monkey home page Code Monkey logo

Comments (93)

agoldis avatar agoldis commented on July 19, 2024

The fix is in progress

from cypress-cloud.

Roemer avatar Roemer commented on July 19, 2024

Is this also related to the issue that viewing a run in Sorry Cypress is not possible and shows the following error:
image

from cypress-cloud.

agoldis avatar agoldis commented on July 19, 2024

Please check out the upgrade guide: https://currents.dev/readme/integration-with-cypress/cypress-cloud/migration-to-cypress-13

from cypress-cloud.

anlambert avatar anlambert commented on July 19, 2024

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.

richardmward avatar richardmward commented on July 19, 2024

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.

agoldis avatar agoldis commented on July 19, 2024

Thanks @anlambert and @richardmward, working on the fixes for those issues

from cypress-cloud.

estefafdez avatar estefafdez commented on July 19, 2024

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.

estefafdez avatar estefafdez commented on July 19, 2024

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 image

from cypress-cloud.

agoldis avatar agoldis commented on July 19, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.