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

    echoing-painting-40909

    06/15/2022, 6:47 AM
    async/await has been introduced with es2017, you need to update your target if you want to use it.
  • w

    worried-parrot-50579

    06/15/2022, 7:16 AM
    Hi guys, is it possible to disable the Runner feature to start running the tests each time I edit my code?
  • a

    adventurous-postman-3917

    06/15/2022, 7:29 AM
    Hi @worried-parrot-50579 , yes. You should add this
    watchForFileChanges: false
    to your cypress config file
    Copy code
    const { defineConfig } = require('cypress')
    
    module.exports = defineConfig({
      watchForFileChanges: false, // HERE is what you want
      e2e: {
        setupNodeEvents(on, config) {
          return require('./cypress/plugins/index.js')(on, config)
        },
      },
    })
  • w

    worried-parrot-50579

    06/15/2022, 7:39 AM
    Bless you @adventurous-postman-3917 ! Thanks a lot! 😀
  • a

    acceptable-insurance-98935

    06/15/2022, 7:43 AM
    Hi there, i have an issue with migrating an existing cypress project to version ^10.0.0. Currently this project is embeded in an php web-application but that shouldn't be of cypresses concern. Lets get to my issue: After Upgrading cypress from 8.7.0 to 10.1.0 i start up the migration process by "npx cypress open". Then i get shown the welcome-page inclusing the video and as soon as i click "Continue to cypress 10" the page is dead in an endless loading animation showing the following error in the browser-console:||
    Copy code
    {
      "name": "CombinedError",
      "message": "[GraphQL] EISDIR: illegal operation on a directory, read",
      "graphQLErrors": [
        {
          "message": "EISDIR: illegal operation on a directory, read",
          "path": [
            "migration",
            "configAfterCode"
          ],
          "extensions": {}
        }
      ],
      "response": {}
    }
    I already uninstalled all third party npm packages and also tryed other cypress versions (like lates cypress 9). Now my questions are: - Are there any possibilities to do the migration manually or via cli which shows cypress that the migration is already done? - Is this issue know and is there a solution to this?
  • a

    adventurous-postman-3917

    06/15/2022, 7:57 AM
    Hi there, for your first question, yes it is possible. You can manually do the changes explained here: https://docs.cypress.io/guides/references/migration-guide#Migrating-to-Cypress-version-10-0 I've also pointed to most important and mandatory file/folder structure changes in the picture:
  • a

    adamant-memory-22241

    06/15/2022, 8:13 AM
    Hi there, Can anyone please let me know how can we read the data from CSV
  • a

    adventurous-postman-3917

    06/15/2022, 8:15 AM
    Hi, here it is from Cypress example recipes: https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/fundamentals__dynamic-tests-from-csv
  • g

    gentle-accountant-4760

    06/15/2022, 8:33 AM
    Is it possible to do some sort of text check? Basically if I have a very long text and I want to see if the word 'Hello' is in the text using Cypress?
    f
    • 2
    • 12
  • g

    gentle-accountant-4760

    06/15/2022, 11:45 AM
    Why does it says
    Copy code
    Expected to return a value at the end of arrow
    where I read in the docs that I could return false if I want to end the loop eariler?
  • g

    gray-kilobyte-89541

    06/15/2022, 12:06 PM
    i guess the type definition for that command is missing void as allowed return type
  • g

    gentle-accountant-4760

    06/15/2022, 12:08 PM
    What should I do in that case? 😦
  • g

    gray-kilobyte-89541

    06/15/2022, 12:08 PM
    add return true
  • g

    gentle-accountant-4760

    06/15/2022, 12:09 PM
    or u meant after the bracket?
  • g

    gray-kilobyte-89541

    06/15/2022, 12:09 PM
    in the
    else
    block (implied after if with return)
  • g

    gentle-accountant-4760

    06/15/2022, 12:10 PM
    so something like this:
    Copy code
    ts
    cy.get('[data-ui-action="product-add"]').each((cwt, index) => {
      if (cwt.text().includes('custom')) {
        cy.get(`li[data-ui-id="${index}"]`).click();
        return false;
      }
      return true;
    });
  • e

    echoing-painting-40909

    06/15/2022, 12:10 PM
    as showcased in the error message, it's about eslint and the consistent-return rule. You'll learn more about the rule expectations with the docs (it's unrelated to cypress
    .each
    directly.
  • g

    gentle-accountant-4760

    06/15/2022, 12:10 PM
    Oh so its has to do with the eslint then
  • g

    gentle-accountant-4760

    06/15/2022, 12:11 PM
    Okey then 😄
  • g

    gentle-accountant-4760

    06/15/2022, 12:12 PM
    apprecaite it!
  • a

    acoustic-doctor-39144

    06/15/2022, 12:58 PM
    After install Cypress version 10.0.3 , if i run test runner, it opened and closed within a second. Why can't i open it.
  • a

    acoustic-doctor-39144

    06/15/2022, 12:58 PM
    Please help me guys
  • a

    acceptable-insurance-98935

    06/15/2022, 1:09 PM
    first up: Thank you for the reply. I have a lot of spec files so i hoped to have another choice ... but ok i guess 🙂 now i have a new problem: I have more than one *.js file in the support folder, how do i handle them know because cypress advises me to combine them to one file ... which i would rather not do (i have a lot support files)
  • w

    witty-kite-3465

    06/15/2022, 1:16 PM
    Hi! I tried to convert my cypress configuration files to typescript but ran into some issues when trying to declare a custom command. Has anyone here run into something similar? (second screenshot is of
    support/index.ts
    ) Instructions I tried to follow are from https://docs.cypress.io/guides/tooling/typescript-support#Types-for-Custom-Commands
  • w

    witty-kite-3465

    06/15/2022, 1:17 PM
    its a CRA+craco based app using cypress 9.7
  • h

    high-kangaroo-57423

    06/15/2022, 1:54 PM
    Hey guys, is there a way to "Add PR links/name on the run" for github actions like in this issue here https://github.com/cypress-io/cypress/issues/20348 ?
  • k

    kind-pizza-45261

    06/15/2022, 2:33 PM
    Hi guys, Hope some of you might have come across this scenario... Testing a website, after logging in to the home page, a new tab is created by the parent page right after the page load. I need to close this newly created tab from my test. Is there a way to do this? Any suggestion or pointers would be appreciated.
  • a

    aloof-midnight-3678

    06/15/2022, 2:45 PM
    Hey everyone, I'm trying to learn cypress and I tried to setup with my react app (create-react-app) and I can't open the cypress, before this i was able to open it on empty file (just to discover the ui and see the example files) but can't open it in react app. Error code : [10620:0615/174115.196:ERROR:gpu_init.cc(446)] Passthrough is not supported, GL is disabled, ANGLE is
  • g

    gray-kilobyte-89541

    06/15/2022, 3:08 PM
    from https://cypress.tips/search you can find "second tab" the blog post https://glebbahmutov.com/blog/cypress-second-tab/
  • h

    happy-rose-36850

    06/15/2022, 3:22 PM
    this is mentioned in this issue: https://github.com/cypress-io/cypress/issues/18947 currently in backlog so check back I personally solved by downgrading to 10.0.3 as I was also having another issue which is present only in 10.1.0
1...858687...252Latest