Cypress 10 // Best time for UI testing (Get Started + Main Features)

  Рет қаралды 6,750

basarat

basarat

Күн бұрын

Пікірлер: 25
@LachlanMiller
@LachlanMiller 2 жыл бұрын
Glad you are finding Cypress CT useful! Thanks for all your content - I learned a ton from your TS handbook.
@electrolyteorb
@electrolyteorb 2 жыл бұрын
You don't know how happy I am
@hamadambyte6942
@hamadambyte6942 2 жыл бұрын
Thank you Basarat
@LachlanMiller
@LachlanMiller 2 жыл бұрын
I think you should be able to import the CSS in your supportFile, so it's available for all component tests (need to 100% verify this but it should work).
@basarat
@basarat 2 жыл бұрын
Great suggestion I am sure that works
@awaiskhalil2062
@awaiskhalil2062 2 жыл бұрын
Hi i try to run following command to run cypress ".\cypress open" but it is showing this error Cypress configuration Error Your project does not contain a default supportFile. We expect a file matching cypress\support\e2e.{js,jsx,ts,tsx} to exist. If a support file is not necessary for your project, set supportFile to false.
@basarat
@basarat 2 жыл бұрын
The support file should be created for you if you run it on an empty project as done (and shown) in this tutorial. You can also copy it from the final code on GitHub if you want
@awaiskhalil2062
@awaiskhalil2062 2 жыл бұрын
@@basarat i meant in latest cypress version 10.0.3 it is not importing support file auto. So if there is work around then please let me know. Thanks
@191jassi
@191jassi 2 жыл бұрын
Great Tutorial, Thanks 🙂, We have aurelia app, do you think cypress component testing will fly for aurelia app too?
@basarat
@basarat 2 жыл бұрын
Thanks for the comment Will probably not get an official supported plugin from the Cypress team (my guess), but no technical limitation (that I can think of)
@191jassi
@191jassi 2 жыл бұрын
@@basarat Thanks for reply. Is there any documentation which I can refer to. I am new to unit component tests for aurelia
@ankursehdev5448
@ankursehdev5448 2 жыл бұрын
Great Tutorial! and Does this support multiple tabs and pop-ups now? Last I am aware I wasn't able to use this because of POP-UP sign in process I have in my application. What do you advice for handling pop ups?
@basarat
@basarat 2 жыл бұрын
Thanks for the question most commonly the UI in the pop up tab is not written by us e.g PayPal or Google auth etc. So I would skip opening it by taking a backend approach to “action”, I.e. logging in the use by running custom headless sign in code in the test. This way I’m not testing third party code and tests run faster. A simpler option is to use a mock validator, but like all mocking, should be used carefully depending on what we want and what we don’t want tested in the real system. I know it sounds a bit difficult and real code would be great. I’ll try to make that demo someday
@ankursehdev5448
@ankursehdev5448 2 жыл бұрын
@@basarat It does make sense, I will try to use this now. Thanks for awesome content bro.
@michalkotlicki4710
@michalkotlicki4710 2 жыл бұрын
Would it replace React Testing Library?
@basarat
@basarat 2 жыл бұрын
Yes. Component tests are an alternative to RTL 🌹
@somerandomchannel382
@somerandomchannel382 2 жыл бұрын
@@basarat no its def. not.
@basarat
@basarat 2 жыл бұрын
@@somerandomchannel382 engineering.udacity.com/cypress-is-superior-to-react-testing-library-heres-why-3fac0675910
@vijaykoladara8302
@vijaykoladara8302 2 жыл бұрын
Please make a full course on cypress
@basarat
@basarat 2 жыл бұрын
Thanks for the request 💯
@gunasekarant6498
@gunasekarant6498 2 жыл бұрын
@@basarat Yes please make both E2E & Component testing using React
@arunyasekar9817
@arunyasekar9817 2 жыл бұрын
where s the button coming from
@basarat
@basarat 2 жыл бұрын
Thanks for the question Its coming from the button module imported at the top of the test
@chrisdaman4179
@chrisdaman4179 2 жыл бұрын
They will never be a real tool as long as they require a gui. We cannot get into the gui and all the docs are useless from a cli stand point. The gui does too much work for you.
@basarat
@basarat 2 жыл бұрын
I think the docs cover the cli very nicely. The gui is just the icing on the cake
Protractor to Cypress // Migration Assistant
2:05
basarat
Рет қаралды 1,1 М.
Cypress Testing with React - Simple Tutorial
12:43
Cosden Solutions
Рет қаралды 61 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Cypress (Web Testing Framework) Crash Course - 2021
2:03:05
Laith Academy
Рет қаралды 107 М.
Stop Doing this as a React Developer
12:27
CoderOne
Рет қаралды 165 М.
7 Tips for UI Testing with Cypress
8:45
Semaphore CI
Рет қаралды 521
Why Vitest Is Better Than Jest
13:13
Web Dev Simplified
Рет қаралды 143 М.
Cypress End-to-End Testing
9:34
Fireship
Рет қаралды 307 М.
Cypress Complete Beginners Masterclass 1 | Step by Step | Raghav Pal |
1:20:54
Automation Step by Step
Рет қаралды 217 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 800 М.
How to write component tests with Cypress
9:51
Cypress.io
Рет қаралды 29 М.
Component Testing: How we do it at Cypress
25:19
Cypress.io
Рет қаралды 12 М.