https://cypress.io logo
Join Discord
Powered by
# e2e-testing
  • n

    nice-policeman-60909

    05/18/2022, 5:00 PM
    If the issue is with memory, is there a way to see those like a dedicated log file ?
  • n

    nice-policeman-60909

    05/18/2022, 5:07 PM
    Also i am in the process of creating a E2E test suite for a relatively big enterprise application, which would have around 300 tests & per script average automation execution time is 2 mins - So is there any best practice or guides to follow in these kind of use-cases/situations ?
  • n

    nice-policeman-60909

    05/18/2022, 5:20 PM
    Sure, i can do that, But as i want to run it as a regression suite - Is there any alternative option to do it from Test Runner in single file itself ?
  • e

    early-ocean-91379

    05/18/2022, 6:10 PM
    I tried setting up system env variable, but still no luck (tried both CYPRESS_NO_COMMAND_LOG and NO_COMMAND_LOG) Wondering if this option is no longer supported in Windows after introduction of the --quiet flag
  • l

    late-flower-42691

    05/18/2022, 6:30 PM
    Aloha, I'm having trouble with code coverage not covering the src folder correctly. I spent a couple weeks going over as much cypress code coverage documentation and examples I could get my hands on. I'm unable to generate code coverage outside the cypress folder except for a handful of unnecessary files. My goal: code coverage over e2e, unit, and component tests, if this is possible. Repo: https://github.com/steve-snow/react-cypress-coverage-e2e-ct I was able to get instrument-cra to work, except for component tests. It will cover unit tests if they are in cypress folder structure. @cypress/code-coverage was not working for me as it was instrumenting the spec files and would not fully instrument the src folder. The each of the four trial branches build off the e2e-and-ct branch which holds an example of each type of test. This in turn branches off of cypress-starter - a vanilla react app initialized with **yarn **and **cypress **included. Is there something missing? Many thanks
  • b

    broad-addition-81972

    05/19/2022, 2:48 PM
    Hi, I'd like to ask a little advice here related to cy.session() and indexedDB/Firebase. We have tons of test cases running parallel and continuously logging in and out is not just slow but with the same test accounts Firebase is limiting you very quickly. We are super happy for the cy.session() feature, because it speeds up the process a lot, but in the other hand for some reason it doesn't handle indexedDB yet, which is exactly what Firebase is using. I know that we are not the first ones who run into this problem. - there is a request from October that didn't get much love yet: https://github.com/cypress-io/cypress/issues/18350 - and other discussions from last Autumn: https://github.com/cypress-io/cypress/issues/1208 What we'd like to know if someone has a stable workaround by now or any advice that would help us to avoid some mistakes while we are working on our own custom solution. We were thinking about saving the indexedDB right after login and then reset it at every upcoming login. Thanks in advance!
    • 1
    • 1
  • m

    magnificent-finland-58048

    05/19/2022, 4:25 PM
    you're right about the component tests having to be in cypress folder vs the src folder. It's a known issue in v9 with component test code coverage when you say " code coverage not covering the src folder correctly." do you mean code coverage coming from e2e tests ? here's another CRA with e2e and component tests. The e2e do provide coverage of the source code https://github.com/muratkeremozcan/react-hooks-in-action-with-cypress
  • e

    early-army-45882

    05/19/2022, 5:09 PM
    Can anyone give me steps to run cypress in jenkins
  • e

    early-ocean-91379

    05/19/2022, 5:46 PM
    hi I am able to see the change in cypress runner by setting up an env variable NO_COMMAND_LOG=1 (in cypress.json file under env ) But do not see the desired change in headless mode.. I am running using npx cypress run or via package.json npm run cy:run may I know if I missed anything.. Any pointers would be really helpful @gray-kilobyte-89541
  • h

    happy-piano-79697

    05/20/2022, 7:05 AM
    Hello team , in my project when login done all tests are redirecting to again login page only , my module built inside iframe.. any tips to resolve this ?
  • b

    broad-addition-81972

    05/20/2022, 9:29 AM
    Hi I d like to ask a little advice here
  • l

    late-flower-42691

    05/20/2022, 2:02 PM
    yes, code coverage from e2e tests are not correctly instrumenting the src folder for cypress/code-coverage implementation. I will take a look at the repo, thank you.
  • r

    rhythmic-butcher-48923

    05/22/2022, 2:23 PM
    do you know any db seed and db truncate example for cypress before() and after() hooks that i can use?
  • b

    bitter-apple-86316

    05/23/2022, 6:36 AM
    Hi while mocking the response, data is not loading
  • b

    bitter-apple-86316

    05/23/2022, 6:37 AM
    Observed undefined in console error for key value
  • b

    bitter-apple-86316

    05/23/2022, 6:40 AM
    Can anyone help me
  • b

    bitter-apple-86316

    05/23/2022, 6:53 AM
    Any help
  • m

    mysterious-belgium-25713

    05/24/2022, 7:28 AM
    @bitter-apple-86316 can you show how you are mocking the data
  • t

    tall-carpenter-24673

    05/24/2022, 1:52 PM
    Hi I want to test firebase push notification in cypress but couldn't get it working . Can anyone help me in it thanks
  • m

    magnificent-finland-58048

    05/24/2022, 7:56 PM
    I've no experience with it, but this sounds like Fireship / Jeff Delaney question Ask him on Twitter https://twitter.com/Jeffdelaney23 You might even find something on https://fireship.io/ Did you check out https://github.com/prescottprue/cypress-firebase?
  • t

    tall-carpenter-24673

    05/25/2022, 5:27 AM
    yes i have already check cypress-firebase plugin but it does not have what i need and that is firebase-messaging ... thanks anyway
  • b

    bitter-apple-86316

    05/25/2022, 9:03 AM
    My target is to automate flow using full mocking. Is this possible to mock all apicalls using cypress
  • m

    magnificent-finland-58048

    05/25/2022, 2:25 PM
    tbh, not sure what's not possible to mock even LaunchDarkly network calls are mocked easily https://github.com/muratkeremozcan/react-hooks-in-action-with-cypress
  • a

    acceptable-solstice-90676

    05/25/2022, 11:13 PM
    Hey guys, I am getting the following error (see image) when using
    const { faker } = require('@faker-js/faker');
    , any idea?
  • c

    colossal-potato-23540

    05/26/2022, 5:13 AM
    Hi Everyone! Is it possible to use only one source folder in two cypress test? I wish someone can answer on this one. Thanks a lot!https://stackoverflow.com/questions/72374111/cypress-syntaxerror-import-and-export-may-appear-only-with-sourcetype-mod
  • m

    magnificent-finland-58048

    05/26/2022, 11:21 AM
    please don't spam the same question on multiple channels. We don't have many channels. Anyone who's interested or able will run into your question inevitably.
  • m

    magnificent-finland-58048

    05/26/2022, 11:22 AM
    Hard to have an idea without us looking at the same code. Here's an example of using faker in a spec. https://github.com/muratkeremozcan/react-hooks-in-action-with-cypress/blob/main/cypress/integration/ui-e2e/crud-bookable.spec.js
  • r

    red-toddler-79937

    05/26/2022, 4:48 PM
    ```ts specify('Unit test add items to shopping basket.', () => { let i = 0; cy.findAllByTestId('add-item-to-cart').each((e) => { e.trigger('click'); cy.get('.cart-size').first().should('have.text', "ASDA12312" + i++); }) }) ```Does anyone know why
    i
    remains 0? When I console log it it does reach 1 to 15.
  • m

    magnificent-finland-58048

    05/26/2022, 4:49 PM
    because i is synchronous and the cy command is async
  • m

    magnificent-finland-58048

    05/26/2022, 4:50 PM
    put i 2 lines down and try again
1...434445...192Latest