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
9,953
questions
-1
votes
1
answer
37
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&...
0
votes
0
answers
18
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 ...
0
votes
0
answers
28
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 ...
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('...
-1
votes
0
answers
39
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 ...
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 ...
2
votes
2
answers
73
views
Using alias from before() in a it() test
In this example on the website, they say there is a simple way to use data you create in before() or beforeEach() in a testcase it(). But when I tried it it said my this.variable was undefined. After ...
0
votes
1
answer
41
views
cypress-cucumber-preprocessor dry option not working
How to use dry run option in cypress-cucumber-preprocessor package, so that I can get respective step definition for feature files. I have gone through the following link and used the command
npx ...
0
votes
0
answers
15
views
How use each in cypress when element is detached from DOM after action [duplicate]
I have this cypress code and it works. I need to iterate through all the links on the page. After clicking on each link, a breadcrumb tab opens. After closing the tab, the page with the links returns.
...
0
votes
0
answers
15
views
My Cypress tests are throwing CORS issues only when MS Clarity is enabled through our A/B Testing Tool
The Problem
When MS Clarity is enabled through our A/B Testing Tool, my CI/CD pipeline is throwing issues. Cypress says that an uncaught error was thrown from a cross-origin script. On production, ...
-3
votes
1
answer
50
views
Read value of key from one json file to another json file [closed]
I am doing Cypress automation with JavaScript. In this, I want to read value of one JSON file to another JSON file. And based on that want to retrieve other values.
Below is my credentials.json file:
{...
4
votes
1
answer
69
views
Cypress Component Testing in Angular Shadow Dom Components
I am trying to run Cypress component testing on a library of Angular components. Currently, all of my components have shadowDom turned on. Which seems to be causing me a problem when running multiple ...
0
votes
2
answers
42
views
cypress - how to continue running loop after assertion error
I have test that opens every item on the list. Then it validates if there are no empty ('--') fields. I want to log in console that there were empty fields and go to another item and run the loop till ...
-1
votes
0
answers
36
views
Cypress : Argument of type '(this: Context, query: any) => Bluebird<unknown>' is not assignable to parameter of type 'CommandFn [closed]
I am writing custom command in commands.ts file using Cypress and get the following error:
Argument of type '(this: Context, query: any) => Bluebird' is not assignable to parameter of type '...
0
votes
0
answers
44
views
cypress-firebase emulator default credentials error
i'm using React and Firebase to build an web app and i would like to use Cypress to do some end to end testing. I am new to Cypress. I'm trying to setup Cypress-Firebase NPM package but i'm getting ...