Questions tagged [cypress-component-test-runner]

This tag should be used in questions related to running Cypress tests with Component Test Runner and the configuration or other issues with the Cypress Component Test Runner.

This tag should be used in questions related to running Cypress tests with Component Test Runner and the configuration or other issues with the Cypress Component Test Runner itself.

References:

Related tags:

180 questions
0
votes
1 answer

cypress test runner shows permission denied for location

On clicking a button, I should get the location settings popup to accept/cancel the location permission, but in cypress test runner, on clicking the button, it shows permission denied. I have checked the browser permission also, that didn't…
0
votes
2 answers

I have to run cypress component Test but my application is taking approx 17 mins to bootup. So, it is creating timeout error

I am using start-server-and-test but it is giving timeout error after 10 mins. I am following Cypress documentation only. Another package that I used is npm wait-on but it is also not working "scripts": { "dev": "cd ../../ && npm run start", …
0
votes
4 answers

How add documents into a MongoDb database in a cypress test file?

I'm writing a cypress test for a webpage that shows a list of posts with filters on the top. But for the list of posts to be shown, some documents have to be present in the Database so that I can check that they are displayed as required. How can I…
0
votes
2 answers

In Cypress component tests, changes to window object made inside component render cycle do not persevere

I need to expose some of my component's internals to Cypress component tests via window object, but I'm failing to pass and read it properly. Consider this code: // component import React, { FC } from 'react' (window as any).publicDictionary = {…
0
votes
1 answer

In JavaScript, retrieve the value and performed the addition after that want to return the value after the for loop in cypress automation?

verifyActiveInterfacesViaConnectionStatus() { var sum = 0 var i; for (i = 1; i <= 5; i++) { cy.xpath(`(//*[name()='g' and @class ='highcharts-label highcharts-data-label…
0
votes
1 answer

In the cypress automation, want to retrive the the text of the pie chart?

``` String veritcalXpath = "//*[local-name()='svg']//*[name()='g' and @class = 'highcharts-series-group']//*[name()='rect']"; String textXpath = "//*[local-name()='svg']//*[name()='g' and @class = 'highcharts-label highcharts-tooltip…
0
votes
2 answers

How to perform the indexing for xpath in cypress automation?

I want to make common function in cypress automation for that, I want to use the locators and xpath to find the element but I am facing issue using indexes in xpath cypress. In selenium automation, it is easy to create parameterized xpath but in…
0
votes
1 answer

cypress - This element is not visible

i want to trigger a button after 150 seconds so i written a logic like this. /// describe("home test",function (){ it('home',function (){ …
0
votes
2 answers

Facing cypress error as"cy.click() failed because it requires a DOM element. The subject received was: > undefined" after .click( ) on button

Facing cypress error as cy.click() failed because it requires a DOM element. The subject received was: > undefined" after .click( ) on button it('with select tag test',function(){ cy.visit('https://www.htse.net/') //pop up message window…
saba
  • 1
  • 2
0
votes
2 answers

i am using p-tableCheckbox and i want to click using Cypress

i got a problem i am using p-tableCheckbox and I want to click it using Cypress i tried cy.get('[id="pr_id_2-table"]').find('div').contains('role="checkbox"').click(); but it's not working any help is heighly appreciated
ksk
  • 165
  • 14
0
votes
1 answer

How to mock provided function without using injection in Cypress tests in Vue3

Though I have a working solution using the global object I'd love to avoid injection. Is there a way to use mocking to achieve this? This is only about the mocking so the code is stripped down to only show this step. //myComponent.vue