mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-28 19:00:03 -05:00
docs(angular): Properties that are spied upon have to be defined within componentProperties instead of on root level. (#25359)
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
This commit is contained in:
@@ -350,7 +350,7 @@ export function mount<T> (
|
||||
* import { mount, createOutputSpy } from '@cypress/angular'
|
||||
*
|
||||
* it('Has spy', () => {
|
||||
* mount(StepperComponent, { change: createOutputSpy('changeSpy') })
|
||||
* mount(StepperComponent, { componentProperties: { change: createOutputSpy('changeSpy') } })
|
||||
* cy.get('[data-cy=increment]').click()
|
||||
* cy.get('@changeSpy').should('have.been.called')
|
||||
* })
|
||||
|
||||
Reference in New Issue
Block a user