https://cypress.io logo
Join Discord
Powered by
# general-chat
  • d

    damp-flag-99346

    06/03/2022, 3:03 PM
    Yes it can open other webpages. I'll try to reproduce the crash again and keep an eye in the console. Since the crash is not consistent so it might be difficult. Any chance you know if there is a max timeout I can set at the spec level? Because some of these tests crash, cypress suite run hangs during nightly ci run. I want to set a timeout (maybe 15 minutes) for the specs so even if the crash happens it doesn't hang the entire run.
  • l

    lemon-yak-55678

    06/03/2022, 3:06 PM
    You can set it from your configuration. You can even change it per test. Good luck getting to the bottom of this one ☝️
  • d

    damp-flag-99346

    06/03/2022, 3:07 PM
    What is the config? Can you share any documentation?
  • l

    lemon-yak-55678

    06/03/2022, 3:09 PM
    https://docs.cypress.io/guides/references/configuration#Timeouts
  • f

    famous-soccer-59423

    06/03/2022, 3:12 PM
    Hey. If you have created some Test Data on your application and want to reset that data, then yes cleaning it would be your work. But the easiest way it to use your before and after in support/index file. which will enable to you to run the setup and cleanup at start and end of the file automatically. This way you need not to write those commands again and again.
  • d

    damp-flag-99346

    06/03/2022, 3:12 PM
    Oh I've read that doc but there is nothing about exiting a spec file when the max test timeout threshold is reached
  • l

    lemon-yak-55678

    06/03/2022, 3:13 PM
    Cypress will exit the spec on it’s own. I’m sure there’s a way to force an exit, but it sounds like you may have a stability issue with the dom
  • d

    damp-flag-99346

    06/03/2022, 3:15 PM
    Yes in normal circumstances, cypress will exit on its own but when the aut crashes unexpected, cypress doesn't recover.
  • l

    lemon-yak-55678

    06/03/2022, 3:16 PM
    Yes, I’ve seen this happen when the AUT has an unhandled exception. This is actually a weakness of Cypress. Since it exists in the dom, instability in the dom will make Cypress unpredictable
  • d

    damp-flag-99346

    06/03/2022, 3:19 PM
    Ah so you've seen similar behavior. Did you find any solution to force an exit? I tried passing "-- --timeout 5000" param to cli but it didn't work
  • l

    lemon-yak-55678

    06/03/2022, 3:20 PM
    The solution for me was to fix the bug 😉
  • d

    damp-flag-99346

    06/03/2022, 3:21 PM
    haha okay.
  • a

    abundant-fall-24997

    06/03/2022, 4:40 PM
    hey im sorry for a stupid question, but with Cypress 10 does anyone know how to run all spec files like the button in the top right in version 8?
    w
    • 2
    • 2
  • h

    hallowed-doctor-10352

    06/03/2022, 6:45 PM
    I am running two test for login 1. user logs in and logs out. 2. Display login errors. if i run 1 test separately it works fine and user is logged out perfectly. if run first and second test togther tests are completed but when I check the test body in cypress runner its still working to sharing screenshot.
  • w

    wonderful-match-15836

    06/03/2022, 6:56 PM
    hey im sorry for a stupid question but
  • s

    swift-angle-95455

    06/03/2022, 7:10 PM
    Hi there, I have a question about Firebase emulators and Cypress. Inside the tests tab or in a new tab of the Cypress window I can't create a Firestore document (I can do authentication emulation though) but in my daily basis browser I can create it. Why does this happen? My Firebase emulator UI is on localhost:4000, and my Firestore on localhost:8080 by the way.
  • m

    modern-kilobyte-92496

    06/04/2022, 12:37 AM
    Hi everyone! Looking to test a button that copies text to my clipboard but it doesn't quite work. I made sure read/write permissions are granted. The weird thing is, when I read the clipboard from within Cypress, it shows data that I copied to clipboard before starting the test (and that happens after I clicked the button that copies) but it isn't able to copy from a button's onClick on the page. If I complete the same user flow in my regular browser, I manage to get the text copied to clipboard successfully. I'm using Cypress v9.5.3. Wondering if anyone else had a similar issue.
  • d

    dazzling-angle-28206

    06/04/2022, 1:17 AM
    Could be a security thing in some browsers. Copy to clipboard is disabled when initiated by a script. You may try to copy to the clipboard from a timeout or such to confirm or disprove that theory.
  • f

    full-river-47441

    06/04/2022, 7:47 AM
    Hello Cypress Devs, I am becoming head of quality soon and I will lead more than 20 Engineers. I am looking for advice or resource from you on quality leadership 🙂
  • b

    busy-vegetable-18177

    06/04/2022, 8:29 AM
    Is there a way to prevent the cypress app from opening? I'd like to pass something like
    --e2e --browser chrome --no-gui
    and have just the browser open.
  • g

    gray-kilobyte-89541

    06/04/2022, 7:23 PM
    https://slides.com/bahmutov/testing-large-org
  • f

    fresh-doctor-14925

    06/06/2022, 11:19 AM
    I don't really understand the question. You can run cypress headlessly (without browser or Cypress UI) by doing
    cypress run
    , but you just want the browser open?
  • b

    busy-vegetable-18177

    06/06/2022, 11:20 AM
    I don't want the extra window that lets me select between e2e and component (this is on v10)
  • f

    fresh-doctor-14925

    06/06/2022, 11:21 AM
    Ah yeah. It would be nice to bypass that step. I'm not sure of a way to do that. Probably one for #974362106822545429
  • g

    gray-kilobyte-89541

    06/06/2022, 11:26 AM
    npx cypress open --e2e --browser electron
    goes directly into the spec view
    npx cypress open --component --browser electron
    does the same for component tests
  • f

    fresh-doctor-14925

    06/06/2022, 11:27 AM
    Awesome. Thanks, Gleb!
  • r

    rich-pharmacist-74804

    06/06/2022, 12:35 PM
    Greeting all! My folder structure is apps/project_name-e2e/src/{e2e,fixture,support} (Angular framework). when i download file auto folder get generated as apps/project_name-e2e/cypress/download/{files}. But i want to configure as apps/project_name-e2e/src/download/{file}. I dont want extra folder as cypress is it posssible to configure that way?
  • e

    echoing-painting-40909

    06/06/2022, 1:52 PM
    Hi you can change the folder target in your cypress.config.js configuration file ( or cypress.json for Cypress < 10): https://docs.cypress.io/guides/references/configuration#Screenshots
  • r

    rich-pharmacist-74804

    06/06/2022, 4:28 PM
    @echoing-painting-40909 Thanks.
  • d

    dazzling-thailand-64429

    06/06/2022, 5:09 PM
    Helloo guys! I am having a issue related to Cypress + alias imports config in webpack using craco. The app works normally, but when i import something from the app in the cypress tests, like a utils, the cypress gives me unresolved import error. Anyone knows something about this?
1...464748...127Latest