https://cypress.io logo
Join Discord
Powered by
# help
  • m

    mysterious-belgium-25713

    09/27/2022, 10:52 AM
    Is there a reason why you would use XML and not a Json file. Because if you use a JSON you can use cypress fixture and use the data for your tests. https://docs.cypress.io/api/commands/fixture
  • b

    brash-cpu-33893

    09/27/2022, 10:52 AM
    I have an API , and body data of API is in xml
  • m

    mysterious-belgium-25713

    09/27/2022, 10:55 AM
    Dont know if i can help you with real xml questions. Only example i can find is this https://stackoverflow.com/questions/67603093/cypress-parse-xml-response
  • g

    gentle-accountant-4760

    09/27/2022, 12:18 PM
    Anyone know how I can specify which folder the test was in the e2e? e.g. this is inside e2e/testFolder/plannerItemList but it shows only plannerItemList.cy.ts, how can I see what folder?
  • m

    millions-butcher-58164

    09/27/2022, 12:24 PM
    Hi there.. I am trying to install cypress in a project, it gets installed with npm but the problem is with the cypress folder. It isn't showing anywhere Steps I am following: 1: npm init 2:npm install cypress
  • f

    few-telephone-44543

    09/27/2022, 12:38 PM
    In the config file, you can set the path to your specs. For example: specPattern: "cypress/e2e/**/*.cy.{js,jsx,ts,tsx}",
  • g

    gentle-accountant-4760

    09/27/2022, 12:40 PM
    right but it shouldnt it say which folder it has tested in the spec output?
  • m

    mysterious-belgium-25713

    09/27/2022, 12:40 PM
    you need to scaffold the project. run npx cypress open
  • m

    millions-butcher-58164

    09/27/2022, 12:41 PM
    tried this but no use. this issue was occuring in last cypress releases.
    m
    • 2
    • 1
  • f

    few-telephone-44543

    09/27/2022, 12:42 PM
    In the output of a testrun, it never shows the path to the tests. Only the name of the specs. But if your path is correctly setup, you should see all specs.
  • g

    gentle-accountant-4760

    09/27/2022, 12:44 PM
    I mean I have multiple test that names the same but in different folders so e.g. if I do
    Copy code
    js
    specPattern: "cypress/e2e/**/hello*.cy.ts",
    I have 3 files that names the same but are in diff folders, in the output it still says just the spec name and not the folder name included
  • f

    few-telephone-44543

    09/27/2022, 12:47 PM
    I understand. Well, you can manipulate the result output if you like. You can read about it here: https://docs.cypress.io/api/plugins/after-spec-api#Syntax And another option would be to create multiple run commands with different specs per execution. You can pass them as arguments. But what you prefer of course 🙂 And now I think of it, I believe the Cypress mochawesome reporter shows the path per folder in its output.
  • g

    gentle-accountant-4760

    09/27/2022, 12:49 PM
    Ah so in a folder but not in the run specs output when running the tests?
  • a

    aloof-pizza-5765

    09/27/2022, 1:19 PM
    Hi guys, is it possible to click a button in chrome extension that pops up when running e2e test? I am working on a crypto project and i need to have cypress click a button in my wallet extension to confirm a transaction. Thanks!
  • f

    few-telephone-44543

    09/27/2022, 1:29 PM
    Not sure I understand your remark 🙂
  • r

    ripe-oyster-20061

    09/27/2022, 1:56 PM
    hey guys can anyone help me with this? i am using screenshooting and after a while i get this : CypressError: cy.screenshot() timed out waiting '30000ms' to complete.
  • f

    fierce-engineer-40904

    09/27/2022, 2:13 PM
    Hello, I am trying to run the docker image of cypress/included:10.8 but I seem to run into a few issues.
    Copy code
    js
      cypress:
      container_name: cypress
      image: cypress/included:10.8.0
        tty: true
        volumes:
          - "./:/name"
        working_dir: /name
    Copy code
    js
    cypress.config.js
    -   e2e: {
        baseUrl: 'http://localhost:3000',
      },
      video: false,
      port: 3000,
    I can find my tests but it never connects to localhost:3000 (i have another container running on 3000 as to where the tests should be run hence the port 3000 in config file). Also, running
    docker compose up cypress
    has a default entrypoint of
    cypress run
    how would I go about to change that to
    cypress open
    ?
  • m

    mysterious-belgium-25713

    09/27/2022, 2:29 PM
    So you have 2 containers running, one with the webapp and the other that is cypress? 1 container to another container cannot talk to each other with localhost. If you have a service named webapp and one called cypress then in cypress the baseurl would be http://webapp:3000
  • m

    mysterious-belgium-25713

    09/27/2022, 2:34 PM
    https://docs.docker.com/compose/networking/
  • n

    narrow-dentist-76099

    09/27/2022, 2:42 PM
    Hi.. while running cypress test on headless mode in between i do get this error
    ERROR:system_services.cc(34)] SetApplicationIsDaemon: Error Domain=NSOSStatusErrorDomain Code=-50 "paramErr: error in user parameter list" (-50)
    any help would be much appreciated
  • d

    delightful-machine-77737

    09/27/2022, 2:52 PM
    Hello Everyone, I am looking to upgrade my Cypress version from the current 5.6.0 to the latest 10.8.0. Currently, the cypress is set up in a EKS cluster and it is executed over CI/CD using buildkite. If anyone has upgraded Cypress and can help me by sharing the best possible options.
  • c

    careful-insurance-62240

    09/27/2022, 3:03 PM
    I am facing one issue in Cy 10 +Cucumber when running my tc
  • c

    careful-insurance-62240

    09/27/2022, 3:03 PM
    Cypress.conging.js attached here
  • f

    freezing-piano-2792

    09/27/2022, 3:03 PM
    https://github.com/badeball/cypress-cucumber-preprocessor/releases/tag/v13.0.0
  • b

    brave-battery-8719

    09/27/2022, 3:09 PM
    I just started up Cypress after several months of not maintaining our e2e tests, and I'm getting an error about the pluginsFile. It says that it cannot find module "webpack". I'm doing this in an Nx workspace, but it was all working a few months ago. I'm currently on Nx version 9.7.0 (we'll hopefully upgrade to latest soon). The plugins file, though, doesn't really do much. Any ideas on what to try? Attached is a picture of the error and the plugins file.
  • c

    careful-insurance-62240

    09/27/2022, 3:13 PM
    @freezing-piano-2792 I am using 13
  • c

    careful-insurance-62240

    09/27/2022, 3:13 PM
    Still getting this issue
  • f

    freezing-piano-2792

    09/27/2022, 3:14 PM
    Read the changelog
  • m

    mysterious-belgium-25713

    09/27/2022, 3:22 PM
    Just to help you a bit. Remove And and But from the public API And your error is because of the AND keyword that is removed
  • b

    bitter-fountain-36713

    09/27/2022, 4:30 PM
    not.been.called
1...155156157...252Latest