Skip to main content

All Questions

Tagged with
-2 votes
0 answers
30 views

GitHub Actions Workflow for Cypress Tests Only on Successful Deployment and Non-Main PRs

I'm trying to set up a GitHub Actions workflow to run Cypress end-to-end tests. I want the tests to trigger only when: A new pull request is created (or updated). The deployment to Vercel is ...
user12504353's user avatar
0 votes
2 answers
41 views

How do I override high level env variables in a github actions .yml file at lower levels?

I have a .yml file for my CI/CD pipeline in Github Actions. I have an env variable that gets set at the job level, and then reset at the step level for a single step. However, the env at the step ...
Francis Yang's user avatar
0 votes
1 answer
35 views

Cypress test on github action is not failing as expected

I'm building a CI with github action and I want to run a login attempt test, there are two specs, the first makes the attempt (where it blocks for 10 minutes for the next attempt) and the other checks ...
Luiz Henrique's user avatar
0 votes
0 answers
33 views

Github actions CI/CD pipeline is unable to retrieve environment variables from cypress.config.ts

In my GitHub Actions CI/CD pipeline, there is a step for Cypress end-to-end tests that uses the command npx nx run ${{ inputs.repo_project_name }}:e2e. My end-to-end tests are failing because they are ...
Shivam Srivastava's user avatar
0 votes
0 answers
49 views

Terminate GitHub Action job immediately based on job log content

I have a github action, which executes cypress tests. These tests are "crashing" sometimes with an unexpected error. Edit: add shortened version of actions file. jobs: build-docker: ...
rickroyce's user avatar
  • 1,032
1 vote
2 answers
77 views

Using github actions env vars to run different base Urls in feature and staging for snowflake Cypress test

I have a suite of Cypress tests that all use the same base Url except for one legacy test. The legacy test is using a before hook which has a cy.visit of http://e2etest.dev.my-company.com:8081/company/...
Pix81's user avatar
  • 665
1 vote
0 answers
65 views

Enabling cypress parallelization on a windows virtual machine

How can I modify the following yml file in github actions to enable parallelization in cypress but have the tests run in an orderly manner? I mean I managed to enable parallelization but the virtual ...
Alexandru Cristian's user avatar
1 vote
1 answer
75 views

Testing a vercel preview app using cypress

How can I dynamically retrieve the URL of a preview app created on Vercel when a pull request is made in a Next.js project deployed via GitHub? I want to utilize Cypress for testing purposes on this ...
user12504353's user avatar
0 votes
0 answers
72 views

Cypress e2e test can't access app url in GitHub Actions

I am trying to set up an e2e test in my app using Cypress and GitHub Actions. The tests pass in local with no issue but, when I push to GitHub and consequently run the tests, they don't anymore. The ...
Pierre Fraisse's user avatar
0 votes
0 answers
20 views

Cannot Produce Baseline on Cloud for Visual Tests

I'm using Cypress and Github-Actions together. I'm using "cypress-image-diff-js" plugin to take care of comparing and testing visuals and test whether image is correct or not. These ...
Ugurcan's user avatar
  • 81
0 votes
1 answer
49 views

junit reporter writes only last test suite to xml

I have cypress unit and end to end tests in my project. I am writing github actions workflow which will do testing, unit test and end to end testing using cypress commands. I want test results in the ...
Shivam Srivastava's user avatar
0 votes
1 answer
45 views

Cannot config yml file in github actions for parallellization

I want to activate 4 virtual machines for cypress cloud parallelization but with the mention that for each virtual machine I want to have a folder suite_${{virtual machine number}} so as not to ...
alexandrucristian1505's user avatar
0 votes
1 answer
89 views

Problems with Redirection in Cypress for a Vue 3 SPA Exclusively on GitHub Actions CI

I'm experiencing issues with testing routing in a Single Page Application (SPA) using Cypress, specifically when running tests in a Continuous Integration (CI) environment. Despite the fact that tests ...
glbst's user avatar
  • 1
0 votes
0 answers
52 views

Instances running same tests in GitHub Actions for Cypress Cloud with parallelization

I have this YAML code in GitHub Actions; how can I optimize the code so that each instance takes 30 different tests from the source folder out of a total of 90 tests path: cypress/e2e/Tests and does ...
alexandrucristian1505's user avatar
2 votes
1 answer
110 views

How to use cy.writeFile() in github actions

I am new to cypress and I am using cy.writeFile('cypress/output/xyz.csv',\n${headers},{ flag: 'a+'}) to store data, it is working fine locally when I run through runner or terminal with headless, but ...
amit 's user avatar
  • 33

15 30 50 per page
1
2 3 4 5
8