kind-minister-59159
10/18/2022, 4:06 PMeager-iron-1555
10/19/2022, 1:59 AM// in component I have:
const foo = computed(() => ({
foo: 'foo',
bar: 'bar',
}))
onMounted(() => {
if (window.Cypress)
window.shared = { foo }
})
In the test I have:
it.only('demo', () => {
cy.window()
.its('shared')
.then(ctx => {
cy.wrap(ctx).as('pageContext')
})
cy.get('@pageContext').then(ctx => {
console.log(':::ctx', ctx)
})
})
I am not able to get the data for the computed prop "currentProject" Instead I get an ObjectRefImpl. Is it possible to get the data instead?ambitious-monkey-72386
10/19/2022, 4:23 AMfresh-doctor-14925
10/19/2022, 8:36 AMflaky-gold-17986
10/19/2022, 6:49 PMflaky-gold-17986
10/20/2022, 5:54 AMwooden-megabyte-23794
10/20/2022, 8:36 AMwooden-megabyte-23794
10/20/2022, 8:37 AMfresh-doctor-14925
10/20/2022, 11:01 AMcolossal-farmer-50435
10/21/2022, 7:03 AMincalculable-nightfall-21641
10/21/2022, 8:20 AMincalculable-nightfall-21641
10/21/2022, 8:20 AMincalculable-nightfall-21641
10/21/2022, 8:21 AMfresh-doctor-14925
10/21/2022, 8:37 AMincalculable-nightfall-21641
10/21/2022, 8:43 AMfresh-doctor-14925
10/21/2022, 8:52 AMsrc
to handle your component testsfresh-doctor-14925
10/21/2022, 8:53 AMincalculable-nightfall-21641
10/21/2022, 8:55 AMincalculable-nightfall-21641
10/21/2022, 9:41 AMincalculable-nightfall-21641
10/21/2022, 9:43 AMincalculable-nightfall-21641
10/21/2022, 9:43 AMincalculable-nightfall-21641
10/21/2022, 9:55 AMcuddly-kitchen-97815
10/21/2022, 2:08 PMsrc
folder? My folder structure has the components nested in other folders within src
. I suppose I'm not super clear on what the folder structure should be for component testing.rhythmic-easter-75054
10/22/2022, 7:18 PMuser
10/24/2022, 4:28 PMstraight-nail-40770
10/24/2022, 5:11 PMstale-optician-85950
10/24/2022, 5:21 PMstraight-nail-40770
10/24/2022, 5:28 PMstraight-nail-40770
10/24/2022, 5:48 PM