https://cypress.io logo
Join DiscordCommunities
Powered by
# general-chat
  • f

    faint-bear-92677

    07/06/2021, 12:23 AM
    Are you looking for something like this? https://docs.cypress.io/guides/references/assertions#Chai
  • f

    fast-action-74989

    07/06/2021, 12:46 PM
    hi everyone, i have some problem with the cy.wait because i don't wanna use that, exist something like a wait in a cy.get??
  • f

    fast-action-74989

    07/06/2021, 12:46 PM
    not using the cy.interceptor
  • g

    gray-kilobyte-89541

    07/06/2021, 1:15 PM
    read https://on.cypress.io/retry-ability
  • f

    fast-action-74989

    07/06/2021, 3:32 PM
    thanksπŸ™ πŸ™ πŸ™
  • u

    user

    07/06/2021, 10:50 PM
    How do you run a
    describe
    multiple times with different paramters?
  • u

    user

    07/06/2021, 10:52 PM
    never mind i think wrapping the describe in
    Cypress._.times
    would work
  • g

    gray-kilobyte-89541

    07/06/2021, 11:15 PM
    see https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/fundamentals__dynamic-tests
  • u

    user

    07/06/2021, 11:15 PM
    Thanks @User
  • u

    user

    07/11/2021, 5:03 AM
    So Cypress is a great tool and I hear so is percy when used with cypress
  • u

    user

    07/11/2021, 5:04 AM
    but these tools seem like way to much work to maintain in our application when we are changing the website so drastically
  • u

    user

    07/11/2021, 5:04 AM
    every single sprint
  • u

    user

    07/11/2021, 5:04 AM
    and it doesn't look like percy will let you use a mock up to test the visuals of the website.
  • u

    user

    07/11/2021, 5:04 AM
    so should I just stick to testing components, unit tests and manual QA?
  • b

    bulky-sundown-74498

    07/11/2021, 10:25 PM
    @User I would expect you to change things every sprint but not necessarily every component. If you do, there actually very little "cheap" testing you can do. My unsolicited advice: - Try to find what can be tested and test it (utils, components, theming, authentication) - Never try to reach for 100% coverage if you want to keep your sanity
  • u

    user

    07/11/2021, 10:35 PM
    @bulky-sundown-74498 oh not trying for 100%. Our devs currently write 0 tests and end up deleting unit tests that don't pass haha. What I wanted was a E2E test to go through tge flow but every single sprint the entire UI changes from revamping entire pages to renaming buttons to adding different steps or combining steps adding modals to removing them. I also don't think I can even use Cypress to load a page mock the API return because those look drastically different as well. I don't think Percy can use a mockup to validate the UI either.
  • u

    user

    07/11/2021, 10:37 PM
    So I'm just not sure what route to even go at this point
  • b

    bulky-sundown-74498

    07/12/2021, 3:28 AM
    Could you describe in words what you want to test? I mean not here but for yourself. It looks like You are in a prototype phase of your website. This is usually not the best time to invest in e2e testing. Unit tests though have a tendency to help you write better code since they force you to think in units. Once the new components work you could simply delete the tests. That is not a crime.πŸ˜‰
  • b

    bulky-sundown-74498

    07/12/2021, 3:29 AM
    I hope we can help you more soon.
  • l

    little-truck-20143

    07/12/2021, 5:17 AM
    Hi all, I want to list the account from our sybase database and Key in one account to UI with cypress ? Is that possible with cypress ?
  • f

    flat-electrician-52949

    07/15/2021, 8:01 PM
    Just saw Fireship (YouTube) demonstrate some of chromes features and he showed a coverage feature I wasn't aware of.

    https://youtu.be/TcTSqhpm80Yβ–Ύ

    Now I'm curious to know if it would be possible to extract a coverage report after completed tests to find unused CSS parts??? (test coverage to my knowledge only covers JavaScript)
  • u

    user

    07/16/2021, 7:04 AM
    I'm trying to buy more CI minutes. Going through registration has given me error saying it can't recognize my post code. I live in London, UK. I've tried with and without space and keep throwing the error. Any suggestions ?
  • b

    bulky-sundown-74498

    07/16/2021, 2:05 PM
    @User I would feel you know who to talk to about this. Can you help @User
  • u

    user

    07/16/2021, 3:35 PM
    It's sorted. Thank you.
  • f

    fancy-airplane-60156

    07/20/2021, 12:48 PM
    Hello ! I know it's pretty basic. I installed cypress yesterday.I ran few tests. App preview window is not displayed on my runner
  • f

    fancy-airplane-60156

    07/20/2021, 12:48 PM
    I was wondering what could be the issue
  • f

    fancy-airplane-60156

    07/20/2021, 12:52 PM
    Tests run okay. I see all of them have passed. It's just that i don't get to see the Video of how test progressed as App preview doesn't display
  • f

    fancy-airplane-60156

    07/20/2021, 12:52 PM
    😫
  • f

    fancy-airplane-60156

    07/20/2021, 1:13 PM
    @User it'd be great if you can help.
  • a

    able-kangaroo-37061

    07/20/2021, 2:20 PM
    Any quick ideas why a stubbed request would time out? I saw this , but since my test passes when run by itself, I wonder if the problem is in my test or app code instead of an issue with Cypress. The stubbed request is intercepted before it is triggered:
    Copy code
    js
    cy.intercept ...
    mountComponent ... // which triggers the request
    cy.wait ...
1...111213...127Latest