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.

1 vote
1 answer
17 views

Handling unavailable price element with another element

So, I've made this web scraping script for Cypress. It goes to a shop website and scrapes the listed products (product titles and prices). Namely, in the case of certain products, there is no price ...
No Tools No Craft's user avatar
0 votes
1 answer
17 views

Should I Run a Development Server or a Production Server for Cypress E2E Tests in CI? [closed]

I am currently running E2E tests for my React application using Cypress in a CI environment. Before executing the Cypress tests, I need to start the React server. I am undecided whether to run the ...
Jihoo Kim's user avatar
0 votes
0 answers
24 views

Problem accessing web elements using Cypress [closed]

I use Cypress and typescript. I ran into a problem. The page has a form with a button and input fields. Expected result: When you click the button, the input fields become available for editing. ...
Norlerion's user avatar
0 votes
0 answers
16 views

There is a way of playing AVI video file via Cypress? [closed]

There is a way of playing AVI video file via Cypress? I have a test that play video in a specific time, then it's export the played time to AVI file. I need to open the AVI and play it via Cypress. It ...
Bar Yamin Golan's user avatar
0 votes
2 answers
58 views

Can I expect "time now" with leniency by a few minutes? [closed]

I'm using the dayjs function and wanted to try and add some leniency to the "time now" so that my test doesn't fail if it takes longer than a minute to run/load. Currently I have the below ; ...
kkibbey's user avatar
0 votes
0 answers
16 views

Configuration of gitlab.yml for smoke and full tests using the pipeline schedules

I would like to set up tests that will fire on the gitlab pipline. I would like to split the tests in cypress so that smoke fires once a day and all tests once a week. I have configured pipeline ...
Barsta's user avatar
  • 1
1 vote
1 answer
26 views

How to run both storybook and cypress in headless mode

I am trying to use storybook and cypress for component testing with Angular framework .I am able to run test cases when storybook server and cypress are running separately but finding difficult to run ...
code_buddy's user avatar
0 votes
1 answer
21 views

Return when cy.wrap failed [closed]

I have sometimes problems, that the line cy.wrap... break, when the IDTest element load to long. I am looking for a way, that this line jump back with an return to the function when this line failed. ...
StackDos's user avatar
0 votes
0 answers
18 views

Cypress Your test are loading after submit [closed]

Are there any bugs in Cypress that prevent this from happening? I created a function for the signup flow, and after submission, Cypress reloads the test. cy.get('[data-cy="button-submit-signup&...
Eric's user avatar
  • 1
-1 votes
1 answer
35 views

When using nextjs with cypress to render coverage I keep getting error on declaring the global namespace

See example repo: https://github.com/inspiraller/nextjs-with-cypress-coverage tsconfig.json { "compilerOptions": { "baseUrl": ".", "lib": ["dom&...
Steve Tomlin's user avatar
  • 3,655
0 votes
0 answers
17 views

Cypress skips the first letter when typing [closed]

I'm building a table in react and I'm testing it with cypress. I have a component that turns into an input when focused and pressed. For an unknown reason Cypress is not typing this first letter. Here ...
Guillermo Espinosa's user avatar
0 votes
0 answers
27 views

Getting 404 in Cypress test [closed]

I'm getting started with Cypress but I got stuck at the "hello world" of it ! I'm trying to open a page, first it worked like a charm, then all of a sudden the webstie started giving 404 ...
Rima's user avatar
  • 460
0 votes
0 answers
22 views

Assigning input value to variable in Cypress [duplicate]

For a Cypress e2e test I need to read out the value of an input field into a variable, but I haven't found a proper way to do this. First, I tried this: cy.get('[data-cy=password-input]') .invoke('...
Maxim's user avatar
  • 547
-1 votes
0 answers
37 views

Running Cypress tests as a Gradle task yields non-ASCII characters

This topic has been discussed at length. I've read several posts on Github and SO, however I am unable to find a reliable solution. My question is specific to the Windows 11 environment, Java 17 and ...
Jim Kennedy's user avatar
0 votes
0 answers
13 views

common method for Click using Cypress [closed]

i have declared elements in page Object class as below ` elements = { imageButtonRole: () => cy.get('li[title="Change Role"]', { timeout: tout }).children('img'), }` now i ...
Kiran Kumar A's user avatar

15 30 50 per page
1
2 3 4 5
663