stocky-dream-36427
05/10/2021, 5:28 PMprehistoric-action-94870
05/10/2021, 5:49 PMstocky-dream-36427
05/10/2021, 5:50 PMprehistoric-action-94870
05/10/2021, 5:51 PMstocky-dream-36427
05/10/2021, 5:52 PMjs
cy.wrap(/* your object */)
.then((people) => {
people.forEach((person) => {
// if person is an index, you'll wanna do (_, person) but I don't remember
cy.log(`${person.name} - ${person.jobTitle}`)
})
})
stocky-dream-36427
05/10/2021, 5:52 PMstocky-dream-36427
05/10/2021, 5:52 PMstocky-dream-36427
05/10/2021, 6:05 PM1. Person name 20 - person job title 1
logsprehistoric-action-94870
05/10/2021, 6:24 PMuser
05/10/2021, 9:31 PMancient-appointment-66951
05/11/2021, 5:31 AMbrash-dusk-82631
05/12/2021, 12:42 PMstocky-dream-36427
05/12/2021, 2:59 PMcypress open
?stocky-dream-36427
05/12/2021, 3:00 PMstocky-dream-36427
05/12/2021, 3:00 PMcypress run --headed
and it'll let you see what's going on (launch the browser) and also record.brash-dusk-82631
05/12/2021, 3:03 PMbrash-dusk-82631
05/12/2021, 3:05 PMstocky-dream-36427
05/12/2021, 3:20 PMstocky-dream-36427
05/12/2021, 3:21 PMcypress run --headed
is what you wantbrash-dusk-82631
05/12/2021, 3:28 PMuser
05/13/2021, 7:05 PMconst get store = () => cy.window().its("app.$store").
Or like a command
Cypress.Commands.add("getStore", () => { return cy.window().its("app.$store") .then(appStore =>cy.wrap(appStore)); });
But both ways I get a warning on console telling me:
[Vue warn]: Property or method "nodeType" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties
Is there other way to get the store or resolve this warning?
I appreciate the help. thanks in advance!stocky-dream-36427
05/13/2021, 10:48 PMstocky-dream-36427
05/13/2021, 10:48 PMstocky-dream-36427
05/13/2021, 10:49 PMbreezy-australia-64868
05/14/2021, 2:11 PMstocky-dream-36427
05/14/2021, 4:09 PMstocky-dream-36427
05/14/2021, 4:09 PMstocky-dream-36427
05/14/2021, 4:10 PMstocky-dream-36427
05/14/2021, 4:10 PMstocky-dream-36427
05/14/2021, 4:11 PM