https://cypress.io logo
Join DiscordCommunities
Powered by
# e2e-testing
  • c

    chilly-quill-34099

    08/31/2022, 11:25 AM
    Do you use a terminal or Docker Desktop to start your Cypress container?
  • s

    strong-energy-6158

    08/31/2022, 11:33 AM
    Mac terminal ( just ran the command in Mac terminal).
  • c

    chilly-quill-34099

    08/31/2022, 11:35 AM
    Alright, so you have to navigate to your cypress/e2e of your local project (with
    cd
    ) and than run the command from there, once you are inside the folder.
  • c

    chilly-quill-34099

    08/31/2022, 11:38 AM
    Is there a reason, why you want the version 9.4.1? If not, why not use the current version?
    docker run -it -v $PWD:/e2e -w /e2e --entrypoint=cypress cypress/included:10.7.0
  • s

    strong-energy-6158

    08/31/2022, 11:40 AM
    ok. running with 10.7.0 now...downloading contents..
  • c

    chilly-quill-34099

    08/31/2022, 11:43 AM
    Have you already written any tests?
  • s

    strong-energy-6158

    08/31/2022, 11:43 AM
    cypress tests are working fine when running by npx cypress run or open. It runs in circleci, gitlab, github action also. Issue only with docker 😦
  • s

    strong-energy-6158

    08/31/2022, 11:46 AM
    as per the error message, the configuration file is missing in /e2e. Do we need any additional configuration for docker?
  • c

    chilly-quill-34099

    08/31/2022, 11:57 AM
    Not sure how to transfer or mount the config file. There is a similar issue here https://github.com/cypress-io/github-action/issues/564 ... You would need to dig into that without me, because it isn't directly docker related. Best of luck
  • n

    narrow-petabyte-18534

    08/31/2022, 12:54 PM
    Hi! I got this warning while running my test: "cy.session() requires enabling the experimentalSessionAndOrigin flag." - Can you advise how to do this? Am I adding a piece of code to cypress.config.js or is there a box somewhere to toggle this on?
  • c

    chilly-quill-34099

    08/31/2022, 1:15 PM
    Yes, you add it into you
    cypress.config.js
    file. My TypeScript-file looks like this:
    Copy code
    ts
    export default defineConfig({
    ...
      e2e: {
        ...
        experimentalSessionAndOrigin: true,
        ...
      },
    ...
    });
    Should be similar in Javascript
  • n

    narrow-petabyte-18534

    08/31/2022, 1:17 PM
    thank you!
  • n

    narrow-petabyte-18534

    08/31/2022, 1:18 PM
    correct?
  • c

    chilly-quill-34099

    08/31/2022, 1:19 PM
    I think, it should be one level higher. Outside of setupNodeEvents, not inside.
  • n

    narrow-petabyte-18534

    08/31/2022, 1:25 PM
    moved it up, still get the same warning though :/
  • c

    chilly-quill-34099

    08/31/2022, 1:26 PM
    I think you have to restart Cypress, so that the config gets refreshed.
  • t

    thankful-vegetable-38026

    08/31/2022, 1:30 PM
    Afaik it should Auto reload but restarts usually work lol
  • w

    wide-waiter-58637

    08/31/2022, 1:46 PM
    Hello Everyone I am running into some issues this morning and getting this error: The command was expected to run against origin but the application is at origin I am able to navigate manually to the url and even with other tools but Cypress throws that error can someone help me with this error?
  • c

    chilly-quill-34099

    08/31/2022, 2:20 PM
    Is there some more information in the error?
  • w

    wide-waiter-58637

    08/31/2022, 2:40 PM
    @chilly-quill-34099 what more information are you requesting. Can you please a little specific?
  • h

    happy-dinner-13480

    08/31/2022, 2:42 PM
    I have a test that sometimes fails on the CI due to timeouts, specifically when there are multiple instances of Cypress running. Guess the server is lagging a bit when that happens. Would setting a custom timeout be okay to remedy this?
  • c

    chilly-quill-34099

    08/31/2022, 2:46 PM
    Very often Cypress gives multiple lines of explanation regarding the error. Are you leaving your website (the origin), while doing the e2e tests?
  • w

    wide-waiter-58637

    08/31/2022, 2:47 PM
    @chilly-quill-34099
  • w

    wide-waiter-58637

    08/31/2022, 2:47 PM
    no, I am not leaving my website
  • w

    wide-waiter-58637

    08/31/2022, 2:47 PM
    @chilly-quill-34099 I am on the same page as far as i know.
  • c

    chilly-quill-34099

    08/31/2022, 2:52 PM
    Would
    cy.url().should('include', ****)
    be an option? If so, what is the result?
  • w

    wide-waiter-58637

    08/31/2022, 2:54 PM
    trying that now.
  • w

    wide-waiter-58637

    08/31/2022, 2:56 PM
    it failed again
  • w

    wide-waiter-58637

    08/31/2022, 2:56 PM
    I do click the dropdown and then page loads and quickly throws that error SESSION TIMEOUT
  • w

    wide-waiter-58637

    08/31/2022, 2:57 PM
    @chilly-quill-34099
1...929394...192Latest