Тёмный

How to write component tests with Cypress 

Cypress.io
Подписаться 17 тыс.
Просмотров 29 тыс.
50% 1

Опубликовано:

 

26 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 22   
@richardogujawa-oldaccount1336
I was getting a little bit frustrated trying to get the react testing library to play nice with Typescript, and at a certain point was just downloading a bunch of dependencies as was recommended in different articles, videos I watched etc., but nothing seemed to work. But Cypress just seems to work out of the box. Can't say thank you enough!
@DodaGarcia
@DodaGarcia Год назад
I just started using Cypress and am already completely hooked. It makes testing a breeze.
@WendimuSitotaw
@WendimuSitotaw 2 года назад
Loved how it's presented: simple. Liked and subbed halfway through the video!
@salemfenn666
@salemfenn666 11 месяцев назад
Great explanations and examples
@homebrewguy2
@homebrewguy2 2 года назад
You did a fantastic job man! I’ll be back for more of your great content🤠
@yashsonalia3506
@yashsonalia3506 Год назад
I have created a custom theme using styled-components, how do I implement the same in cypress?
@NeverCodeAlone
@NeverCodeAlone Год назад
Very nice thx a lot!!
@joaoreisjpk
@joaoreisjpk 2 года назад
Awesome!
@harshjaiswal3947
@harshjaiswal3947 Год назад
What if there is a route navigation after submitting form ? The current url would get updated due to which we won't be able to write more tests for the same component as the component mounting would fail, right ?
@thrash_jesus
@thrash_jesus Год назад
So how do i actually RUN the tests (for CI purposes)
@asdfaam
@asdfaam 2 года назад
Why exactly do we need to put square brackets around data attributes in Cypress?
@rojalbati5728
@rojalbati5728 2 года назад
Yeah!!! Cypresssssssssss
@alifcorrea7329
@alifcorrea7329 Год назад
What is the vantage of using component tests? (its a honest question). Is not a real environment, if application brokes, the test not catch this.
@PiotrNalepa
@PiotrNalepa 2 года назад
How to load custom styles coming from SCSS files into the test to make sure the component looks like expected?
@Cypressio
@Cypressio 2 года назад
Hi Piotr. You will need to include the compiled .css file that gets output from all of your SCSS files into Cypress.
@chrisdaman4179
@chrisdaman4179 Год назад
You should really focus on your dev experience for people who can't use the gui. The docs are completely useless for ci/cl pipelines setups and dev container work. There is no reason a robust cli couldn't be put together to fix this.
@RizaHariati
@RizaHariati 2 года назад
There should be a shortcut for 'data-test' just like with id (#something) or class(.something) typing("[data-test='something']) is a bit annoying after a while
@rand0mtv660
@rand0mtv660 Год назад
Watch the video again and from 7:35 you can see that a custom selector was created that does exactly what you mention in your comment.
@LarsRyeJeppesen
@LarsRyeJeppesen 2 года назад
So a react only test. Zzzz. Maybe you should have mentioned it
@Cypressio
@Cypressio 2 года назад
Hi Lars, writing component tests are basically the same regardless of the UI framework you are using. The APIs are identical.
@LachlanMiller
@LachlanMiller 2 года назад
Are you looking for Vue or Angular? Maybe useful: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-nLBwVOJDT1I.html
Далее
Cypress Component Testing in Angular
48:03
Просмотров 13 тыс.
How is this Website so fast!?
13:39
Просмотров 621 тыс.
진 (Jin) 'I'll Be There' Official MV
03:15
Просмотров 9 млн
Cypress in a Nutshell - 2019
40:47
Просмотров 300 тыс.
Stop Writing So Many Tests
10:02
Просмотров 92 тыс.
What is end to end testing | Cypress introduction
11:38
Top 10 Tips and Tricks with Tailwind CSS
23:45
Просмотров 90 тыс.
Rating The Most Popular React UI Frameworks
21:21
Просмотров 150 тыс.
Introduction to Jest Testing | JavaScript Unit Tests
25:30
React Testing Crash Course
58:36
Просмотров 318 тыс.
Writing your first test with Cypress
10:12
Просмотров 68 тыс.