Cypress CT 8/8 - Better Type Safety, cy.mount & CT at Cypress

preview_player
Показать описание
👉 $10 off with CYPRESS_CT_YT)
👉 $5 off with the code "YT_5_OFF"
Рекомендации по теме
Комментарии
Автор

Note: Looks like the Cypress types changed a bit, I had to update my code in cypress/support/component.ts like this:

```

function mount<T>(comp: any, payload: MountingOptions<any> = {}) {
const _props: T = {
...payload.props,
} as any;

return _mount(comp as any, {
...payload,
props: _props,
global: {
plugins: [
pinia,

]
}
});
}
```

LachlanMiller
Автор

This has been one of the best testing courses I’ve ever had the pleasure to learn from, thank you very much for creating it. Implementing cypress component testing in a production project this week and looking forward to it. Can’t wait for the e2e side of things too!

ragura
Автор

This tutorial was really awesome! Thanks.

ezzeldienrashad
Автор

Hi @LachlanMiller,
thanks for the great course.
At the end you say you will be talking about end-to-end tests in the next lecture.
Are there actually any videos about that? Where can I find them?
Thanks, Holger

holgertewis
Автор

Hi Lachlan,

I'm stuck, i try to make it work in my own local instance but i'm missing something.

I copied the cypress directory from your git.
Also the tests i copied and the FormInput.vue + PostWriter.vue files i copied.

But those two tests (for the FormInput and PostWriter) keep failing.

Also there is nothing on the test page, so somehow the Parent doesn't mount it looks like (when i setup the component with defineComponent).
Because this only happens in those 2 test, do you know what the problem can be?

Should i configure or install something else?

rubenhoek
welcome to shbcf.ru