End to end (e2e) test with Cypress in React application - step by step

End to end (e2e) test with Cypress in React application - step by step

Codeching

4 года назад

2,756 Просмотров

In this tutorial I will show you how to use Cypress to write tests for React. We will install Cypress, configure it and write a test case to test our React application.

You can find the starter project source code here: https://lebersoftware.hu/wp-content/uploads/2020/01/4_cypress_test_starter.zip

The final source code is avaliable here: https://github.com/stylerhun/codeching_4_use_cypress_to_write_e2e_tests

If you're interested, that how the backend is built, check my previous video on my channel:

https://www.youtube.com/watch?v=7MlsbzJy8_8

------------------------------
My name is László Leber
Webpage: https://lebersoftware.hu
Facebook: https://www.facebook.com/Codeching-111388913727599/?modal=admin_todo_tour
Twitter: https://twitter.com/codeching
Instagram: https://www.instagram.com/laszlo_leber/

Тэги:

#Cypress #Cypress_React #Cypress_test #e2e_test #Cypress_integration #React #Axios #React-async #async #Context_API #Context #Provider #useState #useDispatch #useReducer #useAsync #fetch #backend #frontend #aync_jsx
Ссылки и html тэги не поддерживаются


Комментарии:

@EricPerezDesign
@EricPerezDesign - 23.07.2020 08:43

I keep getting the following error:
Timed out retrying: Expected to find element: [data-testid=car-list'], but never found

Ответить
@rcbchowdarytumati1224
@rcbchowdarytumati1224 - 26.01.2020 19:51

Can you please upload many Cypress videos

Ответить