Closed przemdabr closed 1 year ago
Please reopen with a full log
cy2@4.0.5
CYPRESS_API_URL=https://cy.currents.dev npx cy2 run --parallel --record --key xxx --ci-build-id `date +%s` --spec ./cypress/integration/110.spec.js
// 110.spec.js
describe("Origin", function () {
it("Runs a test", function () {
cy.visit("https://google.com/");
cy.get('[alt="Google"]').should("be.visible");
cy.origin("https://docs.cypress.io", {}, () => {
cy.visit("/api/commands/origin#Syntax");
cy.get("h2").contains("Syntax");
});
});
});
[cy2] Using cloud orchestration service: https://cy.currents.dev
Missing baseUrl in compilerOptions. tsconfig-paths will be skipped
====================================================================================================
(Run Starting)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 12.3.0 │
│ Browser: Electron 106 (headless) │
│ Node Version: v16.17.1 (/Users/agoldis/.nvm/versions/node/v16.17.1/bin/node) │
│ Specs: 1 found (110.spec.js) │
│ Searched: cypress/integration/110.spec.js │
│ Params: Tag: false, Group: false, Parallel: true │
│ Run URL: https://app.currents.dev/run/90362486a5ff7e82faa984c8b173811f │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
────────────────────────────────────────────────────────────────────────────────────────────────────
Running: 110.spec.js (1 of 1)
Origin
✓ Runs a test (3111ms)
1 passing (4s)
(Results)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 1 │
│ Passing: 1 │
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 0 │
│ Video: true │
│ Duration: 4 seconds │
│ Spec Ran: 110.spec.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
(Video)
- Started processing: Compressing to 32 CRF
- Finished processing: /Users/agoldis/currents-demo/cypress/videos/110.spec.js.mp4 (1 second)
(Uploading Results)
- Done Uploading (1/1) /Users/agoldis/currents-demo/cypress/videos/110.spec.js.mp4
====================================================================================================
(Run Finished)
Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✔ 110.spec.js 00:04 1 1 - - - │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
✔ All specs passed! 00:04 1 1 - - -
───────────────────────────────────────────────────────────────────────────────────────────────────────
Recorded Run: https://app.currents.dev/run/90362486a5ff7e82faa984c8b173811f
https://user-images.githubusercontent.com/1637928/211932335-a3b9079b-b16d-48d5-bc17-4832983b1d14.mp4
Thank you! With 4.0.5 is working perfectly.
Before opening, please confirm:
Environment information
Running parallelization on GitLab pipeline: Running with gitlab-runner 14.8.3
Describe the bug
I have a test where I'm running the app on the x page and then I'm going to the second domain with cy.origin command.
When I'm using it on a single run (without parallelization) the test is passing.
When I'm using parallelization I'm getting the error below: Error: The following error originated from your test code, not from Cypress. It was caused by an unhandled promise rejection.
Expected behavior
Open the second domain using cy.origin command as on a single run.
Command and Setup
"test": "npx cy2 run --record --key XXX --parallel --ci-build-id $CI_PIPELINE_ID"
Full log and debug output