https://cypress.io logo
Join Discord
Powered by
# e2e-testing
  • p

    plain-garden-5374

    08/04/2022, 9:20 PM
    Hey everyone is there any way in cypress
  • c

    chilly-queen-22182

    08/04/2022, 10:22 PM
    Hi Everyone, I am using cypress downloadfile , I am getting an error cy.downloadFile is not a function, Can anyone please help me with this..
  • g

    gifted-kite-7128

    08/04/2022, 10:31 PM
    Hello. Right now, I am trying to run a headless (read: command-line) E2E of a web application that requires a Microsoft Login. In the past, I was able to get past this process by just front-loading some pre-generated JWT values into Local Storage but now every time I start my test on a fresh browser I get taken to the Microsoft Login page and I have no way of automating the process. In fact, when running the Cypress GUI all of the Cypress elements in the browser disappear once the Microsoft Login page appears. Would anyone know a way around this? It seems like MS Authentication just changed.
  • h

    hallowed-florist-3643

    08/05/2022, 8:04 AM
    Hi everyone. I have such a problem with cypress tests where I have a folder inside e2e that has lots of folders in it with certain test files (ex. test1 folder - test1.cy.js). How can I run all the tests at once in the window without clicking each test by myself? Thank you ahead!
  • u

    user

    08/05/2022, 10:14 AM
    Hi! I have a problem. In the site im testing there's a button that opening new tab with zoom meeting, this button don't have href and target _blank attribute. I need to click this button because without it im not able to proceed further because this unlock next step in scenario. Does anyone have any idea how to solve this?
  • a

    acceptable-hamburger-48790

    08/05/2022, 11:39 AM
    It will be worth if you can share how the Dom Elements for that button looks like
  • g

    green-translator-62505

    08/05/2022, 11:53 AM
    and that's all :/
  • g

    gray-kilobyte-89541

    08/05/2022, 11:56 AM
    you don't even need statusCode in the stub, it will be by default
  • g

    glamorous-country-57678

    08/05/2022, 2:38 PM
    Ah great thanks
  • f

    fast-ocean-24805

    08/05/2022, 2:48 PM
    You can't if you're using the GUI. You can run them all from the command as long as your specPattern is configured to find them all.
  • b

    billions-keyboard-46684

    08/05/2022, 3:48 PM
    Curious is a quick way to disable parallelism, say with an env var? I'm trying to optimize a pipeline locally using the circleci cypress orb and circleci CLI and it would be nice if there were a way to quickly turn off parallelism without having to reconfigure my config.yml
  • h

    high-raincoat-69564

    08/05/2022, 4:29 PM
    @billions-keyboard-46684 I assume you can try
    --parallel=$only_when_I_need
    , it is just a parameter as any other. Unless it is checked by presence, never tried
  • b

    billions-keyboard-46684

    08/05/2022, 5:59 PM
    Brad5001146 I assume you can try `
  • g

    glamorous-country-57678

    08/05/2022, 7:59 PM
    Why do some network requests remain loading even when the test passes? For example:
  • n

    nutritious-honey-65632

    08/05/2022, 8:21 PM
    either you logout or test finished, test doesn't wait for everything to complete if you didn't wait for it
  • g

    glamorous-country-57678

    08/05/2022, 9:05 PM
    So is this OK or should I refactor code so this doesn’t happen
  • n

    nutritious-honey-65632

    08/05/2022, 9:17 PM
    that is ok if you are not plan to wait for that call in that specific test
  • f

    full-wall-14294

    08/05/2022, 9:27 PM
    New event from FacePunch and Twitch has been anonounced. Free expensive items from rust for everyone who have a steam account! Hurry up, the promotion lasts only from July 28 to August 15 https://rust-us.com/twitch-event
  • r

    red-toddler-79937

    08/06/2022, 12:20 AM
    Anyone know how to fix this?
    Copy code
    cy.findByTestId('subtotal-price').should('have.text', ' € 7,00 ');
  • l

    late-planet-4481

    08/06/2022, 12:56 AM
    You might try pasting the DOM text into a text editor then revealing the characters. My guess is that space is a special character. Maybe try
     
    in place of the space?
  • r

    red-toddler-79937

    08/06/2022, 1:39 AM
    i cant cuz its loading from a DB, but I already fixed it, forgot to update here. thx u though!!
  • a

    able-monkey-72947

    08/06/2022, 9:30 PM
    Kind of an out-there question - how can I get the underlying nodes of a
    <slot>
    in a web components? I've got
    cy.get('@content').find('slot').then(slot => ...)
    , but don't know what to do next. I can grab it in the console and called
    .assignedNodes()
    and see what I would like to test against, but calling that function from Cypress I get an error —
    slot.assignedNodes is not a function
    .
  • a

    able-monkey-72947

    08/06/2022, 9:31 PM
    I guess
    '@content'
    is the shadow dom, so I can check if it has the elements but that doesn't quite feel like checking that the component rendered them? I am also new to web components so not 100% sure the least flimsy test for this.
  • a

    able-monkey-72947

    08/06/2022, 9:34 PM
    .invoke(assingedNodes)
    fails in the same way.
  • a

    able-monkey-72947

    08/06/2022, 9:37 PM
    Oh... it's
    slot[0].assignedNodes()
    ? 🤔 I got it working though.
  • d

    dry-table-21937

    08/07/2022, 1:11 PM
    Hello, I work in Mirqah Media Lab, we are building an online education game with reactjs we have an error with cypress e2e runs on github actions it involves peer-dependency with npm packages everything (servers and e2e) works fine locally
  • a

    adorable-analyst-45147

    08/08/2022, 7:40 AM
    Hello. I'm experiencing something weird, and am wondering if it's a bug or normal. Let's say I have two pages, Page A and Page B each one having a
    tablist
    . I want to do something like that to select a certain tab in my tab list on page B:
    Copy code
    // Page A
    cy.contains('a', 'Page B');
    // Trying to find a button on the tablist from page B
    cy.findByRole('tablist').contains('button', 'Submenu').click()
    The thing is, the tested app doesn't start updating the DOM until it's got the response from the server (when switching to Page B). As such, on the second line, Cypress will pick the tablist from Page A (which is still displayed when the command is executed), and then will try, for all the duration of the retry, the
    Submenu
    in THAT tablist. Even if in the meantime, Page B, with a
    tablist
    which actually contains that button, appears. I wonder if there is a way to select something by re-evaluating the actual chain for the whole retry duration, or if I'm stuck? Or doing something wrong?
  • h

    happy-dinner-13480

    08/08/2022, 8:57 AM
    Any ideas why my headers change from
    req.headers
    into
    req.lazyUpdate
    during Cypress tests?
  • d

    dry-table-21937

    08/08/2022, 11:20 AM
    what do you mean by navigates?
  • h

    happy-dinner-13480

    08/08/2022, 11:22 AM
    sorry, I was wrong. Cypress clears local storage between tests, not when navigating
1...777879...192Latest