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

    adorable-stone-42197

    06/24/2022, 2:04 PM
    cy.dataSession( 'name', // data name () => 'name', // data creation commands (x) => x === 'name', // data validation function cy.log is this ok?
  • g

    gray-kilobyte-89541

    06/24/2022, 2:26 PM
    looks ok
  • b

    bland-pharmacist-88362

    06/24/2022, 3:36 PM
    how do you guys store your tests? Every test in a single file or do you separate them somehow?
  • a

    aloof-beach-98822

    06/24/2022, 4:34 PM
    Thank you Murat! Actually this worked in one env, and failed in the next env. I was asked to pass headers and cookie to workaround it. can you please help me with this.
  • l

    late-planet-4481

    06/24/2022, 5:54 PM
    > Every test in a single file Yikes! That would get very hairy. I try to categorize the tests; I usually end up with 1-5 tests in a single file. I change the categorization all the time. Huge spec files will become a huge problem, not just for technical reasons (inability to parallelize the tests) but also for readability reasons. Maybe think of it as a grocery store; would you want all the items organized into clearly labeled aisles, or would you prefer to throw everything into one giant bin and let people dig through it like animals? ๐Ÿ™‚
  • f

    future-action-21047

    06/25/2022, 3:56 AM
    Hey, I was wondering if anyone had a guide for implementing authentication with Cypress10 + Auth0 + NextJs?
  • a

    aloof-beach-98822

    06/25/2022, 7:34 PM
    I am getting this error, cy.lighthouse is not a function. Please advise!
  • s

    swift-angle-95455

    06/25/2022, 11:06 PM
    Has anyone implemented Cypress with Auth0 and NextJS? I was trying but I got burn out because of the complexities. Maybe I need to read more of Auth0 and Cypress documentation but both are big.
  • c

    chilly-noon-25793

    06/26/2022, 6:34 AM
    is it possible to share
    cy.session
    between multiple spec files?
  • b

    billowy-hairdresser-82846

    06/26/2022, 8:39 AM
    How can I get app actions without exposing the window.app function in angular web application?
  • g

    gray-kilobyte-89541

    06/26/2022, 12:00 PM
    you can use cy.dataSession from cypress-data-session plugin, but not
    cy.session
  • g

    gray-kilobyte-89541

    06/26/2022, 12:01 PM
    well, it depends on your web app
  • b

    bitter-fountain-36713

    06/27/2022, 1:54 PM
    The error message defines your problem. Do you have it defined in your plugins?
  • g

    gray-kilobyte-89541

    06/27/2022, 2:24 PM
    it probably needs to be added to the plugins file https://github.com/bahmutov/cypress-data-session#install
  • a

    adorable-stone-42197

    06/27/2022, 2:29 PM
    module.exports = (on, config) => { require('cypress-data-session/src/plugin')(on, config) } i added this in mu plugin file? Or i just need to add something else?
  • g

    gray-kilobyte-89541

    06/27/2022, 3:44 PM
    what does the README say?
  • a

    adorable-stone-42197

    06/27/2022, 5:16 PM
    // cypress/support/index.js import 'cypress-data-session' u mean by this? Or i missing something
  • g

    gray-kilobyte-89541

    06/27/2022, 5:45 PM
    I am not sure what you are doing, but I would say the instructions in the README is the one to follow. Sorry cannot guess any more why you are experiencing problems, I wish you could provide a reproducible example
  • h

    hundreds-spoon-43121

    06/28/2022, 12:22 AM
    Is there any way to test that a timer embedded on an iframe pauses when closing browser tab/browser window on cypress and continues when revisiting the page? I know multi-tabs are not supported by cypress, but just wondering if thereโ€™s any workaround to automate this. Thanks
  • m

    millions-architect-22884

    06/28/2022, 5:05 AM
    Hello everyone, Should cypress e2e testing be part of CI pipelines in Azure
  • a

    adorable-action-72456

    06/28/2022, 7:08 AM
    Hello all, im trying to change the value of spec pattern via export CYPRESS_SPEC_PATTERN = "AnotherValue" but when run cypress nothing changed in the configuration and the value of CYPRESS_SPEC_PATTERN kept as before in the e2e variables in cypress.config.ts Not That all other variables works as expected like baseURL, just in case of change spec pattern. Is there anything related to e2e config ? and the config file should be like this : e2e: { env { } } or ------ env { } e2e: { }
  • p

    plain-coat-80931

    06/28/2022, 12:01 PM
    Hello all! We are having issues where some tests fail when using the cypress/included docker, compared to running the same command locally that works. Did anyone experienced that and could shed some light on Docker vs Local issues?
  • s

    some-angle-80895

    06/28/2022, 12:56 PM
    Hi @here, is there a section where i can ask a question ? ๐Ÿ˜„ i am a little stuck with something.. thanks
  • a

    aloof-beach-98822

    06/28/2022, 1:06 PM
    I was trying to add AccessToken header to my request
  • a

    aloof-beach-98822

    06/28/2022, 1:09 PM
    cy.visit({ url: ' ', headers:{ 'Accesstoken': ' '}
  • a

    aloof-beach-98822

    06/28/2022, 1:10 PM
    But header is not added? Please advise
  • w

    wooden-teacher-96595

    06/28/2022, 1:32 PM
    hey all, is there any way to test the response time of a call or how long a component takes to load?
  • w

    wooden-teacher-96595

    06/28/2022, 1:33 PM
    is the access token stored in the local storage of the site or a cookie? as you could add it there before calling the site. That is how I used to do it
  • a

    aloof-beach-98822

    06/28/2022, 1:35 PM
    I can see it in the response header , set-cookie:AccessToken.
  • a

    aloof-beach-98822

    06/28/2022, 1:36 PM
    How can I add it to the request?
1...596061...192Latest