Learn Cypress in 3 Hours | Full Cypress Tutorial | Cypress Automation | LambdaTest

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ส.ค. 2024
  • Deep dive into the basics of Cypress and various Cypress commands with the Cypress testing tutorial at LambdaTest.
    Start FREE Testing: accounts.lambdatest.com/regis...
    Try Cypress Testing on LambdaTest now: bit.ly/2TU9YsQ
    Cypress Testing Tutorial series for beginners and experienced QA engineers helps you understand what is Cypress testing, how to install the Cypress plugin, and set environment variables. In addition, this tutorial walks you through the Cypress Async commands, non-Async promises, get and find commands, custom commands, and much more. Further, you will learn about Cypress fixtures, Cypress Hooks, Cypress actions, and what are assertions in Cypress. By the end of this video, you will be comfortable with how to write tests with Cypress commands and how to perform Cypress cross-browser testing on the cloud.
    You will also learn 🎫
    🔹 What are Cypress actions?
    🔹 What are Cypress fixtures?
    🔹 What are Cypress mouse commands?
    🔹 How to perform cross browser testing on Cypress cloud Grid?
    Vɪᴅᴇᴏ Cʜᴀᴘᴛᴇʀꜱ 👀
    0:0:00 Introduction to Cypress Tutorial
    0:0:17 Getting started with Cypress Testing
    0:14:27 Understanding get and find commands
    0:34:06 Installing Cypress Plugins
    0:51:40 Handling Cypress Async Commands
    1:03:38 What are Non-Cypress Async promises
    1:14:28 Assertions in Cypress
    1:23:23 What are Cypress UI commands
    1:38:42 Hooks in Cypress
    1:50:19 Setting up Cypress Fixtures
    2:06:52 How to use Cypress custom commands
    2:23:35 What Are Cypress Mouse Commands?
    2:37:22 Learning Cypress actions
    2:47:28 Cross Browser Testing on Cloud with Cypress
    3:01:16 Conclusion of Session
    *𝑪𝒐𝒎𝒑𝒍𝒆𝒕𝒆 𝑷𝒍𝒂𝒚𝒍𝒊𝒔𝒕*
    Introduction to Cypress Testing | Web Automation | Part I: bit.ly/2VKLB12
    Is Cypress Easy to Learn? GET and FIND Command Hacks | Part II: bit.ly/2VKgIdz
    How to install Cypress Plugin | Set Environment Variables | Part III: bit.ly/3AuDUvc
    How To Handle Cypress Async Commands? Smart Hacks | Part IV: bit.ly/2W1kwr8
    How to Handle Non-Cypress Async Promises using the ".then" command? | Part V: bit.ly/3DOSqk7
    How do you use assertion in Cypress? | Part VI: bit.ly/3gIGpTa
    How to write tests with Cypress UI commands | Part VII: bit.ly/3jyT9NU
    What Are Cypress Hooks? | Hooks In Cypress | Part VIII: bit.ly/2YZf21h
    What Are Cypress Fixtures? | Setting Up Cypress Fixtures | Part IX: bit.ly/3kq1qnO
    What Are Cypress Custom Commands? | Cypress Automation | Part X: bit.ly/3kKxhzW
    What Are Cypress Mouse Commands? | Cypress E2E Automation | Part XI: bit.ly/3mFvagx
    What Are Cypress Actions? | GitHub Actions | Cypress Automation | Part XII: bit.ly/2ZyhKLR
    Perform Cross Browser Testing on Cloud with Cypress & LambdaTest | Part XIII: bit.ly/3E4q0SC
    GitHub Repo: github.com/cypress-io/cypress...
    Note: The Kitchen Sink Repo used in the video has gone some structural changes with the latest update. So, while using the repo, please use the current/updated folder structure.
    Sign Up for LambdaTest! It’s FREE 🙌
    Perform scalable and reliable cross-browser compatibility testing of your website and web app on the latest mobile and desktop browsers: accounts.lambdatest.com/regis...
    Register Now to Avail Bonanza Offerings 💎
    + Test websites and web apps on 3000+ real browsers over LambdaTest cloud
    + Trusted By 1M+ users, 500+ enterprises and 130+ countries
    + Online scalable Selenium Grid to perform Manual as well as Automation Testing
    + 100 minutes of free Web + Mobile Automation Testing
    + 60 minutes of free Live Interactive Testing per month
    + 10 Screenshot Tests per month
    + 10 Responsive Tests per month (Test a page across 50+ Device configurations with a single click)
    + Unlimited free testing on LT Browser
    For questions: support@lambdatest.com 😃
    *𝑬𝒙𝒑𝒍𝒐𝒓𝒆*
    🎬 Most Recent Videos: bit.ly/3kUUeAQ
    🎓 Learning Hub: bit.ly/3fr6l4Z
    🎥 LambdaTest Customers: bit.ly/2TB7pvD
    🚀 Webinars: bit.ly/37i41co
    🛠️ Product Updates: bit.ly/3717NGO
    💬 LambdaTest Certifications: bit.ly/3x4EtcY
    *𝑺𝒐𝒄𝒊𝒂𝒍*
    📝 BLOG: bit.ly/3yGVsUc
    👥 COMMUNITY: bit.ly/3Aiz5oO
    🔴 NEWSLETTER: bit.ly/3juhxzc
    🖼️ GITHUB: bit.ly/3jowfYs
    🛠️ TH-cam: bit.ly/3rH2Yfh
    🌎 LINKEDIN: bit.ly/3xA6F84
    👥 FACEBOOK: bit.ly/37mbQOa
    🐦TWITTER: bit.ly/3Cn0g3A
    📸 PINTEREST: bit.ly/2VCXI05
    #cypresstutorial #tutorial #programming #cypressautomation #cypresstesting #cypress #javascript #software
    Disclaimer:
    This video features materials protected by the Fair Use guidelines of Section 107 of the Copyright Act. All rights reserved to © 2021 LambdaTest. Any illegal reproduction of this content will result in immediate legal action.
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @GabeSegura94
    @GabeSegura94 ปีที่แล้ว +37

    For those wondering the Integration folder is now depreciated in newer versions of Cypress, when you select E2E, after running cy:open, it will generate an e2e folder and there is where you will find the tests

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

    Amazing classes! Congrats and thanks for the experience

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Thanks Lucastep..Glad you liked it!

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

    My friend told me about this channel and guess what I'm in love with what they are doing😍 I'm a beginner in this field, this tutorial really helped me to learn about Cypress in detail❤ I'd appriciate if you guys can make a video on Cypress Mouse Commands😁

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Hi Elle, Thanks for your kind words! The Cypress tutorial has all you need to learn Cypress in detail: th-cam.com/video/jX3v3N6oN5M/w-d-xo.html However, we have a dedicated video covering Cypress Mouse Commands as well: th-cam.com/video/43pTrPA7CNY/w-d-xo.html

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

    Thanks a lot for this relevant info! This video helps me to have an overview of what I'm looking for, it's time to create my testing framework. After working several years with selenium and java for web applications, now I will try to implement cypress for react application so I'm excited to do that. I will use for e2e testing, I'm thinking to implement POM and Gherkin.

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

      Thanks for your kind words.Glad you liked it 😇
      Make sure you subscribe to our TH-cam channel for more 👋🏻

  • @DuyTran-ss4lu
    @DuyTran-ss4lu 2 ปีที่แล้ว +2

    Cool, concise and informative. Thanks so much

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Glad it was helpful!

  • @einsteingranny2695
    @einsteingranny2695 2 ปีที่แล้ว

    1:34:29
    NICE VIDEO! VERY HELPFUL!
    Just wondering why did you change findByPlaceholder into findByLabelText!

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

    great tutorial!
    ty mate

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

      Glad you liked it,
      Subscribe to our channel for more such tutorials! ✨

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

    Great tutorial!

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

      Hey Jack 👋🏻
      Glad you liked it! Subscribe for more✨

  • @THANHNGUYEN-hh2fx
    @THANHNGUYEN-hh2fx ปีที่แล้ว

    Hi! Fellow Austinite here. Love this video!

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

      Thanks 😊
      Subscribe to our channel to never miss an update on the upcoming tutorials! ✨

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

    Can you share your vs code and vs code terminal theme plz ?

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

    great stuff. thanks for the info.

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

      Glad you found this helpful😊
      Subscribe to our channel to never miss an update on the upcoming tutorials! ✨

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

    thank you for your tutorial is the automation of windows desktop applications also possible with this cypress tool?
    cordially

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

      Hey there👋🏻,
      Cypress is not capable of automating desktop apps.
      Cypress is more about a web application automation framework. This means if the application can run in a browser, Cypress can automate it.

  • @pawem.5160
    @pawem.5160 ปีที่แล้ว +6

    after more than two hours I got to the 12th minute of this tutorial. So many things didn't work for me that I learned Cypess by myself to keep up: D

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

      Hey Pawel 👋🏻,
      Let us know how can we help.

    • @pawem.5160
      @pawem.5160 ปีที่แล้ว

      @@LambdaTest The beginning of tutorial is little outdated (minus of a very fast-growing environment), but it's OK. Little help of stackoverflow and everything is working great :) To your knowledge:
      I don't know how to get "zsh" terminal,
      I don't understand how to work on localhost,
      I had "Build Error While Integrating Cypress Testing Library on Gitlab" while installing cypress-testing-library

    • @27sosite73
      @27sosite73 ปีที่แล้ว

      ​@@pawem.5160 Napięć swoją dupę, obejrzyj wideo, a następnie przeczytaj dokumentację, a będziesz szczęśliwy

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

    Все четко и ясно. Хорошая связка.

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

      Glad it was helpful.
      Please subscribe to our TH-cam channel for more such videos 🌟

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

    Your font looks good. How to get that? Is that an extension to be added in the project?

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

      Hey there 👋🏻
      Glad you liked it! Here are the steps to change your font in VS Code.
      Open your VS Code settings by clicking the gear icon in the lower left corner. Then, search for “Font Family” and type in “Cascadia Code”

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

    i am not able to see the Integration folder getting created, I think it's not supported by the latest Cypress versions, how to compare your video with latest Cypress version?

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

      If you clone the repository, you will not able to find a match with the video. Because the repo has developed a lot through the contributions. My suggestion is to create a basic cypress project and follow along with the videos.

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

      those folders are now depreciated in newer versions of Cypress, when you select E2E, it will generate an e2e folder and there is where you will find the tests

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

    Do you know how to get visual studio code on windows to accept mac style commands? I can't even install the project files without errors

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Hey, Let us get back to you on this

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

      @@LambdaTest thanks I've solved it. Needed to install git

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

    Can you please add a video to talk about starting up localhost 8080?

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

      That's a great suggestion!
      Subscribe, and look forward to more tutorials! ✨

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

    Could you guys help me understand how we can find HTML Elements Using Cypress Locators I'm stuck and I couldn't find it? 🙏

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Navya, To find HTML Elements Using Cypress Locators please refer to our earlier blog on How To Find HTML Elements Using Cypress Locators: www.lambdatest.com/blog/finding-html-elements-using-cypress-locators/

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

    Can you help me with how to write tests with Cypress UI commands? I have just started to learn cypress so it'd be very helpful 🤩

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

      Nora, you can always check out our cypress playlist. Here is the link😊: th-cam.com/video/jX3v3N6oN5M/w-d-xo.html

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

    Hey pls tell me perquisites of this course

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Hi Anashwar, you can find the prerequisite in this tutorial. However, do let us know if you are referring to any specific section/topic

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

    hi, i'm having an error @7:03 , right after i try to run the command, the console returns this error:
    > cypress-example-kitchensink@0.0.0-development cy:open
    > cypress open
    sh: cypress: command not found

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Hey Alejandro,
      Let us get back to you on the same

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Hey Alejandro, please try npm install cypress@latest --save-dev in your current folder

    • @alejandrosejas
      @alejandrosejas 2 ปีที่แล้ว

      @@LambdaTest thank you! it worked :)

  • @360-jatin6
    @360-jatin6 ปีที่แล้ว

    Do u need to learn javascript for this tutorial or can i directly jump into this?

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

      Hey there 👋🏻
      This tutorial assumes some familiarity with JavaScript and web testing concepts, so it would be beneficial to have some prior experience with these topics before starting the tutorial. However, if you're new to JavaScript and web development, you can still follow along with the tutorial and learn as you go.

  • @priyagurde8968
    @priyagurde8968 2 ปีที่แล้ว

    How to access global variable in cypress from another spec file.

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Hey Priya,
      You can define the global variables in the cypress.json file that is in your project root.
      Also check this out docs.cypress.io/guides/references/configuration

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

    Anyway to fix the airy audio?

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      @paul, you mean the background noise? Also, if you can mention any particular time period where you are facing this, we will look into it. :)

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

    Hi! Good video. You mentioned repository link (Kitchen Sink) to clone and that it's in a description. But I can't see any... Cheers!

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

      Hey Om, here's the repository link: github.com/cypress-io/cypress-example-kitchensink

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

      @@LambdaTest Cheers! I found by googling it already. IT guys are smart 😜🧠

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

    i have an error - missing script: "cy:open". why that?

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

      Hey, Let us get back to you on this

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

      Hey, Please try npm install cypress@latest --save-dev in your current folder

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

    Hi, can you help me. Chrome starts, Cypress starts but after choosing test, error:
    Sorry, we could not load: localhost:8080/todo
    Simillar error for every test.

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Hi Jacob, let us get back to you on this

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      HI Jakub, The Web Application is not configured in your local. Please change the application URL to "lambdatest.github.io/sample-todo-app/"

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

      before running Cypress, make sure the localhost server is up and running, just type "npm start" on your project's terminal

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

      @@alejandrosejas This was helpful for other scenarios too. Thanks

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

    What is this vs code theme? Awsome content! :)

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

      Thanks Matkotech👋🏻, Glad you liked it ✨

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

      @@LambdaTest still do you know what vs code theme is this? ☺️

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

      @@LambdaTest still do you know what vs code theme is this? ☺️

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

      Hey Matkotech 👋🏻
      Give us some time to get back with the details.

  • @WasimAkram-ph9gp
    @WasimAkram-ph9gp 2 ปีที่แล้ว +1

    Hi Sir,
    I have a button in the
    If I click that button it will open a new window.
    I am able to click button inside the frame but not able to replace the parent window/use the child window
    Please help

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

      Hi Wasim, Let us get back to you on this

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Hi Wasim,
      1. make sure the frame is loaded correctly using this command: cy.frameLoaded('pass the locator of Frame')
      2. Each time to access elements under the frame you must use "cy.()" then. If you are not using cy. , means Cypress access elements outside of the frame.

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

    This is an error message I get for the opening scenario after installing lambatest to cypress framework. Is there anyone who could fix this? Environment variables also been applied
    -------------------
    Checking Lambda Config in current directory
    Validating CLI
    validating config
    Error!! Cypress Config File does not exist

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

      Hey Thilina 👋🏻
      One of the main reason for this error could be cypress.json is not placed the root. Can you place the JSON file in the root of the project
      Or, you can pass the config file path parameter in your script

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

      @@LambdaTest I ran to the same issue.
      But 1. The documentation said that cypress.json is now changed to cypress.config.js
      2. I tried to point the parameter to cypress.config.js but after lambdatest-cypress run, I am receiving an error:
      Cypress.json is not parsed, please provide a valid json
      Error!! Cypress Config File does not has correct json
      3. I tried creating cypress.config.json, so now I have both cypress.config.json and cypress.config.js, I tried github workflow and it works just fine but lambdatest gives me this error: There is both a cypress.json and a cypress.config.js at the location below:
      I don't have cypress.json file in my root directory.
      And all my configs are in the root directory also.
      Thank you for this tutorials btw. I am trying to finish this because I wanted to try taking your free cypress certificate. Kudos to you all!

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

      Okay. After hours of searching and debugging, I finally figured it out.
      It all has to do on how the lambdatest-config.json is setup.
      1. If you are using cypress v9, you are to explicitly use the cypress_config_file in run_settings.
      2. If you are using Cypress v10 and above you just delete cypress_config_file in run_settings as it is automatically detected by lambdatest. If you add cypress_config_file and set it to the new config file, lambdatest-cypress run will till throw an error even if you use the --ccf flag.
      There's this note in the lambdatest documentation which says:
      Cypress 10 and above versions automatically identify the cypress.config.js file in the project. Therefore, you don't need to specify the cypress_config.js capability.
      I already read that prior to my hours of checking but somehow did not understand it right away.
      So for me, what I did is (I am using Cypress ^V10) I updated my lambdatest-config.json file as follows:
      1. Deleted the cypress_config_file in my run_settings
      2. Updated my npm_dependencies > cypress version to the correct one that I am using
      And there, I was able to get my test working.

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

    Hello team? I am totally new to Cypress automation
    Did I come to the right place ?

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

      Yes!😊
      Subscribe to our channel for more such tutorials! ✨

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

    i can not find cypress.json file

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

      Hi,
      If you are unable to find the cypress.json file in your project, it is possible that it hasn't been created yet or it might be located in a different directory. Make sure to save the cypress.json file in the root directory of your Cypress project to ensure it is recognized by Cypress.

  • @MuhammadBilal-cq6tp
    @MuhammadBilal-cq6tp ปีที่แล้ว +1

    Kindly share the github source code ?

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

      Hey Muhammad
      Please refer to this GitHub repo github.com/cypress-io/cypress-example-kitchensink

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

    Hope to contribute for the 1000 likes.

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

      Make sure you subscribe to our TH-cam Channel for more such tutorials! 🙌

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

    Hi
    Is there any other way apart from cy.reload() to reload the page
    Thanks in advancd

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Hey Wasim, Let us get back to you on this

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Hey Wasim, Cypress reload command help reload the page, is there any specific reason to look for an alternative?
      However, you can use window.location.reload()

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

    Very helpful. Thanks Chris (aka Ted Cruz's son)

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

      Glad it was helpful!

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

    You are Jesus to me!

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Glad the video was helpful!

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

    The beginning of this video is super confusing. You just show your VScode with the code downloaded from your git repo, then you say that there is only one thing you need to do, which is cloning the repo, then you install Cypress ? Perhaps, it would be better for the beginners to show them everything step by step, so they can see the whole process.
    The Cypress folder never got created, it was already in the repo and it does not contain the integration folder. The structure is:
    cypress -> e2e -> 1-getting-started/2-advanced-examples
    Cypress dashboard looks completely different witj E2E Testing and Component Testing buttons - it does not give the user any opportunity to edit those tests.
    No explanation of what "it" does, what can be the alternatives placved there etc.
    I find this tutorial extremely un-useful.

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

      Hey there,
      Thank you for taking the time to provide detailed feedback on the Cypress tutorial. We apologize for any confusion and gaps in the content
      Folder Structure Clarification: The structure cypress -> e2e -> 1-getting-started/2-advanced-examples is specific to the version and configuration of the Cypress setup in the tutorial. The standard Cypress installation creates a cypress directory with subdirectories like integration, fixtures, and support. The e2e directory is part of newer structures in Cypress 8 and later versions, focusing on end-to-end testing.
      Cypress Dashboard Updates: Cypress's UI does change over time with updates. The dashboard now differentiates between E2E Testing and Component Testing. For editing tests, you would typically do this within your code editor, not on the dashboard. The dashboard is more for viewing test runs, results, and configurations.
      Cypress Commands: The it command is used to define individual test cases in Mocha, which is the testing framework Cypress uses. Each it block represents a single test. Alternatives or variations include using describe to group multiple it test cases.
      If you have any more questions or need further guidance, please don't hesitate to reach out.

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

    I got an error
    cy.visit() failed trying to load: / We failed looking for this file at the path: /Users/macintosh/Shahriyar/Cypressautomation/ The internal Cypress web server responded with: > 404: Not Found Because this error occurred during a before each hook we are skipping the remaining tests in the current suite: My First Test
    @LambdaTest can you please solve my problem.

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Hi Muhammad, let us get back to you on this

    • @Quickmark94
      @Quickmark94 2 ปีที่แล้ว

      @@LambdaTest Hi, any updates regarding this one? I'm also getting this error. For anyone still getting this error, it got solved on my side by adding 'baseUrl' , running a test, then changing it back to '/'. Not sure why it fixed it though :D . Please be advised that the config should look like this: e2e: {
      baseUrl: 'localhost:8080',
      }

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

      Hey, Can you please check that you have sure your page is running healthy in localhost:3000? Maybe you can try to run a step first to make a request to this address and see if the status response is 200. Sometimes the reason could also be that cypress.json file was not in the root. Let us know if that helped :)

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

    I so grateful about this course.
    I am facing this error pass two days and still haven't found solution. need urgent help.
    Error: read ECONNRESET
    {
    errno: -4077,
    code: 'ECONNRESET',
    syscall: 'read'
    }
    Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:211:20)
    Thank you so much

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Hi Zoe, let us get back to you on this!

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Zoe, The cause of this issue can be that the Cypress is getting blocked by anti-virus software. You can stop or pause your Antivirus and try. Also, update your Cypress version.

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

    great video! question, I got this error, how can I fix it? and Thank You!
    cy.visit() failed trying to load:
    localhost:8080/todo
    We attempted to make an http request to this URL but the request failed without a response.
    We received this error at the network level:
    > Error: connect ECONNREFUSED 127.0.0.1:8080

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Hi Dan, The Web Application is not configured in your local. Please change the application URL to "lambdatest.github.io/sample-todo-app/"

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

      before running Cypress, make sure the localhost server is up and running, just type "npm start" on your project's terminal

    • @justinharrison4542
      @justinharrison4542 2 ปีที่แล้ว

      @@alejandrosejas Thank ya sir!