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

    rich-eye-60315

    01/04/2023, 11:24 PM
    @here
  • r

    rich-eye-60315

    01/04/2023, 11:26 PM
    is it possible to automate payment simulator in a point of sale end testing?I have a point of sale app is a browser based but af the end of testing,i have to use external simulator for payment process such as visa,master and submit payment.Is it possible to automate end to end flow?
  • j

    jolly-secretary-80882

    01/05/2023, 12:19 AM
    What framework are you using for payments? Do those offer test modes or whatnot?
  • d

    damp-evening-24108

    01/05/2023, 1:00 AM
    hey i downloaded a new version of nvm and node, tried to run the https://github.com/cypress-io/cypress-realworld-app and it doesn't work for me.
  • p

    purple-afternoon-2408

    01/05/2023, 1:16 AM
    why does Cypress stop due to a typeerror appeared in the console?
  • a

    abundant-petabyte-12702

    01/05/2023, 1:28 AM
    Is this the same TypeError that I am experiencing? Mine occurred when I run the command to open Cypress to upgrade
  • p

    purple-afternoon-2408

    01/05/2023, 1:29 AM
    I don't know, it happened while I am running the tests, a random typeerror happened once, and Cypress stopped. I reran the test again and that error didn't occur and it was successful.
  • p

    purple-afternoon-2408

    01/05/2023, 1:30 AM
    But when I looked at the typeerror, it's not something that cypress should really stop for.
  • p

    purple-afternoon-2408

    01/05/2023, 2:04 AM
    It happened again, and Cypress stopped due to this error
    Copy code
    The following error originated from your application code, not from Cypress.
    
    > Converting circular structure to JSON
    --> starting at object with constructor 'Zone'
  • e

    eager-honey-36289

    01/05/2023, 4:14 AM
    The system I'm testing now has a Google Login which also uses auth0, how can I programmatically login to the system?
  • e

    eager-honey-36289

    01/05/2023, 4:14 AM
    This is how it works.
  • e

    eager-honey-36289

    01/05/2023, 4:14 AM
    I tried several approaches, but couldn't get it work.
  • p

    purple-afternoon-2408

    01/05/2023, 7:01 AM
    Have you tried
    cy.origin
    from inside the
    cy.origin
    from within
    auth
    ? I don't know but I am thinking outloud (https://docs.cypress.io/api/commands/origin#SSO-login-custom-command )
  • p

    powerful-agency-55160

    01/05/2023, 8:50 AM
    Hi guys, if cypress 12 with configure
    testisolation:off
    , do still support plugin bdd gherkin?
  • p

    purple-afternoon-2408

    01/05/2023, 9:22 AM
    Why this error? There is a widget down right corner, so the page was loaded somehow?
  • c

    clean-monkey-20083

    01/05/2023, 10:26 AM
    Hello humans, I'm trying to use Vite env vars to feature flag certain UI behaviors, which seem to be working well, with the exception of testing. I've created a little minimal repo to show that using a Vite env var to flag different UI, works in the browser, but not testing when using [Cypress's testing config](https://docs.cypress.io/guides/guides/environment-variables#Option-5-Test-Configuration), despite the test logging that the env var is changed. I've also ask over in Vite's discord, since I'm not sure where the disconnect is really happening, and haven't seen what appear to be related open issues or similar helpful SO posts. I thought I'd try a community sanity check to try to get out of the weeds. I'm open to adjusting expectations, digging deeper, and other work arounds. Many thanks. minimal repro: https://github.com/maribies/vite-cypress-experiment (includes videos of behavior)
  • b

    brave-doctor-62978

    01/05/2023, 3:38 PM
    Copy code
    Cypress.Commands.add('getByTestId', (selector, ...args) => {
      cy.get(`[data-testid="${ selector }"]`, ...args);
    });
  • b

    brave-doctor-62978

    01/05/2023, 3:38 PM
    how would one type that in ts?
  • b

    brave-doctor-62978

    01/05/2023, 3:38 PM
    i tried
    Copy code
    getByTestId(selector: string, options?: Partial<Loggable>): Chainable<void>;
  • b

    brave-doctor-62978

    01/05/2023, 3:38 PM
    but that's obviously wrong
  • m

    modern-glass-50699

    01/05/2023, 3:54 PM
    Hi People, Been trying to pass basic auth using Cypress for a few days now... I've tried all the methods on the right with no luck - the basic auth pop up still pops up after logging in to the app. If I make a typo in credentials then it doesnt load the page at all which shows that it does work in a way, but the pop up is still present and does not allow Cypress to do next test steps. If I enter the creds manually in the popup and reload the test then it runs fine (until Cypress is rerun). Headless doesnt work aswell. Any help that would point me to the right direction would be greatly appreciated 🤛
  • g

    gray-kilobyte-89541

    01/05/2023, 4:21 PM
    normal option "auth" in the
    cy.visit
    command works for us, https://on.cypress.io/visit
  • m

    modern-glass-50699

    01/05/2023, 4:35 PM
    what browser and which version are you using?
  • g

    gray-kilobyte-89541

    01/05/2023, 5:31 PM
    Cypress 9.7.0 with every browser
  • r

    rich-pharmacist-74804

    01/05/2023, 6:15 PM
    Greeting @all! Can anyone suggest to me how can I fulfill my test automation for the following scenario? Scenario: I have 2 web applications (
    PortalA and PortalB
    ) that are dependent on each other. When I order a product from
    PortalA
    , the particular order has to be in
    PortalB
    . I have to check both portals parallelly. Any updates from
    PortalA
    it has to instantly update on
    PortalB
    and vice versa. Thank you!
  • a

    average-oil-1114

    01/05/2023, 6:34 PM
    @abundant-tailor-4878 did you ever find a solution for this?
  • m

    modern-glass-50699

    01/05/2023, 7:02 PM
    hey, 'cy.origin' is gonna be your friend for this one. Read about the updated version v12 and origin documentation https://docs.cypress.io/guides/references/changelog#12-0-0 https://docs.cypress.io/api/commands/origin#Usage
  • r

    rough-grass-64533

    01/05/2023, 8:27 PM
    hey @all! this is my first time posting on discord, so apologies if i get something wrong! I am trying to use cy.origin, and i want to require my commands so that i can use them within the origin block. i believe ive followed all of the instructions correctly, but im getting a
    webpack_require is not defined
    error when i try to run my test
    • 1
    • 1
  • g

    gray-kilobyte-89541

    01/05/2023, 10:21 PM
    I have recorded the lesson and put it online as a free one, check it out https://cypress.tips/courses/cypress-plugins/lessons/c8
  • w

    white-mouse-85089

    01/05/2023, 10:33 PM
    Guten aben as they would say in germany. Maybe a dumb question, I have a test with a function call, which works when going to a homepage, clicking on a menu and clicking on one of the items and open the nest page. Is it the function that actually opens the page or cy.click ?
1...242243244...252Latest