How to write component tests with Cypress

  Рет қаралды 29,717

Cypress.io

Cypress.io

Күн бұрын

Пікірлер: 22
@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!
@richardogujawa-oldaccount1336
@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!
@homebrewguy2
@homebrewguy2 2 жыл бұрын
You did a fantastic job man! I’ll be back for more of your great content🤠
@salemfenn666
@salemfenn666 Жыл бұрын
Great explanations and examples
@yashsonalia3506
@yashsonalia3506 2 жыл бұрын
I have created a custom theme using styled-components, how do I implement the same in cypress?
@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 ?
@NeverCodeAlone
@NeverCodeAlone Жыл бұрын
Very nice thx a lot!!
@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?
@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.
@alifcorrea7329
@alifcorrea7329 2 жыл бұрын
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.
@joaoreisjpk
@joaoreisjpk 2 жыл бұрын
Awesome!
@rojalbati5728
@rojalbati5728 2 жыл бұрын
Yeah!!! Cypresssssssssss
@chrisdaman4179
@chrisdaman4179 2 жыл бұрын
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: kzbin.info/www/bejne/pH2lqImFf6mHZ6s
Cypress Component Testing in Angular
48:03
Rainer Hahnekamp
Рет қаралды 14 М.
Cypress Testing with React - Simple Tutorial
12:43
Cosden Solutions
Рет қаралды 59 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Introduction to Jest Testing | JavaScript Unit Tests
25:30
Dave Gray
Рет қаралды 34 М.
Stop Writing So Many Tests
10:02
Web Dev Simplified
Рет қаралды 98 М.
Cypress in a Nutshell - 2019
40:47
Cypress.io
Рет қаралды 301 М.
Cypress Complete Beginners Masterclass 1 | Step by Step | Raghav Pal |
1:20:54
Automation Step by Step
Рет қаралды 215 М.
Testing JavaScript with Cypress - Full Course
2:39:33
freeCodeCamp.org
Рет қаралды 228 М.
Cypress End-to-End Testing
9:34
Fireship
Рет қаралды 306 М.
How to use Cypress to write E2E Tests over a Registration Page
12:53
How to write a flaky test | Filip Hric
32:22
Cypress.io
Рет қаралды 353