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

Can't address imported Angular Component's Selector in Cypress Component Test

I import an angular component from a library. It has the selector . I place this component inside my local angular component. When writing a cypress component test, I can't access this imported component by its component…
Kristian Heitkamp
  • 609
  • 1
  • 5
  • 15
0
votes
0 answers

(page load)--waiting for new page to load-- in Cypress

I am getting the error "(page load)--waiting for new page to load--" when I click on any button in the application I am testing. Given("I navigate to the Test page", () => { cy.visit( "https://tempurl.test" ); cy.log("Before the…
0
votes
1 answer

Cypress with Angular : No API call happening while running component Test

configured component testing for our project and its working but no API calls are happening. In this project only Cypress E2E test working fine with all API calls. is there any configuration need to angular project for component…
0
votes
1 answer

Cypress runing failed

enter image description heretimed out i would run cypress on my project (under linux) but it failed with timed out notice. i tried all the solutions i have red in the web but still encounter this issue. Can you please help me it's critical need for…
0
votes
0 answers

NGRX mock dispatch in Cypress test

I'm trying to test whether my component is calling the ngrx dispatch method. Here are the relevant parts of the component: ngOnInit(): void { this.setCurrentUser(); } setCurrentUser() { const storedUser =…
0
votes
0 answers

What steps should I take to resolve the 'Cypress is not responding' error during test execution in Cypress?

getting error Cypress is not responding. I tried multiple ways like clear cache and reinstall cypress and tried again but no use still getting same thing. can any one help me please. enter image description here > [type…
0
votes
1 answer

No provider for MockStore

I am trying to test my app.component using cypress. The component receives data from ngrx store. I've followed the official docs to setup the test. This is the test setup: let store: MockStore; let initialState: { loggedOnUser: null…
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
1 answer

How to fix an error in setup Cypress Component Testing

I wanted to implement component testing in CRA, but I get an error during configuration: Your configFile threw an error from: cypress/config/myConfig.config.ts We stopped running your tests because your config file…
0
votes
1 answer

Cypress doesn't trigger Angular form validation after input

I'm trying to test a similar form (in component testing mode):
PawZaw
  • 1,033
  • 7
  • 15
0
votes
1 answer

Change Detection in Cypress Angular Component Testing

I am using cypress angular component testing to try to test weather or not a button is disabled. I am testing the following code: this.subsink.sink = this.manageService.validCompetitorListener .subscribe((validCompetitor:ValidCompetitor)=>{ …
Ken
  • 423
  • 6
  • 13
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
0 answers

Cypress component testing: NuxtJS include NuxtJS plugins and modules

I have a NuxtJS project. I want to use Cypress component testing. When I try to run my first test, on rendering component I got an error: this.$axios.$get('/api/account/') this.$axios - is undefined I have same error on try to call this.$bus.$on…
0
votes
0 answers

Cypress Component Testing for Angular stub child components

I have a component composed of two very complicated child components. I have developed and tested both children using cypress component testing (angular) and they pass. Now I want to work on the parent component in isolation of its children. The…
Ken
  • 423
  • 6
  • 13
0
votes
0 answers

Can not get vuex store using Cypress?

Getting this error while accesing vuex store in component testing in vue import './commands' import {mount} from 'cypress/vue2' import Vuex from 'vuex' import {getStore} from '@global/store/index' Cypress.Commands.add('mount', (component, options…
Shan
  • 1
  • 1