Testing JavaScript with Cypress - Full Course

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ย. 2024

ความคิดเห็น • 164

  • @coderyan
    @coderyan ปีที่แล้ว +114

    Thank you for checking this course out! And thank you Free Code Camp for all you do for the community. I had a great time creating it and I hope you all enjoy it!

    • @prashlovessamosa
      @prashlovessamosa ปีที่แล้ว +2

      Good to see you on FCC love your teachings.

    • @renatosousa9971
      @renatosousa9971 ปีที่แล้ว +2

      Can't believe you're also a developer! I've been following your work at Revive Stronger for some years, thanks for sharing your knowledge, I started learning web development last year and now I'm on the grind to enter the tech field

    • @coderyan
      @coderyan ปีที่แล้ว +2

      @@renatosousa9971 That's awesome to hear you know me from Revive Stronger! Best of luck with getting into the tech field. Just let me know if there's anything I can do to help out

    • @markthomasnoonan
      @markthomasnoonan ปีที่แล้ว +2

      Ryan, thank you for creating this! freeCodeCamp has been an amazing resource for me, the FCC front-end cert was a huge part of my development as a programmer. I now work at Cypress and helped build some of what you are showing in this video. Learning Cypress early in my career helped me a lot too. So it just makes me so happy to see an FCC Cypress course like this. Absolutely made my day!

    • @jotasenator
      @jotasenator ปีที่แล้ว +1

      on it right away, liking-sharing-downloading

  • @nanonkay5669
    @nanonkay5669 ปีที่แล้ว +86

    Timestamps:
    0:00 Intro
    1:52 Course Overview
    4:04 Why Cypress?
    8:29 Project setup and overview
    17:29 Testing Fundamentals: Describe Block
    18:54 Testing Fundamentals: It Block
    20:50 Testing Fundamentals: Commands and interacting with elements
    29:29 Testing Fundamentals: Getting elements
    30:38 Testing Fundamentals: Command chaining & assertions
    38:04 Testing Fundamentals: Writing first test
    54:34 Running a single test using "only"
    55:45 beforeEach
    58:08 Custom commands
    1:03:00 Testing Fundamentals summary
    1:06:29 Testing forms
    1:16:44 Doggo is tryna cuddle with his feet........
    1:16:58 Testing forms (contd)
    1:17:32 Aliases and Retry-ability
    1:28:26 Multi-page testing
    1:36:13 Intercepts
    1:42:20 Intercepts: Fixtures
    1:47:48 Helpful Methods
    1:55:20 "Grudge list" example
    2:11:06 Component testing
    2:26:44 Best practices
    2:39:32 Fin

    • @yogeshdevaggarwal
      @yogeshdevaggarwal 8 หลายเดือนก่อน +1

      From where did you get them?? I mean seriously are you actually writing them while just watching the video??

    • @Realswagoverlord
      @Realswagoverlord หลายเดือนก่อน

      @@yogeshdevaggarwal He got it from the illuminati.

  • @reuben4075
    @reuben4075 หลายเดือนก่อน

    I came here with zero Cypress knowledge, Ryan you are a great tutor, you broke things down to the level of beginner and explained it clearly with relevant examples and tests,
    I am confident to write Cypress test cases after watching this video!
    Thanks Ryan

  • @segovia102
    @segovia102 11 หลายเดือนก่อน +3

    I agree that this makes testing fun. Compared to debugging your tests for 5 hours to work out why stuff is leaking between tests, DIY dentistry is fun! This is great content, thanks! Update: I spoke too soon. Am getting some flakiness in the testing. Getting htmlFor prop did not match when testing the form input, and this is causing Cypress test runner to hang indefinitely requiring a restart. Also some flakiness around the Testing Fundamentals click to expand the accordion item after we added div[role="button"] - test wouldn't work and then would. Further update: hanging was caused by .type() - can be fixed with: cy.get('selector').find('input').click().type('hi mom')

  • @kalduntechnologies
    @kalduntechnologies ปีที่แล้ว +13

    I really appreciated the content. This was a great refresher on JavaScript and Cypress seems like an excellent tool for web app testing!

  • @jolness1
    @jolness1 9 หลายเดือนก่อน +1

    Thanks for making this. I haven't used cypress for a couple of years and am interviewing for a role that is testing focused. Java testing has been my wheelhouse for the last couple years but need a refresher so I can jump in and not make a fool of myself. This seems to be just what I need.

  • @DThompsonDev
    @DThompsonDev ปีที่แล้ว +20

    Love to see more content on Testing! Cypress is great. Even used it at 2 companies I have worked at! Rock solid resource.

    • @disrael2101
      @disrael2101 ปีที่แล้ว

      is testing by itself a really in demand skill to get a job in?

    • @brownknight8104
      @brownknight8104 11 หลายเดือนก่อน

      Absolutely. Go look at how many job openings there are. SDET or QA Engineer. @@disrael2101

    • @smpc500
      @smpc500 7 หลายเดือนก่อน

      @@disrael2101 I got my first job in IT as a test developer. Now I'm working with Cypress!

    • @mikejakusz1493
      @mikejakusz1493 7 หลายเดือนก่อน

      @@disrael2101 QA is all testing. It's very important to have tests when implementing new features to production with a large app, they're essential to catching bugs.

  • @ElinaStamb
    @ElinaStamb ปีที่แล้ว +3

    Thank you, it was so useful! I've already created few tests for our Angular application after watching your tutorial

  • @MariannaDiMaio
    @MariannaDiMaio 6 หลายเดือนก่อน

    Big thanks! Your explanations of the basic concepts were clear. Unlike other videos I've watched, yours kept me hooked from start to finish. Definitely deserving of a ⭐

  • @sakshisakshi8293
    @sakshisakshi8293 6 หลายเดือนก่อน +1

    Great tutorial!! And your dog is the reason it became even more fun, most of the time I got distracted by him during the tutorial😄

  • @sumanjeet2300
    @sumanjeet2300 6 หลายเดือนก่อน +1

    It was really a nice video in a normal length video, Now I am going to watch your TH-cam channel for finding some more useful contents like this one ....

  • @marcinbjl
    @marcinbjl 10 หลายเดือนก่อน +2

    hi guys, question for those who actually do work with cypress professionally - Is it a normal practice to pollute production code with test tags? are testers actually allowed to add them everywhere? or in reality elements are selected in more complicated ways? e.g. checking parents, siblings, by regex etc.

    • @djillalirafil9749
      @djillalirafil9749 10 หลายเดือนก่อน

      I think testers and developers discuss this, so test-id tags are added. And yes, Iv already seen test data id tags on a real website

  • @KamranV21
    @KamranV21 8 หลายเดือนก่อน

    Thank you, Ryan! This course was really helpful.

  • @BoolFalse
    @BoolFalse ปีที่แล้ว +3

    love this vid almost as much as TOOL's last album 🎉

  • @Calocarv
    @Calocarv ปีที่แล้ว +4

    The reason , I stopped using Cypress and jumped to Playwright was that every time I installed an update (which I was forced to do as it froze whenever it detected that I didn't have the latest) - the config got messed up and I had to fresh install cypress to get my tests working again. This was 3 years ago, I will give it another go this time round.

    • @disrael2101
      @disrael2101 ปีที่แล้ว

      any updates how is it this time? is testing by itself a really in demand skill to get a job in?

    • @Calocarv
      @Calocarv ปีที่แล้ว +1

      @@disrael2101 it has improved, the only reason that it is preferred over playwright is that is somewhat easier to run the same tests on different environments. It is demand along with playwright a they are the latest tech and open-source.

    • @disrael2101
      @disrael2101 ปีที่แล้ว

      ​@@Calocarv cool thanks so do you see a high demand in coming years for qa by itself (no dev) nowadays? no ai gonna replace it? haha.. thanks

    • @Calocarv
      @Calocarv ปีที่แล้ว +1

      There will always be demand for QA .All Software is a product and no customer will want a product that does not have quality control. AI is not as advanced as the media is leading us to believe. Consumer confidence comes from reputation and reputation comes from people not AI. Would you choose wine made by machines in USA or people in Italy?

  • @spacexnix
    @spacexnix ปีที่แล้ว +1

    I've been waiting for a long time. thank you very much

  • @michaeledwardharris
    @michaeledwardharris 10 หลายเดือนก่อน

    This reminds me of the guy who, years ago, was able to sneak a completely meaningless PR into the Linux kernel. He's now technically a "kernel contributor." Iirc, he git rejected numerous times, but for some reason, his final attempt got through.

  • @brookrichardson1373
    @brookrichardson1373 6 หลายเดือนก่อน

    Thank you, Ryan. This was an excellent course.

  • @notsuio
    @notsuio ปีที่แล้ว +3

    Good explaination and examples. 👏🏻

  • @ACHUAREM
    @ACHUAREM ปีที่แล้ว +2

    Much awaited. Thank you for this course.

    • @smpc500
      @smpc500 7 หลายเดือนก่อน

      Where's your async? :D

  • @ashutoshsingh-uh4io
    @ashutoshsingh-uh4io ปีที่แล้ว +3

    please make a similar project on playwrights from basic to advance E2E framework

    • @disrael2101
      @disrael2101 ปีที่แล้ว

      is testing by itself a really in demand skill to get a job in?

  • @aeonian8687
    @aeonian8687 ปีที่แล้ว +1

    perfect course again just in time

  • @marwanabouesmaail5199
    @marwanabouesmaail5199 10 หลายเดือนก่อน

    Informative and the course I was looking for. Thank you so much

  • @shafiulAlamShafi
    @shafiulAlamShafi ปีที่แล้ว +3

    Wow!! What a timing video !!!

  • @raianforhad7057
    @raianforhad7057 ปีที่แล้ว +1

    I have a question
    We will learn HTML CSS JavaScript for become a web developer
    So , which college degree I will take for a web developer?
    BSc in computer science?
    BSc in web development?

  • @PeteTaylor
    @PeteTaylor 10 หลายเดือนก่อน

    Great tutorial, I do have a tangential question though, what VSCode theme are you using @coderyan? It's very pleasing to look at - dark and with nice subtle colours.

  • @yogeshdevaggarwal
    @yogeshdevaggarwal 8 หลายเดือนก่อน +1

    I like the way he made a whole website just for a tutorial 🗿

  • @itsfunnih
    @itsfunnih ปีที่แล้ว

    Do we have to install Cypress for each and every project OR Options 2: we can store cypress at a central llocation inlo cal C: drive and access it from there. If option 2: how to access Cypress / where to specify path for cypress?

  • @TheFGrox
    @TheFGrox ปีที่แล้ว

    Thanks a lot for the course! Will there be one with Playwright, also?

  • @eslamwageh4461
    @eslamwageh4461 หลายเดือนก่อน

    thanks man very helpful

  • @ammarhaidar5995
    @ammarhaidar5995 10 หลายเดือนก่อน

    Great video, thanks Ryan..!

  • @samuelodiase-omoighe9448
    @samuelodiase-omoighe9448 6 หลายเดือนก่อน

    Great content. But i need some clarification. If cypress already have a feature for components testing to test components in isolation. What is the need for jest and RTL? Can I just use only cypress for my e2e and components testing for my application?

  • @dangray5809
    @dangray5809 ปีที่แล้ว +2

    Great course! However, the example app has a bug in it. The POST request on the "POST DATA" button returns an error every time.

    • @marlbo4627
      @marlbo4627 ปีที่แล้ว +1

      Were you able to fix this issue?

  • @orashusedmund7675
    @orashusedmund7675 5 หลายเดือนก่อน

    thanks man, really need this

  • @aishna7457
    @aishna7457 ปีที่แล้ว +2

    Hello, I'm new here and i want to learn coding.while searching for some best coding websites and youtube channels to learn coding I came across this one. But I don't have any idea about this and don't know how to start and where to start. Could you guys please suggest me something?

    • @freecodecamp
      @freecodecamp  ปีที่แล้ว +1

      Consider going through the free coding curriculum at www.freecodecamp.org

  • @AdityaSharan811
    @AdityaSharan811 ปีที่แล้ว +2

    course on playwright testing for writing E2E test cases

    • @disrael2101
      @disrael2101 ปีที่แล้ว

      is testing by itself a really in demand skill to get a job in?

    • @AdityaSharan811
      @AdityaSharan811 ปีที่แล้ว

      @@disrael2101 not an in demand skill while interviewing but definitely a good one while you’re at the job

    • @disrael2101
      @disrael2101 ปีที่แล้ว

      @@AdityaSharan811 hmm thanks so do you see a high demand in coming years for qa by itself (no dev) nowadays? no ai gonna replace it? haha.. thanks

  • @skiphouston7392
    @skiphouston7392 7 หลายเดือนก่อน

    Fantastic. Thank you for this.

  • @saimohankrishnabandarupall8785
    @saimohankrishnabandarupall8785 ปีที่แล้ว +1

    Right when i need it

  • @YoungMiner
    @YoungMiner 11 หลายเดือนก่อน

    Thanks man for this course !

  • @ricardorien
    @ricardorien 8 หลายเดือนก่อน

    Good stuff, thanks a lot!

  • @본임-k7p
    @본임-k7p 9 หลายเดือนก่อน

    This was really helpful!

  • @rajibhossain928
    @rajibhossain928 10 หลายเดือนก่อน +1

    What is the meaning of " TDS "?
    Can I know?

  • @smpc500
    @smpc500 7 หลายเดือนก่อน

    51:06 Testing is fun! It is my job :)

  • @WendyLiving
    @WendyLiving 10 หลายเดือนก่อน +1

    I got an error while doing npm run dev, pls what can i do?
    Getting this error: ReferenceError: performance is not defined

  • @MynamedidntFitDonkey
    @MynamedidntFitDonkey ปีที่แล้ว +2

    If you have to make changes to the code you are testing to make tests work, that's not a good practice.

  • @jopadjr
    @jopadjr 7 หลายเดือนก่อน

    3.1k+...Thanks. Great tutorial !!!

  • @تَباركعبدالباسطعدنان
    @تَباركعبدالباسطعدنان ปีที่แล้ว +2

    what a lovely dog

  • @myJapanTV013
    @myJapanTV013 ปีที่แล้ว +2

    getting error on doing npm install in the directory

  • @jamesvickery6158
    @jamesvickery6158 9 หลายเดือนก่อน

    Thank you for the great video! At 49:38 he adds a data-test to his accordion. When I type from the $ sign, my local environment doesn't seem to pick it up - so when I inspect the page after the string appears exactly as I wrote it instead of interpreting it and applying the ID automatically.. to workaround I just set the data-test to 'accordion-item-1' and called that directly in the test.. could there be some dependancies I am missing? Thanks in advance!

  • @swdavis7042
    @swdavis7042 ปีที่แล้ว

    Thanks for posting the video.Your dog is beautiful.

  • @walkingin6375
    @walkingin6375 ปีที่แล้ว +1

    Is this not outdated? All the mention about jquery etc. . .
    Do people still use this for React, or is it generally Jest / Vitest?

    • @soymichelo75
      @soymichelo75 2 หลายเดือนก่อน

      - its not outdated
      - jquery is a dependency and it is still wildly used in the internet, not everything is react / vue / angular... etc
      - yes, it is used to test lots of apps, although I personally see Playwright now getting the lead, but your mileage may vary

  • @ichiroutakashima4503
    @ichiroutakashima4503 ปีที่แล้ว

    This could be really useful. I've been using Jest though.

    • @disrael2101
      @disrael2101 ปีที่แล้ว +1

      is testing by itself a really in demand skill to get a job in?

  • @swdavis7042
    @swdavis7042 ปีที่แล้ว

    I am new to javaScript and Cypress. When I downloaded visual studio, my ide looks different from yours! Can you please share the info about the version of vs you are using?

  • @tomasz6011
    @tomasz6011 7 หลายเดือนก่อน

    Great video, very helpfull

  • @Michael_Andish
    @Michael_Andish ปีที่แล้ว +1

    Thanks!

  • @sarvarbek_vakhobov
    @sarvarbek_vakhobov 10 หลายเดือนก่อน

    Hi, First of All, Thanks for this tutorial. I have learnt so many things. But I have faced one problem on component testing. I created new spec, but I was not detected...
    can anyone tell me why I got this error?

  • @RogerDOdipo
    @RogerDOdipo 9 หลายเดือนก่อน

    Amazing tutorial

  • @ShivapriyaVelineni-q2b
    @ShivapriyaVelineni-q2b หลายเดือนก่อน

    where can i find the notes for the explanation provided in the video

  • @waleedsharif618
    @waleedsharif618 ปีที่แล้ว +1

    Cyppres vs react testing library (for react), which one better ?

    • @sahandsepidar4089
      @sahandsepidar4089 ปีที่แล้ว +1

      not-related ; both have own capibilities ; react testing library is for unit-testing cyppress is for E2E testing ; theres no preference

    • @disrael2101
      @disrael2101 ปีที่แล้ว

      is testing by itself a really in demand skill to get a job in?
      @@sahandsepidar4089

  • @soumadip_banerjee
    @soumadip_banerjee ปีที่แล้ว +48

    Are you guys reading minds? No seriously, are y'all? 😑🤔

  • @jayTzanTG15
    @jayTzanTG15 7 หลายเดือนก่อน

    Thank you ryan

  • @firewatermoonsun
    @firewatermoonsun ปีที่แล้ว

    Thank you so much!

  • @EllyCampeanu
    @EllyCampeanu 3 หลายเดือนก่อน

    the webpage it does not really work... I mean i tried to open it with chrome and it does not work.

  • @Zack9924
    @Zack9924 ปีที่แล้ว

    any retrofit library course? or ktor?

  • @Ankit-fl3wl
    @Ankit-fl3wl ปีที่แล้ว

    Please on Android development using new Ui technology

  • @TestingShaw
    @TestingShaw 3 หลายเดือนก่อน

    I don't know but for some strange reason I can see the Cy.intercept working as i provided the alias but Can't find the details in the console

  • @betzelem5757
    @betzelem5757 ปีที่แล้ว

    Can we get some Playwright content next?

  • @hahamen
    @hahamen ปีที่แล้ว +1

    Timed out retrying after 4000ms: expected '/fundamentals' to equal '/examples'
    why am i getting error? Even though it's according to the video

    • @chadiesanagustin7260
      @chadiesanagustin7260 7 หลายเดือนก่อน

      same

    • @soggynoodless
      @soggynoodless 6 หลายเดือนก่อน

      where you able to solve it? im having the same error

    • @weiyilee17
      @weiyilee17 3 หลายเดือนก่อน

      Next's bug. Upgrade nextjs to version 14 and that solved the problem for me

  • @user_8982
    @user_8982 7 หลายเดือนก่อน

    01:30:15

  • @otisprogramming2437
    @otisprogramming2437 ปีที่แล้ว

    Aren't .find and .within the same thing when chained with the same .get(element)? What am I missing here?

  • @suvrajitmondal2325
    @suvrajitmondal2325 ปีที่แล้ว +1

    Please make video in jest

  • @mohammadabbas1623
    @mohammadabbas1623 5 หลายเดือนก่อน

    informative

  • @rishiraj2548
    @rishiraj2548 ปีที่แล้ว

    Thanks a lot

  • @Khanasad_
    @Khanasad_ ปีที่แล้ว

    Can a web application penetration tester watch this is it helpful for pentester??
    I am new in it and found javascript as crucial language of web want to start learning .. and find ways to test

    • @jordanmuller2536
      @jordanmuller2536 ปีที่แล้ว

      I don't know if it's specifically applicable directly to penetration testing but it certainly would help you understand the inner workings of JavaScript which could lead to insights that help you in pen testing. I guess what I'm saying is, it's not super related but it's good to learn new things to learn more about stuff in general! The more general knowledge you have the more specific niche knowledge you'll start to uncover.

    • @jordanmuller2536
      @jordanmuller2536 ปีที่แล้ว

      That being said, if you don't know JavaScript, I would start with learning it before learning how to test it! Maybe worth learning in parallel but JS foundations are probably best to have before

  • @torieptaka7149
    @torieptaka7149 ปีที่แล้ว +1

    I dont see APi testing. Why not? do we really care about the frontend that much?

  • @MotherMaryprocathedral9
    @MotherMaryprocathedral9 ปีที่แล้ว

    i love your content

  • @SkunkyInnocent
    @SkunkyInnocent 11 หลายเดือนก่อน

    cool video)

  • @mehrnazaboutalebi2862
    @mehrnazaboutalebi2862 8 หลายเดือนก่อน

    cant run the app.

  • @MotherMaryprocathedral9
    @MotherMaryprocathedral9 ปีที่แล้ว

    lovely

  • @RowafaEdits
    @RowafaEdits ปีที่แล้ว

    Can I edit your videos?

  • @GoodBoy-je7bw
    @GoodBoy-je7bw 5 หลายเดือนก่อน

  • @James-uv7zt
    @James-uv7zt 9 หลายเดือนก่อน

    anyone else's cypress ( chrome or electron ) crashing after something ( im not sure what ) - but I open the app and it's back to "tests loading"

    • @sebastianponce628
      @sebastianponce628 9 หลายเดือนก่อน

      i think i've got the same problem, sometimes while testing, the test spinner keeps loading forever

    • @James-uv7zt
      @James-uv7zt 9 หลายเดือนก่อน

      mine was due to the mac window shutting down it caued the tests to fail@@sebastianponce628

  • @rajibhossain928
    @rajibhossain928 10 หลายเดือนก่อน

    ❤️❤️❤️❤️❤️

  • @taras-weezzy
    @taras-weezzy ปีที่แล้ว

    Add timestamps plsssss

  • @samarbid13
    @samarbid13 ปีที่แล้ว

    No examples on mocking authentication for tests?

  • @SoStop
    @SoStop ปีที่แล้ว

    Today was discussing the use of Cypress with team

  • @sobeidalagrange7129
    @sobeidalagrange7129 ปีที่แล้ว

    00:36

  • @matis9783
    @matis9783 6 หลายเดือนก่อน

    43:39

    • @matis9783
      @matis9783 6 หลายเดือนก่อน

      1:28:31

  • @ciprianov2006
    @ciprianov2006 ปีที่แล้ว

    Nice vid bro, thx

  • @paul_reddy
    @paul_reddy ปีที่แล้ว +3

    This video doesn't covers many things 😢😢😢😢😢😢😢 , 1 dislike .

  • @isambo400
    @isambo400 ปีที่แล้ว

    I’m showing this to African refugees

  • @Hypergraph
    @Hypergraph ปีที่แล้ว +1

    i don't understand why thenewboston paused for years and later try to make its own crypto and failed.

  • @alitaqithekingofthehackers9583
    @alitaqithekingofthehackers9583 2 หลายเดือนก่อน

    what the dog doin..

  • @sazk4000
    @sazk4000 ปีที่แล้ว +3

    why even bother uploading if you can't do timestamps

  • @wasd3108
    @wasd3108 ปีที่แล้ว

    testing frontend, not javascript lmfao

  • @harshpratapsingh7640
    @harshpratapsingh7640 4 หลายเดือนก่อน

    This course is way too basic and I feel like I have wasted my time watching this video.

  • @mariaturzynska1592
    @mariaturzynska1592 ปีที่แล้ว +6

    Too much talking.. to little coding

  • @wisdomeispower
    @wisdomeispower ปีที่แล้ว +1

    After hearing "Ask chatgpt or go old fashion and look up to docs" lost interest in video.

  • @ShipWreck68
    @ShipWreck68 8 หลายเดือนก่อน +1

    At around min 50 the it("Accordion works correctly", () => {
    cy.visit("/fundamentals");
    cy
    .contains(/Your test will exist in a describe block/i)
    .should("not.be.visible"); fails the assertion. Cannot get past this in the code example.

  • @ZacharySnyder
    @ZacharySnyder หลายเดือนก่อน

    "Hey Beavis.... at th-cam.com/video/u8vMu7viCm8/w-d-xo.html .. he said Doo Doo.... uhh huh.... uhh huh"