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

Cypress Opening (Linux) issue

When i run "npx cypress open" command in terminal it shows me this error Command was killed with SIGTRAP (Debugger breakpoint): /home/tk-lpt-0573/.cache/Cypress/12.9.0/Cypress/Cypress --no-sandbox --smoke-test --ping=994 Tried to open cypress…
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
1 answer

Cyprus component testing of angular stand alone component with material UI gives BrowserAnimationsModule import error

I am using stand alone components in a lazy loaded route for my angular app. When I ng serve the app, everything works properly. The main app is using modules, but all other comps are stand alone. The problem is when I try to use Cyprus component…
J King
  • 4,108
  • 10
  • 53
  • 103
0
votes
0 answers

How to configure gherkin for component-tests in nx and angular based library?

I have a project with angular 15, nx, cypress and badeball/cypress-cucumber-preprocessor. I've written e2e tests using gherkin syntax. Now I'm trying to make it work for component-tests. How do I do that? I saw some discussions in 4 other tickets in…
0
votes
1 answer

Cypress Component Testing with Vuetify - Cannot read properties of undefined (reading 'props')

I am trying to set up Cypress Component Testing for vuetify components. However, I do not get it working. I narrowed it down to the most simple case with a static button. However I am getting Cannot read properties of undefined (reading…
hwcverwe
  • 5,287
  • 7
  • 35
  • 63
0
votes
0 answers

Cypress is not able to interact with any element on Salesforce

After we create a Cypress framework in order to execute Salesforce app tests, User login to Salesforce via Microsoft Authentication(MFA disabled here) After successful login, there is an error occurring as you can see in a screenshot We close this…
Omer
  • 21
  • 1
  • 4
0
votes
1 answer

Cypress spy not being called

I am rying to assert that a mocked service method is called from my component. This is the relevant typescript code for the class: export class EditProfileCardComponent { test = 'test' constructor(private messageHandlingService:…
Pablo52
  • 41
  • 6
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
0 answers

How to use state in a cypress component test

I am testing a form component in my cypress ionic component test, the form relies on text and setText props which are provided by the page, which is to say there is no state handled by the component itself only the page, how can I recreate the state…
0
votes
0 answers

Triggering a child component event when testing parent

I'm trying to trigger an event emitter from a child component within my parent component cypress test. This are the relevant bits from my child component: @Component({ selector: 'app-toolbar', templateUrl: './toolbar.component.html', …
Pablo52
  • 41
  • 6
0
votes
1 answer

Cypress picking up spec files

Cypress seems to be incorrectly picking up my Jasmine spec files when running component tests: I import the Account Service into my toolbar.component.cy.ts component so that I can add it to the providers array: This is the config for…
0
votes
1 answer

Cypress spy no being called

I'm trying to create a simple Cypress test that tests whether a service method was called. Here is my test setup: const accountService = { logout: () => { return null; } } beforeEach(() => { cy.mount(ToolbarComponent, { imports:…
Pablo52
  • 41
  • 6
0
votes
0 answers

webpack.config.js in another directory than Cypress - how to change where it looks for support files?

I get Module not found: Error: Can't resolve 'sdk/theme/themes/[projectName]/src/js/cypress/support/component-index.html' because i have cypress located at sdk/tests/[projectName]/. How can i fix this problem without changing my project…
0
votes
0 answers

How to write a cypress test for vue js router-link?

Hi I'm new to cypress and trying to make test for vue js . Following is the example About.vue Click here About.cy.js it('Then: User click on Contact…
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: