Cypress Testing with React - Simple Tutorial

  Рет қаралды 32,377

Cosden Solutions

Cosden Solutions

9 ай бұрын

Join The Discord! → discord.cosdensolutions.io
In this video we will learn about testing a React application with Cypress. With Cypress, you can easily create tests for your modern web applications, debug them visually, and automatically run them in your continuous integration builds. We will setup a simple application, write our first e2e test, and make sure that everything behaves as we expect!

Пікірлер: 28
@cosdensolutions
@cosdensolutions 2 ай бұрын
Hey everyone! I just launched 🚀 Project React, which is a course that teaches you React by building a real-world project. It goes way beyond what you see in these videos and walks you through step-by-step on how to build a big and complex application with React! You can check it out here: cosden.solutions/project-react
@hamzahahmad1670
@hamzahahmad1670 4 ай бұрын
Really appreciate short videos that give enough of a good introduction to get us going, without taking 30 - 40 minutes to get to the point
@phillyt22
@phillyt22 2 ай бұрын
Thank you for this tutorial. For those not using TS, and still experiencing the red line error for cy, create an .eslintrc file (if you don't have one already), and add: { "extends": ["react-app"], "plugins": ["cypress"], "env": { "cypress/globals": true } } also install this if you run into an error while re running your react app: npm install eslint-plugin-cypress --save-dev
@tomasburian6550
@tomasburian6550 4 ай бұрын
Cypress is now everywhere, so it's good for anyone aiming to increase his seniority in development to learn it. Thanks for this vid, it's a great help.
@bleakCode
@bleakCode 6 ай бұрын
I am an intermediate fullstack developer and I really enjoy learning new things about frontend from your channel! Keep up the good work!
@icoderdev
@icoderdev 9 ай бұрын
You are truly a life saver, always delivering new concepts and tools.
@cosdensolutions
@cosdensolutions 9 ай бұрын
Let's go hahaha 🤙
@apoorvgupta9680
@apoorvgupta9680 6 ай бұрын
good content. no bs@@cosdensolutions
@Adam-oq4xq
@Adam-oq4xq 21 күн бұрын
thanks bro that was really useful - straight to the point
@FursMars
@FursMars 7 ай бұрын
great and clear explanation thank you very much for you video
@cfo3049
@cfo3049 27 күн бұрын
Thank´s for sharing your knowledge.🙏
@chesb6426
@chesb6426 6 ай бұрын
Great thanks!
@arberplaku529
@arberplaku529 7 ай бұрын
Great amazing video thank you for your content if it would be possible could you maybe make more videos about testing with cyphress in the future
@githinjibonface8486
@githinjibonface8486 4 ай бұрын
In case i get a job as a cypress automation engineer, is it a must i use page object model as a design pattern? Or i can use the other way around
@harag9
@harag9 6 ай бұрын
Great video and quick overview, What are your thoughts between JEST, Cypress or "A N Other" ? I've heard of jest, but not looked into it yet.
@cosdensolutions
@cosdensolutions 6 ай бұрын
they are all great imo, there's also playwright. Use the one that makes the most sense for the project, which means try them out and get a feel for how they differ, then apply them!
@lokeshkavisth
@lokeshkavisth 2 ай бұрын
Very great vodeo... Can you make one for nodejs testing?
@user-ll4qy6cg9i
@user-ll4qy6cg9i 3 ай бұрын
I read if i want to use the Cloud that is not free, do i need to use the cloud or is it enough to just run the test locally?
@cosdensolutions
@cosdensolutions 3 ай бұрын
Locally is fine, usually you run them also in github actions or similar
@user-ll4qy6cg9i
@user-ll4qy6cg9i 3 ай бұрын
@@cosdensolutions Would component test and e2e test with cypress be enough? Currently i just have unit with vitest, also is there a way to run all cypress test like npm test or do i always need to open cypress tool? alot thanks in advance love ur videos
@thaifred
@thaifred 2 ай бұрын
If i use MSW in react vite, should i go with setupServer or setupWorker, i tried both but my mocks always pass the test even with wrong endpoint so i think something is wrong
@chinmayghule8272
@chinmayghule8272 2 ай бұрын
For testing you use setupServer (check out the docs, it says for node AND testing).
@user-wi7sz2ip6n
@user-wi7sz2ip6n 3 ай бұрын
How to call api
@thaifred
@thaifred 5 ай бұрын
Is this end to end?
@cosdensolutions
@cosdensolutions 5 ай бұрын
yeah
@ooorayooonyoooo
@ooorayooonyoooo 9 ай бұрын
hello cosden, i would really love if you take uploading video explaining what you should do and how to use typescript in react into account 🤍
@githinjibonface8486
@githinjibonface8486 4 ай бұрын
In case i get a job as a cypress automation engineer, is it a must i use page object model as a design pattern? Or i can use the other way around
@ashishjain6723
@ashishjain6723 4 ай бұрын
Page object is easy to fix the failed test cases and reduce rework
Redux - Complete Tutorial (with Redux Toolkit)
37:01
Cosden Solutions
Рет қаралды 140 М.
When To Unit, E2E, And Integration Test
14:58
ThePrimeTime
Рет қаралды 85 М.
Don’t take steroids ! 🙏🙏
00:16
Tibo InShape
Рет қаралды 43 МЛН
[Vowel]물고기는 물에서 살아야 해🐟🤣Fish have to live in the water #funny
00:53
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 330 М.
Тестирование React приложения
1:03:02
Михаил Непомнящий
Рет қаралды 60 М.
Cypress End-to-End Testing
9:34
Fireship
Рет қаралды 301 М.
Test-Driven Development // Fun TDD Introduction with JavaScript
12:55
How to use Cypress to write E2E Tests over a Registration Page
12:53
Stop Writing So Many Tests
10:02
Web Dev Simplified
Рет қаралды 78 М.
Cypress Unit Testing In React Application
21:16
For Those Who Code
Рет қаралды 18 М.
Thoughts About Unit Testing | Prime Reacts
11:21
ThePrimeTime
Рет қаралды 202 М.
You Are Using useEffect Wrong
14:40
Cosden Solutions
Рет қаралды 29 М.
Don’t take steroids ! 🙏🙏
00:16
Tibo InShape
Рет қаралды 43 МЛН