https://cypress.io logo
Join Discord
Powered by
# best-practices
  • a

    adorable-smartphone-87280

    04/18/2023, 12:45 AM
    Readability in the runner log.
  • k

    kind-window-92517

    04/18/2023, 5:07 AM
    Seems I need to read README.md more 🙏🙏
  • k

    kind-window-92517

    04/18/2023, 5:08 AM
    I think I am clone this repo. It's have course word in it
  • k

    kind-window-92517

    04/18/2023, 5:09 AM
    But I am using npm not yarn. It's effect the test too?
  • m

    many-airline-45402

    04/18/2023, 5:24 AM
    It seems that you need to use https://github.com/cypress-io/cypress-realworld-testing not https://github.com/cypress-io/cypress-realworld-testing-course-app (old, archived one).
  • k

    kind-window-92517

    04/18/2023, 5:31 AM
    So, I need to clone this realword-testing GitHub without 'course' word and follow lesson from course cypress.io lesson? Cause I see that repo and it's have different testing code than in the page. What should I do?
  • k

    kind-window-92517

    04/18/2023, 5:34 AM
    I still can follow this course https://learn.cypress.io/ and using repo cypress.realworld.testing?
  • k

    kind-window-92517

    04/18/2023, 5:41 AM
    Thank you for your guide, Sir 🙏🙏
  • m

    many-airline-45402

    04/18/2023, 6:14 AM
    I opened issue https://github.com/cypress-io/cypress-realworld-testing/issues/276 about the link to the old repository. The Cypress.io team needs to fix that and make sure that the instructions are correct and up to date.
  • k

    kind-window-92517

    04/18/2023, 11:25 AM
    Thank you sir, I will check again. Seems I will skip fifth step of course 1 until I can get the exact guide.
  • m

    magnificent-finland-58048

    04/18/2023, 3:50 PM
    if you get really stuck, take a look at this https://github.com/muratkeremozcan/nextjs-cypress I helped the devex person review it about a year ago
  • k

    kind-window-92517

    04/18/2023, 8:51 PM
    Thank you, I will check it 👍👍
  • g

    glamorous-oxygen-73293

    04/30/2023, 8:57 PM
    I am testing to see if an Angular Reactive Form is Valid. What seems to work is cy.get(''#myForm").should("have.class", 'ng-valid"); seems to work but is this a best practice or is there a better way.
  • r

    rapid-nail-81392

    05/06/2023, 1:17 PM
    Hello everyone, I am newcomer to Cypress, I'm interested in generating a report of all console errors that appear in the browser during my project. Can you please help me with achieving this in Cypress? Thank you.
  • m

    magnificent-finland-58048

    05/10/2023, 2:05 PM
    @few-farmer-48800 do you know?
  • f

    few-farmer-48800

    05/10/2023, 2:06 PM
    Is this a component test or an E2E test @glamorous-oxygen-73293
  • g

    great-arm-27075

    05/25/2023, 11:00 AM
    Hi @everyone, I did override the type command to hide the password using sensitive as shown in Cypress docs, but wherever I'm passing this sensitive: true there I see an error as below, I'm using typescript in my project can somebody help me resolve this issue? when I mouse over the error it's giving this prompt -- Argument of type '{ sensitive: boolean; }' is not assignable to parameter of type 'Partial'. Object literal may only specify known properties, and 'sensitive' does not exist in type 'Partial'.ts(2345) (property) sensitive: boolean

    https://cdn.discordapp.com/attachments/961325024114008064/1111247369728704624/image.png▾

  • g

    great-arm-27075

    05/25/2023, 12:13 PM
    commands file

    https://cdn.discordapp.com/attachments/961325024114008064/1111265908002926693/image.png▾

  • g

    great-arm-27075

    05/25/2023, 12:14 PM
    index.d.ts

    https://cdn.discordapp.com/attachments/961325024114008064/1111266075670229102/image.png▾

  • g

    great-arm-27075

    05/25/2023, 12:36 PM
    @gray-kilobyte-89541 can you help with above issue?
  • m

    magnificent-finland-58048

    05/25/2023, 12:47 PM
    can you create a repo to reproduce this in? If everyone can see it, then you can create a Cypress issue. Maybe it's a real bug
  • g

    gray-kilobyte-89541

    05/25/2023, 1:20 PM
    as always when people have problems with TypeScript
    // @ts-ignore
    and move on. But yeah, you are not merging the type options interface but extending it. You got to merge
  • g

    great-arm-27075

    05/25/2023, 1:34 PM
    @gray-kilobyte-89541 I apologize; I completely missed that. Would you mind letting me know precisely where I should put this?
  • g

    gray-kilobyte-89541

    05/25/2023, 1:40 PM
    above the line where it complains https://glebbahmutov.com/blog/trying-typescript/#ignore-specific-error
  • g

    great-arm-27075

    05/26/2023, 4:29 AM
    @gray-kilobyte-89541 I have added //@ts-ignore but there is another error suggesting not to use it -- Do not use "@ts-ignore" because it alters compilation errors.eslint@typescript-eslint/ban-ts-comment), could you help me understand that merge instead of extends you mention earlier or paste two lines of code?

    https://cdn.discordapp.com/attachments/961325024114008064/1111511477782851665/image.png▾

  • s

    stocky-kilobyte-57323

    05/26/2023, 8:17 AM
    Using Cypress in Laravel Sail (docker) is VNC the "best practices" way? Or are there other ways of running the tests that doesn't involve having to setup VNC
  • m

    magnificent-finland-58048

    05/26/2023, 11:12 AM
    // @red-book-93350-expect-error
  • m

    magnificent-finland-58048

    05/26/2023, 11:16 AM
    Afaik as if September 2021, Laravel VNC does not exist as a specific technology or tool VNC, if I recall, is involved with remote desktop sharing Can't advise on "best practice" with Cypress about any of it. How about noVNC?
  • s

    stocky-kilobyte-57323

    05/26/2023, 11:17 AM
    What's up with the ChatGPT response?
  • g

    gray-kilobyte-89541

    05/26/2023, 2:16 PM
    I looked into this, but since it is a slightly larger example, I created a new lesson "Bonus 43: Hide the username on the Login page" https://cypress.tips/courses/swag-store/lessons/bonus43 in my paid course