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

    brash-ghost-16880

    07/15/2022, 2:18 PM
    both input field is same just the difference in the text thats all
  • b

    brash-ghost-16880

    07/15/2022, 2:18 PM
    so i have no option in this case but to differentiate them by the text
  • n

    nice-lawyer-99289

    07/15/2022, 2:20 PM
    I assume that modifying the codebase of the app is out of discussion but yeah, that's the best approach. If you know that the second input field will be always the second one, you can use
    Copy code
    cy.get('.div').eq(1)
    that gets a DOM element at a specific index in an array of elements
  • n

    nice-lawyer-99289

    07/15/2022, 2:21 PM
    but still, I encourage you to ask developers to add a custom id or to try doing it yourself as it's probably no more work as adding one line
  • b

    bitter-match-90736

    07/15/2022, 2:25 PM
    cy.get('.div').eq(1), that work so long, if not be change
  • a

    adamant-holiday-95999

    07/15/2022, 2:31 PM
    I am getting this error while I am trying to add Cypress e2e testing in my GitHub workflows
  • a

    adamant-holiday-95999

    07/15/2022, 2:31 PM
    Can anyone help?
  • b

    bitter-fountain-36713

    07/15/2022, 6:08 PM
    Is there a good way to reuse flows
  • p

    polite-lunch-8069

    07/16/2022, 5:02 PM
    Hello
  • p

    polite-lunch-8069

    07/16/2022, 5:02 PM
    there is something like this running in my Cypress code
  • p

    polite-lunch-8069

    07/16/2022, 5:02 PM
    it occurs after an asserstion though it's not in my code
  • p

    polite-lunch-8069

    07/16/2022, 5:03 PM
    looks like Cypress is searching for something on its own 🤔
  • p

    polite-lunch-8069

    07/16/2022, 5:03 PM
    and of course it fails, so is my test (which should be fine)
  • p

    polite-lunch-8069

    07/16/2022, 5:05 PM
    it happens right after last line
  • p

    polite-lunch-8069

    07/16/2022, 5:05 PM
    (right here I'm saving table cell to check if it's deleted later)
  • p

    polite-lunch-8069

    07/16/2022, 5:32 PM
    maybe someone has idea what is it and how can I get rid of this?
  • p

    polite-lunch-8069

    07/16/2022, 5:47 PM
    I fixed it 😄
  • p

    polite-lunch-8069

    07/16/2022, 5:47 PM
    solution: https://stackoverflow.com/questions/69138890/timed-out-retrying-after-4000ms-cannot-read-properties-of-undefined-reading-t
  • p

    polite-lunch-8069

    07/16/2022, 5:48 PM
    tl;dr: I doubled ".get" - one inside ".then" and second in the last line. I simply used ".contains" instead of second ".get"
  • l

    lemon-toothbrush-55306

    07/18/2022, 5:47 AM
    Hello good morning I'm having problems with this line:
    Copy code
    cy.get(`[data-test-id=${account_ID}]`).click();
    And in my component looks like this:
    Copy code
    js
     <AccountItem
       key={`${acc.accountId}-${idx}`}
       data-test-id={acc.accountId}
        account={acc}
    And I'm getting this error
  • g

    gray-kilobyte-89541

    07/18/2022, 2:07 PM
    add double quotes around the attribute `cy.get(\`[data-test-id="${account_ID}"]\`).click();`
  • a

    able-monkey-72947

    07/18/2022, 7:36 PM
    Hello, I'm having this issue that was already posted here, https://discord.com/channels/755913899261296641/755913900024791046/986571174668554310, but I'm not seeing a solution to it anywhere on discord or the greater internet. Does anyone know how to fix this, I swear it was working for me earlier today...
  • f

    famous-restaurant-30435

    07/18/2022, 7:52 PM
    Did you switch node versions recently? That feels like a runtime execution error.
  • a

    able-monkey-72947

    07/18/2022, 7:54 PM
    It's all within the same docker container, should be
    node:14
    .
  • f

    famous-restaurant-30435

    07/18/2022, 8:01 PM
    Without being able to actually get into the project, I dont think I will be much help. If its working locally and not in docker, id check out what node version you are running locally and see if its different than container.
  • a

    able-monkey-72947

    07/18/2022, 8:01 PM
    I wish I could share this project, it would be so much easier to ask for help lol. It's a work thing, so its in our private repo.
  • a

    able-monkey-72947

    07/18/2022, 8:02 PM
    I also wish I could run this outside docker, one app depends on the other, etc... so there's no real way to run just this one outside the docker network. :/
  • a

    able-monkey-72947

    07/18/2022, 8:02 PM
    This project is a LOT.
  • n

    nice-manchester-42957

    07/18/2022, 8:12 PM
    Hey! Does anybody know if a way to subscribe to internal events like this one (
    wait:for:xhr
    )? https://github.com/cypress-io/cypress/blob/276f0f8b54c5577e309fc4da11ebf31c42e14bd4/packages/driver/src/cy/commands/waiting.ts#L285
    Cypress.on('wait:for:xhr')
    doesn't seem to pick it up. Trying to create a custom command that acts on intercepted
    xhr
    calls. Thanks!
  • a

    able-monkey-72947

    07/18/2022, 8:16 PM
    Can you use
    cy.request
    , alias it, and await that?
1...717273...192Latest