Questions tagged [cypress-testing-library]

Questions about Cypress end-to-end testing with the **Cypress Testing Library** utilities (a subset of the Testing Library).

Documentation can be found at Cypress Testing Library.

Testing Library provides additional testing commands to the Cypress framework.

214 questions
0
votes
0 answers

Cypress log out after 3DS check for checkout.com

Im writing a test for the payment section on Cypress after clicking on the payment button page goes to the external URL. e.g. from http://localhost:64574/ to…
0
votes
1 answer

Cypress, cy.findByRole('textbox', { name: /Seu e-mail/i }) not finding a text input

I have this test code describe('smoke', () => { it('should type e-mail', () => { cy.visit('/auth/login'); cy.findByRole('textbox', { name: /Seu e-mail/i }).type( 'analyst@open-cred.com' ); }); }); This is the HTML:
0
votes
0 answers

Cypress - how to handle async commands

I am just trying to handle impossible stuff in Cypress :) Basically I am taking token from indexedDB using 'idb' library -> https://www.npmjs.com/package/idb To get that I have created async function export const getTokenFromIndexedDB = async () =>…
Robert
  • 313
  • 1
  • 2
  • 8
0
votes
2 answers

Why we need to use cy.wait() if cypress offer automatic wait before displaying error element not found?

As we know we can set default timeout in cypress and if element not present cypress will wait for that specific time before returning error element not found. Then why we use cy.wait(). Is there any specific example where we have to use cy.wait()?
0
votes
1 answer

Cypress visiting an URL is not loading content of the site

When I set baseUrl and try to visit URL, the content of the URL is not getting loaded. Here is config file. const { defineConfig } = require("cypress"); module.exports = defineConfig({ projectId: 'qu3jox', e2e: { baseUrl :…
0
votes
0 answers

How to connect Cypress to Zephyr Scale?

I have been trying to connect my cypress tests with the Zephyr Scale Jira plugin, but I cannot really do it. Can somebody recommend me anything that can be used to connect the cypress tests with zephyr scale? When running this command: npx cypress…
0
votes
0 answers

How to perform parallel execution on different browsers in cypress for different test suites

I have two commands in package.json > "Leeds_TestSuiteChrome": "npx cypress run --spec cypress/e2e/LE_Site_TestSuite --headed --browser chrome --record --key keynumber", "WS_TestSuiteEdge": "npx cypress run --spec cypress/e2e/WS_Site_TestSuite…
0
votes
0 answers

Cypress automation for status check

I'm trying to automate the application to check the status for 1000 employees and Below if the code. First it tries to open and next when it tries to hit another time the pop-up comes so, the test fails. But I have to open in 1000 tabs to check the…
Hema Nandagopal
  • 668
  • 12
  • 35
0
votes
1 answer

Cypress 12 + angular 15 + input chain failling randomly

I just migrate my application from angular 12 to angular 15 (and material 15). The cypress also migrated from 8.7.0 to 12.3.0 Since the migration, the existing cypress tests are not constant in execution. I have too kinds of issue: Cannot get…
0
votes
2 answers

Why does my web page keep crashing at the end of this test?

I am using Cypress to run a test, I sent one email to the other then sign into the second email to see if the email was sent. Unfortunately though at the bottom of the below code the webpage in Cypress turns to blank. Any idea why and what I can do…
user18609403
0
votes
1 answer

How we can handle the windows when there is no href and target link in cypress?

example https://rahulshettyacademy.com/AutomationPractice/ on click window I have tried with get the property of onclick but its displaying undefined, if any one have a code please post here.
0
votes
0 answers

Trying to access IFrame body while login to gmail but Cypress is not able to find iframe content body

I'm trying to click Gmail tab in frame. I'm trying to access iframe using cy.get("iframe[name='app']") as it doesn't have unique id or class. And this iframe is visible but it's body is not accessable. through automation we can see that body of…
0
votes
0 answers

Cypress locate elements within a modal type modal-content

I am doing some tests with Cypress where pressing a button displays a modal and within the modal I must locate and click a button. Steps that the test performs: Enter https://www.kfc.co/ Select the 'Menu' option Select the 'Combos' category Select…
0
votes
1 answer

how to get value attribute of radio input with cypress?

I have a radio element below is my cypress code cy.getAllByRole("radio").first().click() how do I get the value attribute of the radio element? something like this const radioValue =…
Rahul Yadav
  • 2,627
  • 5
  • 30
  • 52
0
votes
0 answers

Cypress 10.11.0v parallel execution local

I am using cypress 10.11.0 and used "barrel" spec to run multiple imported specs and works fine for me. Is there a way to run the specs in parallel way to get the results at the earlier. Or is there a way to run all specs at the same time but, with…