Automated PERFORMANCE & ACCESSIBILITY TEST with CYPRESS.IO? | Cypress Tutorial

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 33

  • @joanmedia
    @joanmedia  2 роки тому +1

    🤖DISCORD: discord.gg/2F9E2fRGaU
    ⭐PREMIUM Cypress + Typescript course: shorturl.at/dcnPn
    📣FREE Cypress videos: shorturl.at/h6iEX

  • @artakavetisyan6075
    @artakavetisyan6075 Рік тому +4

    To get more realistic for performance add the throttling settings. For me it works. :)
    const lighthouseConfig = {
    formFactor: "desktop",
    screenEmulation: {
    mobile: false,
    disable: false,
    width: Cypress.config("viewportWidth"),
    height: Cypress.config("viewportHeight"),
    deviceScaleRatio: 1,
    },
    throttling: {
    rttMs: 40,
    throughputKbps: 11024,
    cpuSlowdownMultiplier: 0,
    requestLatencyMs: 0,
    downloadThroughputKbps: 0,
    uploadThroughputKbps: 0,
    },
    };

    • @joanmedia
      @joanmedia  Рік тому

      Hello! Appreciate it, i will add it for the next video, sounds amazing 🤩

  • @MonaBartley
    @MonaBartley Рік тому +2

    Hi Joan, can you please recored a video on how to install lighthouse to integrate with cypress v10 and up.

  • @terminal3553
    @terminal3553 2 роки тому +5

    Can you please make a video about cypress parallelization and how to run multiple sessions at the same time

  • @gildoso
    @gildoso 2 роки тому +1

    Awesome video. Thank you so much, Joan.

  • @nilanganayanajith2273
    @nilanganayanajith2273 Рік тому +1

    when I executing test in pipeline using npx cypress run . it got failed with error "You probably have multiple tabs open to the same origin". How do I handle this

  • @misn757
    @misn757 Рік тому

    I am using Cypress package version: 12.11.0. I will look to see if you have a video for it because the file structure is different. If you don't, would you please do one?

  • @olabanjotaye6353
    @olabanjotaye6353 2 роки тому +2

    Can you do video on the new cypress release on how write first test cos plug-in and integration folder not there

    • @joanmedia
      @joanmedia  2 роки тому +1

      Hello! It is in my list, want to create some videos with the new setup.

    • @olabanjotaye6353
      @olabanjotaye6353 2 роки тому

      @@joanmedia thanks man

  • @noeldulin4524
    @noeldulin4524 2 роки тому

    Can you please make a video about automating pagespeed insight on cypress?

  • @JorgeGonzalez-sb8wl
    @JorgeGonzalez-sb8wl 2 роки тому +1

    Lighthouse is better than jmeter or it is completed different? Regards

    • @joanmedia
      @joanmedia  2 роки тому

      Hi Jorge! I think they are completely different.
      Lighthouse is going to give you an score, Jmeter can provide you with more possibilities, configurations and results. Hope I can review a bit of Jmeter soon :)

  • @rohitmane8803
    @rohitmane8803 5 місяців тому

    sir, can we perform performance testing for component in cypress please give me ans

  • @naveenyenuganti8825
    @naveenyenuganti8825 Місяць тому

    Hi , I have the 2 test files in cypress e2etest1 and e2e test2 I ran the cypress command npx cypress run --browser chrome and I am able to see only 1 test file lighthouse report. How can I see the 2 lighthouse reports for 2 test files by running the command npx cypress run --browser chrome

  • @MuhammadArslan-qj7lh
    @MuhammadArslan-qj7lh 2 роки тому +2

    came across this error while trying the above. Any leads to working solution?
    cy.task('lighthouse') failed with the following error:
    > You probably have multiple tabs open to the same origin.

  • @qatester6425
    @qatester6425 Місяць тому

    How to view this in jenkins?

  • @marijanarukavina9499
    @marijanarukavina9499 2 роки тому +1

    @JoanMedia
    I followed your steps and I am using Cypress with Typescript, but I put the performance tests into the js files and I get this error:
    cy.task('lighthouse') timed out after waiting 60000ms
    node_modules/@cypress-audit/lighthouse/src/command-handler.js:46:1
    44 | cy.log("-------- cy.lighthouse --------");
    45 | return cy
    > 46 | .task("lighthouse", {
    | ^
    47 | url,
    48 | thresholds: thresholds || configThresholds || defaultThresholds,
    49 | opts: opts || globalOptions,
    Can you please help?

    • @KevinOsterkilde
      @KevinOsterkilde Рік тому

      Increase the task timeout to something like 3 minutes or however long is needed for your particular test: `Cypress.config('taskTimeout', 180_000);`

  • @amardeeppatil5444
    @amardeeppatil5444 2 роки тому

    Can you create video for reusable mocha test in cypress

    • @joanmedia
      @joanmedia  2 роки тому

      Hello! What do you mean with reusable mocha?

  • @segroegburner
    @segroegburner Рік тому

    i have the following error : cy.task('lighthouse') failed with the following error:
    > Cannot read properties of undefined (reading 'numericValue'). Can you help. I am using Cypress 10.3.1

  • @arsicpedja
    @arsicpedja 2 роки тому +1

    Is this included in your Cypress udemy course?

    • @joanmedia
      @joanmedia  2 роки тому +2

      Hello Predrag. It is not but it is a good idea to include it, will be working on the new lecture for the next "release". I am constantly updating it.

    • @arsicpedja
      @arsicpedja 2 роки тому +1

      @@joanmedia great, thank you. Will be looking into your course to improve my Cypress knowledge.

    • @joanmedia
      @joanmedia  2 роки тому +1

      @@arsicpedja Hope you like it :D Thanks for your support.

  • @umaisk.m3890
    @umaisk.m3890 Рік тому

    Hey, I am facing some authentication issues. While running light house on authenticated pages. How to test page behind authentication?