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

    aloof-midnight-3678

    06/15/2022, 3:24 PM
    Is there any major differences between 10.1.0 and 10.0.3 ? as I want to just learn it
  • a

    aloof-midnight-3678

    06/15/2022, 3:48 PM
    It finally works thx 😄
  • h

    happy-rose-36850

    06/15/2022, 4:31 PM
    Sry my internet is dying. Nah just a feature change to support new component testing
  • a

    aloof-midnight-3678

    06/15/2022, 4:32 PM
    haha sorry to hear that, using 10.0.3 and i love this tool so much 😄
  • m

    microscopic-postman-52154

    06/15/2022, 5:27 PM
    Does anyone have any recommendations on how to handle known application bugs? My current strategy is to cy.on ‘fail’ if e.message matches the known bug pattern console.log “known bug ticketxxx still active” else throw e. I’m not a big fan of this methodology because it defaults the test into a passed state of the known bug is hit. I was hoping to find a way to kick the test over into the pending or skipped categories but I’m not sure that’s possible if the test has run. Anyone have any ideas?
  • e

    enough-shoe-72187

    06/15/2022, 11:04 PM
    I have an Angular 14 App with a single integration test. Is it possible to run same test multiple times in parallel?
  • e

    enough-shoe-72187

    06/15/2022, 11:04 PM
    On localhost maschine
  • c

    chilly-queen-22182

    06/16/2022, 12:17 AM
    Thanks @gray-kilobyte-89541 , can you guide me the link to component doc please?
  • l

    late-house-1562

    06/16/2022, 12:49 AM
    `cy.customCommand`: Property 'customCommand' does not exist on type 'cy & CyEventEmitter'.ts(2339) I've defined the custom command in
    commands.ts
    and
    e2e.ts
    imports it. Is there something else I need to configure to use my own commands?
  • l

    late-house-1562

    06/16/2022, 1:12 AM
    Looks like I need to explore this link: https://stackoverflow.com/a/58326156/3079062
  • l

    late-house-1562

    06/16/2022, 1:22 AM
    But not yet. Can I call a custom command from a plugin function? (It appears not)
  • f

    flaky-airport-12178

    06/16/2022, 3:19 AM
    Hi all, Do you have boilerplate cypress + typescript?
  • f

    flaky-airport-12178

    06/16/2022, 3:20 AM
    Please help share with me if you have. Thanks
  • w

    worried-parrot-50579

    06/16/2022, 8:21 AM
    session | Cypress Documentation
  • e

    echoing-painting-40909

    06/16/2022, 8:49 AM
    Hi, adding Typescript to CYpress is about adding dependancy and a
    tsconfig.json
    file. You can find the related documentation here: https://docs.cypress.io/guides/tooling/typescript-support#Install-TypeScript A boilerplate would not have a great value here.
  • n

    nutritious-honey-65632

    06/16/2022, 8:50 AM
    Is there a way to set
    div textContent
    property to some value using cypress?
  • f

    flaky-airport-12178

    06/16/2022, 8:52 AM
    Thank you
  • d

    dry-agency-21242

    06/16/2022, 9:32 AM
    Hi! I have an application with Javascript Frontend and PHP Backend. When I open a page the Javscript should set a cookie and when I go to another page the PHP should read the cookie. This is working on my local setup and also in my local cypress tests. But in my github workflow the tests are failing. I have added a logging to my PHP code and it says me the cookie is not set. So I need to debug my javascript now and try to find out why the cookie is not set. But since my local tests are going through successfully, I need to debug it in my github workflow (cypress run mode). My idea would be to include some "console.log" in the javascript, but is it possible to get to these logs in run mode? Or does anyone have any other ideas?
  • g

    gray-kilobyte-89541

    06/16/2022, 10:38 AM
    https://on.cypress.io/component-testing
  • g

    gray-kilobyte-89541

    06/16/2022, 10:39 AM
    as in "I have a DIV, and the test should change its textContent"?
  • n

    nutritious-honey-65632

    06/16/2022, 10:43 AM
    yes
  • g

    gentle-accountant-4760

    06/16/2022, 11:21 AM
    I have done a call that does:
    Copy code
    ts
    cy.get('[action="add"]').contains('custom');
    and I wonder if this element is found, can I get the full text out of this call?
  • g

    gray-kilobyte-89541

    06/16/2022, 11:43 AM
    .invoke('text')
  • g

    gentle-accountant-4760

    06/16/2022, 11:47 AM
    Awesome! Thanks 😄
  • g

    gentle-accountant-4760

    06/16/2022, 11:49 AM
    Also is it possible to do a chain of cy.get? e.g.
    Copy code
    ts
    cy.get('[action="add"]').contains('custom').get('.selenium-custom-tag');
    Meaning that it will go inside the
    [action="add"]
    and then check if it contains
    custom
    and if it does then it will go inside the
    [action="add"] > .selenium-custom-tag
    ?
  • g

    gentle-accountant-4760

    06/16/2022, 11:49 AM
    because currently when I do that, it seems like it tries to find for all
    .selenium-custom-tag
    in the html
  • g

    gray-kilobyte-89541

    06/16/2022, 11:50 AM
    https://github.com/bahmutov/cypress-examples/commit/dfcb7b6952aea719206f6dcda7ab98e325d55f2b
  • g

    gray-kilobyte-89541

    06/16/2022, 11:51 AM
    IF
    is an anti-pattern https://glebbahmutov.com/cypress-examples/recipes/conditional-testing.html
  • g

    gentle-accountant-4760

    06/16/2022, 11:52 AM
    Oh so I need to use the
    then
  • g

    gray-kilobyte-89541

    06/16/2022, 11:58 AM
    Any time you get something from the page you got to use
    .then
    (or aliases)

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

1...868788...252Latest