red-refrigerator-13075
08/21/2021, 9:28 PMred-refrigerator-13075
08/21/2021, 9:30 PMred-refrigerator-13075
08/21/2021, 10:05 PMred-refrigerator-13075
08/21/2021, 11:51 PMred-refrigerator-13075
08/21/2021, 11:52 PMwonderful-match-15836
08/22/2021, 11:50 AM.type
some value in, then check for the expected side effect in the component you are testing. Is there a reason you need to access the instance of the child component to force the input event to fire? I am curious if I'm missing something about your context.red-refrigerator-13075
08/22/2021, 11:53 AMred-refrigerator-13075
08/22/2021, 11:57 AMred-refrigerator-13075
08/22/2021, 12:01 PMred-refrigerator-13075
08/22/2021, 12:12 PMwonderful-match-15836
08/22/2021, 12:29 PMv-combobox
or something, and the parent component would emit certain events and also render some stuff based on what had been typed into the box and what the results were. For me, that meant my component test would:
- render the component
- type some stuff in the box
- inspect the dom for our custom list suff and make assertions
- call Jess's lil .vue()
command to get the vuetify wrapper of my component (not sure why this was not working for you?)
- assert the correct events where fired from the parent component
Both the DOM updates and the parent component were reacting to events from the vuetify component. What I'm not sure about is - why force the event, instead of doing what a user would do to fire the event?red-refrigerator-13075
08/22/2021, 12:36 PMred-refrigerator-13075
08/22/2021, 12:38 PMred-refrigerator-13075
08/22/2021, 12:43 PMred-refrigerator-13075
08/22/2021, 12:44 PMmount(component, options).then(()=> { Cypress.vue })
, which is a way to get the mounted componentwonderful-match-15836
08/22/2021, 12:50 PMred-refrigerator-13075
08/22/2021, 12:56 PMquick-city-89997
08/25/2021, 11:05 AMquick-city-89997
08/26/2021, 2:21 PMstocky-dream-36427
08/26/2021, 7:32 PMstocky-dream-36427
08/26/2021, 7:33 PMstocky-dream-36427
08/26/2021, 7:34 PMstocky-dream-36427
08/26/2021, 7:34 PMstocky-dream-36427
08/26/2021, 7:36 PMquick-city-89997
09/02/2021, 12:24 PMuser
09/03/2021, 5:14 PMripe-student-91560
09/09/2021, 4:15 PMbulky-sundown-74498
09/09/2021, 4:15 PMripe-student-91560
09/09/2021, 4:16 PMbulky-sundown-74498
09/09/2021, 4:16 PM