Skip to main content

Questions tagged [cypress]

Cypress an all-in-one web testing framework and assertion library developed in JavaScript, complete with automatic waits, request mocking, and request stubbing.

cypress
0 votes
2 answers
49 views

How can we prevent logging in and out repeatedly when utilizing multiple spec files in a Cypress Test Suite focused on grouping? [duplicate]

I have four test cases that require using the same credentials for logging in. When grouping these test cases, I aim to perform the login process only once, and ensure Cypress does not close the ...
Jigar Tanna's user avatar
1 vote
1 answer
55 views

cypress: how to mock useTranslation in test? [closed]

I want to ask that I have a component EmailSignUpView that use react-intl to translate text content. import { useTranslation as t } from '@utils/hooks'; <div className={styles.notifyContainer}> ...
JeffChen's user avatar
  • 207
2 votes
1 answer
36 views

Cypress - Page Load Fails despite loading correct JSON

I'm trying to learn Cypress. And I'm trying to intercept an API call and return a fixed JSOn response. It works correctly with all responses being sent, and the page loads in the IDE too but Cypress ...
Ariha's user avatar
  • 33
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
0 answers
24 views

Cypress - cannot select option in dropdown inside the iframe

I have a dropdown like below: The panel with the options is displayed only when the user starts typing. The DOM input element is defined as below: <input _ngcontent-ng-c3697127439="" ...
bartleo's user avatar
  • 41
0 votes
1 answer
40 views

How to wait until element is visible in Cypress without using timeout [closed]

How to wait until element is visible in Cypress without using timeout. Currently I am using the following method, but I don't need time and interval: Cypress.Commands.add('waitForElementPresent', (...
shivam's user avatar
  • 1
0 votes
0 answers
28 views

Nyc instrumentation code coverage report containing instrumented code

I am using nyc instrumentation and cypress code coverage plugin (https://docs.cypress.io/guides/tooling/code-coverage). Using npx nyc instrument I instrument my app, so cypress can intercept the ...
Lucas's user avatar
  • 11
0 votes
1 answer
34 views

cypress support/e2e.ts is running in component mode

I'm trying to add cypress component tests to a code base that already has e2e tests running. This is my run command: npx cypress run --component --browser chrome It is running support\e2e.ts which ...
Ger's user avatar
  • 191
0 votes
0 answers
25 views

how to fetch mochawesome report in case cypress crashes in jenkins

I am running my cypress tests in Jenkins using following command npm run test -- --spec 'cypress/myspecs/myspec.cy.js' --browser chrome --headless --reporter mochawesome --reporter-options ...
Tanzeel Ur Rahman's user avatar
0 votes
2 answers
68 views

Cypress .type does not update the v-model value in my form powered by Vue3

login.vue - which is the login page <template> <v-container id="login-page"> <v-row> <v-col> <input id="username" v-model="...
Dean Christian Armada's user avatar
0 votes
0 answers
11 views

I cant submit a iframe window pop up in Cypress

I am testing a endpoint made with aspx with cypress the issue appears on a popup iframe form for adding credit card info when I complete the info and hit on save buttom using of course cypress test ...
charlesr's user avatar
0 votes
0 answers
20 views

vite-istanbul/nyc only picks up untested files

I am running Cypress component tests for a vue3+vite app. Instrumentation is done via vite-instanbul plugin. In cypress, I am able to get window.__ coverage__ and see the counters on different files. ...
jenesaisquoi's user avatar
0 votes
1 answer
31 views

Failing on trying to use a function as a command in Cypress

I'm starting to work with Cypress and programming in general. I'm working on a very simple personal project executing TCs in a webpage. I have this piece of code in 'registrationPage.js' /// <...
Nahuel Valles'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
2 answers
33 views

Webpack compilation error with cypress-cucumber-preprocessor

Error Message: Webpack Compilation Error Module parse failed: Unexpected token (1:15) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this ...
Obr's user avatar
  • 1

15 30 50 per page