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

    adorable-smartphone-87280

    07/14/2022, 5:04 PM
    The Cypress app window will always open from the
    cypress open
    command. Those other flags merely instruct the app to take the next steps of opening the browser window. The main app window will always open, in case you want to stop testing or switch to another app. This is actually preferred IMO, since I want to use a single "open" script with default behavior but retain the option to change browsers without having to specifically write another open script (or type out a whole new open command) just to switch browsers.
  • f

    freezing-piano-2792

    07/14/2022, 6:05 PM
    You can switch between browser using the last window opened, so the first windows offers nothin
  • f

    freezing-piano-2792

    07/14/2022, 6:05 PM
    There's a select option there, in case you hadn't noticed
  • a

    adorable-smartphone-87280

    07/14/2022, 6:28 PM
    Oh yeah good point.
  • a

    adorable-smartphone-87280

    07/14/2022, 6:30 PM
    Hmmm, now this is going to annoy me too 😄
  • a

    astonishing-salesclerk-68668

    07/14/2022, 7:27 PM
    Hey, all! Got an interesting situation that I've run into a couple of times now. I have a custom
    cy.login
    command which hits our auth endpoint and does
    localStorage.setItem("access_token")
    . When I do auth in our app via this command in the
    beforeEach
    block of some tests, it will sometimes lose that auth during execution of the same spec. The really weird thing, is if I move the offending test earlier in the same spec, everything is fine. Is this a known "gotcha"?
  • a

    adorable-smartphone-87280

    07/14/2022, 7:38 PM
    Have you tried using session?
  • a

    astonishing-salesclerk-68668

    07/14/2022, 7:48 PM
    I have not. Auth refactor is on the list, and I knew session was available, but haven't tried to implement it yet
  • a

    adorable-smartphone-87280

    07/14/2022, 8:09 PM
    It works well. I would take a look at using it asap.
  • m

    melodic-dawn-73228

    07/15/2022, 2:15 PM
    hello all, when I run npx cypress open, "Couldn't find tsconfig.json. tsconfig-paths will be skipped" , may I know how to solve this?
  • m

    magnificent-judge-17148

    07/15/2022, 2:32 PM
    Hi All, i am facing issue of npm binary while trying to run the github workflow.. in local it is working as expected.. may i know how this can be fixed
  • o

    orange-answer-13291

    07/17/2022, 12:04 AM
    Use —check-files flag when installing packages, don’t ask me why. Fx npm install —check-files
  • m

    magnificent-judge-17148

    07/18/2022, 4:51 AM
    It did not help me ..! Can you please suggest a solution for installation
  • o

    orange-answer-13291

    07/18/2022, 8:32 AM
    hmm how did u implement it? Should work as this is only happening to cypress, atleast in my case
  • m

    magnificent-judge-17148

    07/18/2022, 10:15 AM
    I am getting the below error now xvfb is missing ..
  • r

    rhythmic-guitar-55789

    07/18/2022, 11:06 AM
    Have you configured the job as per this guide? https://docs.cypress.io/guides/continuous-integration/github-actions#Testing-in-Chrome-and-Firefox-with-Cypress-Docker-Images
  • m

    millions-portugal-57577

    07/18/2022, 12:03 PM
    Hello, i'm trying to execute npx cypress open, and I have this erorr, do you know how to fix it please ?
  • f

    famous-restaurant-30435

    07/18/2022, 12:09 PM
    Your screenshot and your message are conflicting. Your screenshot shows the result of a test run and the open command just opens Cypress. Either way, this problem is in the cucumber-json-formatter plugin and not with Cypress.
  • m

    millions-portugal-57577

    07/18/2022, 12:16 PM
    Yes sorry, I ran npx cypress run
  • b

    brainy-account-24503

    07/18/2022, 1:16 PM
    Hi, I'm trying to assert script injection to but i found that my function which injects, appends to the document in the second iframe, but the
    cy.document()
    in my spec gets the document from the first iframe. Anyone knows what i'm doing wrong? injection looks like this:
    document.getElementsByTagName('head')[0]?.appendChild(myScript);
  • a

    adorable-stone-42197

    07/18/2022, 1:18 PM
    Hello guys, did someone configure test to run on multiple environments on jenkins pipeline? Now my test running only on development stage but we want to include on stagging and production? I have configure for stage , how to add to run on jenkins?
  • b

    brainy-account-24503

    07/18/2022, 1:45 PM
    i found that if I just use
    document
    in the spec file and not
    cy.document()
    i get the correct document reference 🙂
  • f

    famous-restaurant-30435

    07/18/2022, 1:46 PM
    https://www.cypress.io/blog/2020/02/12/working-with-iframes-in-cypress/
  • t

    tall-appointment-66718

    07/18/2022, 4:34 PM
    Hi, after deleting the commands.js file and manually creating a new one, I get this error. Can you help me?
  • a

    astonishing-salesclerk-68668

    07/18/2022, 5:00 PM
    Someone sanity check me real quick please; this means the blue request never completed, because there's no status code, but the green one did, right? Seems obvious, but I couldn't find a straightforward answer in the runner docs
  • s

    some-piano-59562

    07/18/2022, 6:31 PM
    Hi, cy.request(url) is a crashing chrome for me on a specific link. If I manually go to this link, it downloads a 180MB file. If I use cy.request( {url: href} ), it takes a long time and then chrome crashes. Two other links on the same page work fine. I have messed around with encoding types but it makes no difference. Any ideas?
  • m

    mammoth-army-44584

    07/18/2022, 7:02 PM
    I mean some user data context.. eg. some properties on the cart object
  • c

    creamy-grass-29728

    07/18/2022, 11:36 PM
    Did Not Connect: Potential Security Issue
  • b

    bland-salesclerk-62828

    07/19/2022, 7:59 AM
    is there a reason you need all 180mb downloaded? Is there something in particular you're trying to do with the data?
  • c

    cuddly-orange-98458

    07/19/2022, 11:37 AM
    Post Cypress 10 migration i am unable to maintain session across spec files ? Anyone knows any solution
1...666768...127Latest