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

    ancient-park-71356

    07/05/2022, 12:36 PM
    Okay, I got this, I used cy.contains('element1', 'text from child element')
  • o

    orange-fall-1554

    07/05/2022, 2:06 PM
    Actually maybe this is pressing my luck
  • b

    brave-mechanic-83464

    07/06/2022, 8:10 AM
    hello guys, I'm trying to log in programatically to django admin like in this tutorial: https://www.valentinog.com/blog/django-cypress/, but I'm getting 403- Forms are protected and can be submitted only once. Anyone resolved this problem?
  • m

    mammoth-animal-54787

    07/06/2022, 1:22 PM
    What should I try when redirects are not working in cypress
  • m

    mammoth-animal-54787

    07/06/2022, 1:25 PM
    Like, my personal experience is different from what cypress is bot is doing
  • m

    mammoth-animal-54787

    07/06/2022, 1:25 PM
    I'm testing a login form, when you successfully login, I get redirected to my applications homepage
  • m

    mammoth-animal-54787

    07/06/2022, 1:25 PM
    cypress logins and the screen goes white
  • m

    mammoth-animal-54787

    07/06/2022, 1:25 PM
    the url doesn't change
  • m

    mammoth-animal-54787

    07/06/2022, 1:27 PM
    I'm new to cypress so I don't know if this is an indication of an issue with our application or is cypress not configured properly, is the test bad, etc.
  • f

    faint-spring-80499

    07/06/2022, 7:38 PM
    Are you using
    cy.session
    ? If so, you should explicitly visit the page afterwards.
  • m

    mammoth-animal-54787

    07/06/2022, 8:10 PM
    I ended up figuring it out, but thanks for replying
  • m

    mammoth-animal-54787

    07/06/2022, 8:11 PM
    I'm stuck on something else, I'm trying to understand if an alias is what I need to check if a component was deleted by a certain action
  • c

    careful-train-38757

    07/06/2022, 9:49 PM
    Hey I started using before instead of beforeEach inside of the describe block, what do you think of that?
  • b

    bland-football-57990

    07/07/2022, 3:35 AM
    How can we sort a columns for time displayed as 1 days 10 hours 30 mins format, in some rows we can only have days, hours means any kind of combination.
  • b

    bland-football-57990

    07/07/2022, 3:36 AM
    in cypress using js
  • b

    bitter-match-90736

    07/07/2022, 7:35 AM
    If this solve your problem. I use before for loading fixtures or data.
  • g

    gray-kilobyte-89541

    07/07/2022, 11:15 AM
    can you create an HTML / JS / CSS fiddle showing what you are testing? Right now it is impossible to say what you are describing
  • a

    adorable-stone-42197

    07/07/2022, 12:11 PM
    For some reason clear( {force: true}) sometimes does not clear all input field? I try even with .type('{selectall}{backspace}{selectall}{backspace}')
  • b

    bitter-apple-86316

    07/07/2022, 4:02 PM
    Any work around to handle newtab
  • b

    bitter-apple-86316

    07/07/2022, 4:02 PM
    Other than removing attributes target _blank
  • f

    fresh-nail-30646

    07/07/2022, 4:30 PM
    For anybody interested, it appears that
    Chainable<JQuery<HTMLElement>
    seems to work just fine
  • b

    bitter-fountain-36713

    07/07/2022, 5:51 PM
    A few other options https://glebbahmutov.com/blog/cypress-second-tab/
  • e

    eager-truck-66189

    07/07/2022, 9:30 PM
    cypress not detect another browsers installed on ubuntu, only chrome and electron
  • b

    bulky-manchester-97357

    07/07/2022, 11:57 PM
    ?
  • r

    rich-pharmacist-74804

    07/08/2022, 6:49 AM
    Hello all! In the case of testing multiple environments, My configuration: removed the baseUrl from cypress.config.js and used export CYPRESS_BASE_URL=. In my test, I used to save the user data dynamically from API ('https://${baseUrl}/api/v1/users/sign_in') but I am stuck in getting the baseUrl in the API if I put baseUrl in cypress.config.js I called it as 'https://${Cypress.env('baseUrl)}/api/v1/users/sign_in' but when I use export one so how to get baseUrl? Please enlighten me. Thank you
  • g

    gray-kilobyte-89541

    07/08/2022, 11:05 AM

    https://www.youtube.com/watch?v=f5UaXuAc52c▾

  • a

    adventurous-garden-6944

    07/08/2022, 3:16 PM
    Hello all im new to cypress and im having some issues with
    selectFile()
    the test is passing but the file is not being uploaded. can anyone help ?
  • p

    proud-traffic-2752

    07/08/2022, 4:42 PM
    I am unable to preserve session/cookies in headless mode while I am able to preserve the session via the test runner.Has anyone encountered this before?
  • m

    mammoth-animal-54787

    07/08/2022, 5:33 PM
    uhhh....
  • m

    mammoth-animal-54787

    07/08/2022, 5:34 PM
    I may misunderstanding something but how do I test if a memoized component no longer exists?
1...646566...192Latest