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

Is there a way to disable Component Testing feature in cypress 10.x and above

We do not use the Component Testing feature in Cypress, which was introduced in version 10.x and above. Its an additional burden to close it every time before we land into the test runner.
joydeep
  • 1
  • 2
0
votes
1 answer

How to run cypress run and cypress open at a time with this user can see the cases are performed on web the same report are generated

How to run cypress run and cypress open at a time with this user can see the cases are performed on web the same report are generated I want to run npx cypress open and npx cypress run at a time so that is performed, and user view and same report…
0
votes
2 answers

Cypress expect(false).to.equal(true) is true and Cypress skips cy.wait?

I am really confused right now and dont know what to do. Cypress seems to be fine with an obvious failed test and furthermore doesn't execute the cy.wait(10000); as you can see in the time stamp in the top right corner of the image. I have build a…
Bambi
  • 139
  • 8
0
votes
0 answers

Why does the get function not work in Cypress?

I'm trying to set up tests with Cypress inside my React / TS app. I installed the package, and when I try to set up a test I get an error: Test: it("displays Text component", () => { cy.mount(Hello…
JulSeb42
  • 157
  • 1
  • 9
0
votes
0 answers

In Cypress, how to create a stub of inner component and invoke its update:modelValue to check if the parent component has correctly received it?

I have a complex inner component in my parent component (parent component is one of steps in a wizard, inner component displays a dynamic subform and collects inputs. I have my inner component fully tested. It emits onUpdate:modelValue. Now I want…
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
1 answer

When trying to launch below web url using automation script, web page is not fully loaded. Web page is developed using salesforce lighting components

When we turn off Salesforce locker service, page loads fine. I raised it with Salesforce support, after going back and forth this was the final response from them As discussed, we could see that the URL is loading in web browser/builder wise and…
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

Type Error when opening Component Tests for Angular on Cypress.js

i am trying to get Component Tests for Angular running in Cypress.js but it fails right at the beginning when i select "component tests". I have not written any tests so far but cypress throws the following error: Anyone else experienced that?
Flowlicious
  • 116
  • 1
  • 15
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

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

Is There any way to stop all the test cases (It's) in Nested describes if one of the test case is failing in Cypress

Is there any way to stop all nested describes in case one of the Iterations (Test case) is failing inside one of the nested describes how to achieve this anyone have any idea Example Test Describe 1 it() {} Describe 1.1 It1()…
0
votes
0 answers

Execution error message is not getting populated in the cypress test runner while execution

I am new to cypress and was trying to execute a simple test case using cypress test runner in the electron browser. from the below code the last line(getSearchBox click) is not correct as I have provided the wrong xpath intentionally. But I am…
0
votes
1 answer

cant export token to another file in cypress

i make an api request to get the token and use it in another function in a seprate file, when i export the token from one file to another it is not working as expected , the activat user method can not read the token my code in one file class User…
0
votes
0 answers

How to Store failing spec list when Cypress result is displayed

I want to save all the failing spec names as a list in a text file or log file when Cypress result is displayed can any one help me how to achive this