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
3 answers

Cypress - Checking value property inside a div

I'm trying to check the value of the value field inside a div. this value is not reflected to a string or a int in the div value, only in his attribute:
0
votes
1 answer

which version of @testing-library/cypress is compatible with cypress version 9.5.3?

I am trying to install @testing-library/cypress with cypress@9.5.3 already installed in my project. It gives me a could not resolve dependency error. It expects cypress@^12.0.0 I cannot update the cypress dependency. How do I find the right…
0
votes
0 answers

Data appear in Chrome but not in Cypress test runner

My problem is that when im opening website on my computer by chorme everything works fine. But when im using Cypress cy.visit() to reach this endpoint by Cypress test runner, the data not appear.. in runner i always get Null response and have no…
0
votes
0 answers

Cypress test do not run using Jenkins but run fine from command line. Throws Failed to construct 'URL': Invalid URL Error

We run our E2E tests against Chrome 70 on windows machine in headed mode using command npm install && cypress run --browser chrome --headed "--config" "baseUrl=http:serveraddress:8080" "--env" "Host=serveraddress". The tests connect to a server url…
0
votes
0 answers

Getting error with Toaster form using cypress end 2 end

I am new in the use of cypress, which makes me face concern. I would like to automate actions in order to test some Progressive Web App (PWA) and so I have recorded actions using the cypress extension of google chrome and when I create specs in…
0
votes
0 answers

Cypress BDD Cucumber Framework- Step Definition misconfigured issue

While running the test the following issue arises, We tried searching for files containing step definitions using the following search pattern…
0
votes
1 answer

How can I select the option in the dropdown box?, while no options seen in html in cypress

Hi I am new in exploring cypress. I notice that, there is no select options in my html code. How can I select the option in the dropdown box? Let's take a look of my html
Ae Leung
  • 300
  • 1
  • 12
0
votes
1 answer

Cypress giving error "WebSocket is closed before the connection is established"

When i visit baseURL, it will navigate to keycloak login, after entering login details, then it will navigate to production URL. So, I'm navigating back to baseURL. At that time, it will throw below error in console. Hence Page is keep on…
0
votes
0 answers

Cypress / Anagular get component vairable value of a public variable not visible in the dom

I am new to Cypress and using it to e2e my angular 14 app. I have an Angular component I am testing. I am trying see how the components public variable value changes given different interaction with the DOM. The component itself is very…
Ken
  • 423
  • 6
  • 13
0
votes
0 answers

Cypress 11.2.0 How to clear configuration?

I have already installed cypress. With the command cypress open the app is opening. The app shows a not existing configuration. The shown config is a old, but removed from root. Questions: Where come from this configuration? How to remove it?…
rammi22
  • 271
  • 1
  • 11
0
votes
1 answer

Should Cypress Automation testing be written for local environment or staging?

I am a beginner in Cypress Automation Testing. I have one confusion. When we need to add our Automation scripts to run with GitHub workflows to trigger when we push a commit, for what environment should we write tests? In the local environment at…
0
votes
0 answers

There is any solution to generate the authorization token for the API testing globally?

There is any solution to generate the authorization token for the API testing globally in order to use it on different specs ? There is any solution to generate the authorization token for the API testing globally in order to use it on different…
0
votes
1 answer

In cypress, How to move a slider?

I have just started exploring Cypress and came across such a problem: Is it possible to select/ set a value in a slider component? For example lets take this simple piece of code
Ae Leung
  • 300
  • 1
  • 12
0
votes
1 answer

Cypress: Cannot create property 'errors' on string

I created a sample project and the URL I wish to navigate is https://www.nasa.gov/ but it fails with the error 'Cannot create property 'errors' on string ''... I was able to run this earlier but now all of a sudden, it is throwing this error..…
0
votes
0 answers

cy.get() only accepts an options object for its second argument Error

Facing Error in clicking element with cyget, below is the snapshot cypress/e2e/spec-inside.cy.js:66:8 64 | // cy.initializeAutoheal('SbhohWd9dllo'); 65 | cy.visit('https://us-sandbox.thesite.com/?automation-test'); > 66 |…