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: get text from div sibling

I am trying to get a div content from a page in order to use it later in the test process . This is an extract of the structure of the page:
Ihre Bestellnummer
andyRandy
  • 93
  • 1
  • 3
  • 10
0
votes
1 answer

Cypress command terminal error: is not assignable to parameter of type keyof Chainable

The Cypress e2e tests run but I do get an error related to Cypress.Commands.add('loginAs'. My commands are stored in the folders: cypress/support/commands.ts and seem to be used by my e2e tests. So not sure why I get this error. I get the following…
0
votes
1 answer

Cypress not running with react-app-rewired

I am trying to run cypress tests with reac-app-rewired but somehow I cannot get it working. It appears as if cypress is not able to detect the config-overrides.js file in my project and I keep getting the following error when I run the command npm…
mnagdev
  • 384
  • 3
  • 11
0
votes
0 answers

How to automate cypress outlook using cypress

How to automate outlook using Cypress. I need to login into Outlook and search email then click on content Please help me t cy.clearAllCookies() cy.clearAllLocalStorage() cy.visit("https://outlook.office.com") cy.pause() //…
0
votes
0 answers

Why do I get error 'Login failed for user 'sa'' when running Cypress tests with MSSQL database?

i´m trying to create to my web appplication, E2E tests with cypress. This application has any test with PHPUnit and DUSK and we want change this tecnologies for cypress. I need connect any test cypress to database that my database server it´s MSSQL…
0
votes
0 answers

Cypress Drag and Drop for Pseudo element

Source element Ready Messages Before I drop source element to Target element , Target element looks like below
0
votes
0 answers

Keyboard navigation is not working with realPress() method in cypress

I am trying to mimic the keyboard navigation in my Cypress test. I found a nice lib https://github.com/dmtrKovalenko/cypress-real-events#cyrealpress. The method realPress() is working partially: not all key codes from…
Viktor Ilienko
  • 817
  • 8
  • 15
0
votes
0 answers

How to configure Cypress component testing when Cypress is installed outside the Frontend project

I have a Frontend App for that I am using cypress e2e testing. The structure of this is : a folder with the (Angular) FE app; and outside this, another folder with the cypress installation. In my env file I set the deployed version app on which I am…
0
votes
1 answer

Install Cypress for API Automation Testing

I am new to Cypress and trying to use it for API testing. Currently, I am using Cypress for UI automation and installed it in the client directory. Now I have a confusion, If I am going to use Cypress for API testing do I need to install it again in…
Kevin
  • 15
  • 3
0
votes
1 answer

How can we group cypress specs using tags and run groups in parallel on circleci?

Suppose I have the following it blocks. I have added some tags to group the tests. I need to run all the specs having "Group1" tag on one machine. And those having "Group2" tag in the other machine. Basically, I need to run Group1 and Group2 in…
0
votes
0 answers

Cypress after clicking log in button doesnt load the next page

So I have a really basic app that I want to log in and it gives me this error after I try with this code here Cypress.Commands.add("test", () => { let appUrl = "baseurl"; cy.visit(appUrl); let usernameCredentials = "test"; let…
0
votes
1 answer

Passing a parameter to a function via cypress

I have a function that defines what market we should show to the user depending on their location. We have different cypress tests for each market. In my cypress tests, I want to invoke the function that defines the market by passing a variable. So…
user21175044
0
votes
1 answer

How to get cypress snapshot back in cypress runner while using Cypress latest version without plugins?

I was using cypress old versions and was able to see cypress is taking snapshot of executing each step. This feature was really powerful as we were able to see what is happening on each command through cypress time travel feature. But now in latest…
0
votes
0 answers

Can't Run Beacause No Spec file found Cypress

I am using Cypress version 9.0.0 and I have created Product1 and Product2 in my integration folder.I am using headless mode to run testcases using command - ./node_modules/.bin/cypress run --spec…
0
votes
0 answers

How to access static variable from test file

Page File: class DriveGridPage { static driveName = FileStoreCommonComponent.randomStringGenerator(5) } export default new DriveGridPage() Test File: import DriveGridPage from "../../pom/app_modules/drive/drive_grid_page" it("Create New…