https://cypress.io logo
Join DiscordCommunities
Powered by
# e2e-testing
  • c

    careful-toothbrush-49639

    10/17/2022, 5:20 PM
    Good evening. I am new to this channel and to cypress. I am trying to test a toast notification that disappears after few seconds in an angular application. I keep getting an error that the element cannot be found
  • c

    careful-toothbrush-49639

    10/17/2022, 5:20 PM
    it.only('Successful notification displayed register button is clicked', () => { signUpPage.firstNameInputText('Peace'); signUpPage.lastNameInputText('Peace'); signUpPage.emailInputText('shina4@yahoo.com'); signUpPage.passwordInputText('Peace@123'); signUpPage.confirmPasswordInputText('Peace@123'); signUpPage.elements.registerButton().should('not.have.attr', 'disabled'); signUpPage.register(); signUpPage.elements.notification() })
  • c

    careful-toothbrush-49639

    10/17/2022, 5:20 PM
    notification: () => cy.contains('#ion-overlay-6')
  • c

    careful-toothbrush-49639

    10/17/2022, 5:22 PM
    That is the toast notification
  • g

    gray-kilobyte-89541

    10/17/2022, 5:25 PM
    shadow root there, include the shadow elements when querying https://docs.cypress.io/guides/references/configuration#Global
  • n

    narrow-artist-87113

    10/18/2022, 7:29 AM
    I am receiving this error, and after this cypress doesn't respond no more i have to force quit cypress!
  • n

    narrow-artist-87113

    10/18/2022, 7:29 AM
    what might be issue!
  • a

    adamant-mouse-7124

    10/18/2022, 7:36 AM
    Hello guys, I'm new here and i can't seem to find some good use case tests on canvas and how to draw or make signature, can someone help me with this, please ?
  • n

    narrow-artist-87113

    10/18/2022, 9:04 AM
    I open cypress after couple of seconds, cypress just stops responding and i have to force quit to quit it, i don't know whats wrong and what to do, tomorrow is demo of my work, somebody please help!
  • n

    narrow-artist-87113

    10/18/2022, 9:32 AM
    Not responding
  • c

    careful-toothbrush-49639

    10/18/2022, 12:58 PM
    Thank you @gray-kilobyte-89541 for your response. Do you mean that I should include it in the config file? And if not, can you show me a sample of how to include the shadow element while querying. Thanks. I'm grateful
  • g

    gray-kilobyte-89541

    10/18/2022, 1:07 PM
    yup, the configuration doc I posted shows the config file that needs that option
  • c

    careful-toothbrush-49639

    10/18/2022, 1:27 PM
    Okay, I tried it and still getting the error of not found
  • c

    careful-toothbrush-49639

    10/18/2022, 1:45 PM
    It failed several times then it worked!!! Thanks @gray-kilobyte-89541 I really appreciate. I will now add assertions to it to check it out
  • c

    careful-toothbrush-49639

    10/18/2022, 1:51 PM
    Though I've never experienced this error before, you can try this to find out what is wrong.
  • a

    acceptable-tailor-43291

    10/18/2022, 4:40 PM
    Hi guys! I have kept all of cypress e2e tests in separate package/project and not under the app directory. I did this to run this e2e tests in CD pipeline. I wanted to know whether it is possible to add code coverage report of e2e tests for the app which is running locally when it comes to this particular case?
  • m

    mysterious-belgium-25713

    10/18/2022, 5:19 PM
    For e2e coverage please look at this https://docs.cypress.io/guides/tooling/code-coverage#E2E-code-coverage
  • n

    nutritious-army-46708

    10/18/2022, 6:13 PM
    I got a 403:forbidden when running: cy.visit('https://www.ganjingworld.com/'). Does anyone have some suggestions?
  • l

    limited-barista-33480

    10/18/2022, 7:39 PM
    Hey @stale-optician-85950 friend I was doing tests on it in the cypress browser but observing the HTML part in the developer code and inspect the add button and I don't see what the problem is. I send some images and where the pop-up is shown that does not disappear so that the form is enabled.
  • l

    limited-barista-33480

    10/18/2022, 7:39 PM
    n this last image I see that there is a theme of a container that has no content and surely that part of the form that is displayed when the test is done in the normal chrome browser should go in that part
  • l

    limited-barista-33480

    10/18/2022, 7:43 PM
    as you can see in this image of the normal browser without running with cypress, you can see that inside the container there is a label (m-crud-section) that is inside that is the form
  • w

    wonderful-whale-44360

    10/19/2022, 12:28 AM
    Hi ,Im learning Cypress i stuck in middle while trying Cypress API using Formdata/multipart .Can you guys help me out to sort this thing
  • s

    stale-optician-85950

    10/19/2022, 5:22 AM
    @limited-barista-33480 is there a public site I can access to reproduce this issue? Or if this is only a private site, are you allowed to provide me temporary user access (in a Private Message)? The screenshots are not showing anything obvious, so in order for me to help you more I would really need to reproduce your issue locally.
  • m

    mammoth-garden-29870

    10/19/2022, 6:12 AM
    Hi All, Am new to Cypress and just started learning. I am stuck in one issue can anyone help me please
  • m

    mammoth-garden-29870

    10/19/2022, 6:14 AM
    This is the issue
  • m

    mysterious-belgium-25713

    10/19/2022, 6:20 AM
    The error says that the parent where it is nested in has a property of display none. This means it's hidden element. Maybe some rendering is not done when you select the element. What you could do is try to force the typing just as the error message says. .type("Kids",{force:true})
  • m

    mammoth-garden-29870

    10/19/2022, 6:23 AM
    Thank you. I will try this
  • m

    mammoth-garden-29870

    10/19/2022, 6:47 AM
    The element is still not visible
  • m

    mysterious-belgium-25713

    10/19/2022, 7:18 AM
    Force true does not make the item visable. But it will type in a field that is not visible
  • a

    acceptable-hamburger-48790

    10/19/2022, 7:22 AM
    You need to provide more details if you are seeking for help from someone. Like example of your code, what is the exact problem etc..
1...123124125...192Latest