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

    stale-optician-85950

    10/24/2022, 1:20 PM
    luckily I'm enrolled in all your courses 😆
  • g

    gray-kilobyte-89541

    10/24/2022, 1:21 PM
    🙂 I will try posting at least the text of the lesson today, ok
  • s

    stale-optician-85950

    10/24/2022, 1:22 PM
    Thanks @gray-kilobyte-89541
  • p

    prehistoric-restaurant-72560

    10/24/2022, 1:24 PM
    Copy code
    cy.get("#checkbox").should("not.be.checked").click().should("be.checked");
    Is this kind of assertion is possible in cypress? Or I have to split it to:
    Copy code
    cy.get("#checkbox").should("not.be.checked").click()
    cy.get("#checkbox").should("be.checked")
    So far 1 liner does not work, and Im just curious if it's in cypress "nature"
  • g

    gray-kilobyte-89541

    10/24/2022, 1:26 PM
    does it "detach element from DOM"? or does it show "invisible" in the command log. What do you mean by "does not work"
  • p

    prehistoric-restaurant-72560

    10/24/2022, 1:29 PM
    Right now Im suprised, as it can't find checked box in both cases:
  • p

    prehistoric-restaurant-72560

    10/24/2022, 1:34 PM
    It might be just weird implementation of the page itself,
    ("have.attr", "ng-reflect-checked", "true")
    works fine.
  • p

    prehistoric-restaurant-72560

    10/24/2022, 2:33 PM
    Different question 🙂 : A lot of times Cypress
    should("have.text")
    fails due to whitespaces that needs to me trimmed. So I wonder if there is a way to implement custom command that would do
    .invoke("text").invoke("trim")
    under the hood?
    g
    • 2
    • 2
  • f

    fresh-doctor-14925

    10/24/2022, 2:36 PM
    Would
    .should("contain.text")
    suit your purposes? Then you're not having to do any string manipulation
  • p

    prehistoric-restaurant-72560

    10/24/2022, 2:38 PM
    it solves the problem, but I wish my assertion was a bit stronger
  • p

    prehistoric-restaurant-72560

    10/24/2022, 2:45 PM
    Different question 🙂
  • g

    gray-kilobyte-89541

    10/24/2022, 2:48 PM
    are you sure your checkbox does not change? like the id is correct after clicking on it?
    p
    • 2
    • 1
  • p

    prehistoric-restaurant-72560

    10/24/2022, 2:59 PM
    are you sure your checkbox does not
  • f

    freezing-piano-2792

    10/24/2022, 3:46 PM
    Yes
  • h

    hundreds-author-68171

    10/24/2022, 5:06 PM
    Thank you @thankful-pencil-94627 , I will give this a try and get back to you!
  • g

    gray-kilobyte-89541

    10/24/2022, 5:42 PM
    Ok, check out the lesson "Lesson c6"
  • s

    stale-optician-85950

    10/24/2022, 8:04 PM
    I can confirm that using your package
    cypress-cdp
    does indeed work and I've learned a lot more about Chrome DevTools Protocol in the process. Well done 👏
  • b

    boundless-ice-56105

    10/24/2022, 8:12 PM
    Hello All, I have a problem with Cypress v10.10.0 on mac M1 pro chip. After installing cypress when I launch test runner , it is opening a black page on chrome (image attached). Any advice on how to resolve this ? Appreciate any help!
  • b

    boundless-ice-56105

    10/24/2022, 8:13 PM
    Hello All, I have a problem with Cypress v10.10.0 on mac M1 pro chip. After installing cypress when I launch test runner , it is opening a black page on chrome (image attached). Any advice on how to resolve this ? Appreciate any help!
  • g

    gray-kilobyte-89541

    10/25/2022, 12:37 AM
    The fact that Cypress has CDP built-in and yet it is not advertised - I mean, sometimes I pull my hair
  • f

    freezing-oxygen-59684

    10/25/2022, 5:27 AM
    Solved, seems that cypress caches itself, so need to run command cypress clear cache, install again cypress and it will work properly with host object in config file
  • o

    orange-book-46212

    10/25/2022, 6:40 AM
    Hi, guys, I found the cause why cypress cucumber screenshots don't show up, so basically both of these two plugins (@freezing-piano-2792/cypress-cucumber-preprocessor and cypress-image-diff-js) are using cypress "after:screenshot" plugin event, so the second event will overwrite the first one. Any idea how multiple plugins can listen to the same event in cypress
  • c

    calm-train-20398

    10/25/2022, 9:24 AM
    Hi, is there any way to install PSoCC Creator in silent mode? Any program scripts etc? I need one in docker windows container :?
  • o

    orange-ocean-68369

    10/25/2022, 11:18 AM
    Hello All, I have a problem with Cypress on windows 10. After installing cypress when I launched test runner , i have this error (image attached). Any advice on how to resolve this 🙏🙏?
  • b

    brave-river-4142

    10/25/2022, 12:16 PM
    Has anyone managed to use cypress in an application that has integration with SAP GUI system?
  • g

    glamorous-country-57678

    10/25/2022, 12:52 PM
    Hello, I have e2e tests passing locally but failing on CircleCI. And all the e2e tests fail. Why is this happening? All the other tests are passing such as unit tests etc. I thought maybe it was because of new packages that were updated, but it seems that they are only affecting the CI and nothing locally if true. Does anyone have any thoughts on debugging an issue like this?
  • a

    adorable-vase-67839

    10/25/2022, 1:07 PM
    Good morning guys, all jewelry? I have a yml file that runs automated tests whenever a commit is added to the repository it is integrated into. I would like to know if there is a way for me to make these tests responsive, according to the file that is changed, it runs the tests that are relevant to that change. Example: I have several modules on a platform, I want him to test the application only according to the module that was changed! Thanks in advance for your attention!
  • g

    gray-kilobyte-89541

    10/25/2022, 2:46 PM
    do you collect source code coverage?
  • a

    adorable-vase-67839

    10/25/2022, 2:49 PM
    I think I found something in the documentation that serves my purpose!
  • f

    freezing-piano-2792

    10/25/2022, 2:49 PM
    @orange-book-46212 https://github.com/badeball/cypress-cucumber-preprocessor/commit/15ae6d0ae3b30fe3034804a2826ba5411a5de102
1...186187188...252Latest