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

    handsome-lion-1748

    12/28/2022, 12:28 PM
    although the error I'm getting is
    cy.visit() failed because you are attempting to visit a URL that is of a different origin.
  • h

    handsome-lion-1748

    12/28/2022, 12:30 PM
    Still same error
  • h

    handsome-lion-1748

    12/28/2022, 1:00 PM
    I worked around by logging in using cy.request and setting cookies and localStorage token and visiting the subdomain straight away.
  • p

    powerful-agency-55160

    12/28/2022, 1:00 PM
    Hi all, i get problem when using
    cypress-grep
    with two tags. With this command, expected result get 2 spec file, but still get all spec file. Maybe someone can give me clue, what must i do for using 2 tags
  • c

    colossal-table-38461

    12/28/2022, 2:01 PM
    Hello All, I am visiting 1 url using cy.visit('take A as a Example'), but after executing this, the URL is not loaded & when I checked its navigating to other URL & even the other URL is very huge & long in size. so it is not at all loading. Can someone help me over here ?
  • h

    handsome-lion-1748

    12/28/2022, 2:16 PM
    @colossal-table-38461 I suspected a redirect maybe, so maybe something like this https://stackoverflow.com/questions/66613875/app-in-cypress-redirects-outside-does-not can help? I think we need more info
  • c

    creamy-angle-90546

    12/28/2022, 2:24 PM
    Hi, Im Khriz I have not had previous experience with test automation or e2e testing and Im seeing cypress as a good starting point I have a project created with preact, but I am not sure If cypress supports it, does anyone know something about it? thanks in advance for your help
  • g

    gray-kilobyte-89541

    12/28/2022, 3:14 PM
    so you want to know how to filter the tv shows on that page using that filter? Like find it, click, see the filters appear, then pick lets say "News"? Also, read this too https://glebbahmutov.com/blog/cypress-is/
  • s

    some-oil-10020

    12/28/2022, 6:54 PM
    Hey Guys! Please! I need to activate this component in Quasar and select an specific item. Somebody could help me?
  • g

    gray-kilobyte-89541

    12/28/2022, 7:12 PM
    is there a live application with that? Like an example of Quasar playground or a repo one can run locally?
  • g

    gray-kilobyte-89541

    12/28/2022, 10:13 PM
    Something like this
    Copy code
    js
    it('shows Sports channels', () => {
      cy.intercept('GET', '**/*video-player.js', '')
      cy.visit('/listings/')
      cy.get('.c-tvListingsPickerFilter')
        .should('be.visible')
        .contains('button', 'All Channels')
        .click()
      cy.get('.c-tvListingsSettingsFilter').should('be.visible')
      cy.contains('.c-tvListingsSettingsFilter button', 'Sports').click({
        force: true,
      })
      cy.get('.c-tvListingsSettingsFilter').should('not.exist')
      cy.contains('.c-tvListingsPickerFilter button', 'Sports').should('be.visible')
      cy.contains('.c-tvListingsSchedule_row', 'ESPN').should('be.visible')
    })
  • e

    early-crowd-52815

    12/29/2022, 4:56 AM
    Thanks so much. I really appreciate you taking time out to do this. I had a question. I see that if I take out 'force:true' in clicking of the Sports button it doesn't work. (tried to run it without the force and it failed). Any idea why that is ? I'm trying to understand when I should force:true my clicks and when I should not. Thanks.
  • c

    colossal-table-38461

    12/29/2022, 5:05 AM
    As per my knowledge, If that button is hidden then you can use force:true else simple click will work
  • c

    colossal-table-38461

    12/29/2022, 5:58 AM
    @handsome-lion-1748 I am trying to visit the URL of 1 Application but it is redirecting to Microsoft Dynamics 365 Login page On Cypress I am able to see the login url of Microsoft Dynamics 365 but it is showing blank screen.
  • h

    handsome-lion-1748

    12/29/2022, 8:16 AM
    @colossal-table-38461 so your issue is that you're being redirected or that you can't see the login page? Maybe the app requires you to be logged in to Microsoft Dynamics 365? Maybe you can try authenticating with the API, check https://learn.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/webapi/authenticate-web-api
  • h

    happy-dinner-13480

    12/29/2022, 10:07 AM
    I want to overwrite the default click function to always have
    force: true
    :
    Copy code
    Cypress.Commands.overwrite('click', (originalFn, subject) => {
        console.log(originalFn);
        console.log(subject);
    });
    any suggestions?
  • s

    some-oil-10020

    12/29/2022, 10:37 AM
    Hello @gray-kilobyte-89541 ! I gave up from to try that approach. Quasar has a particular implementation of Cypress, because their particular components. But, thanks for your reply.
  • r

    rough-garage-65083

    12/29/2022, 10:45 AM
    Hi! Just looking how to use the "hosts" key with the new Cypress 10 config file; anyone using it to reach 127.0.0.1 with a custom domain?
  • r

    ripe-traffic-15039

    12/29/2022, 12:10 PM
    Hello, Merry Christmas everyone! A simple question, is there a way to set a timeout after setting the "retries" in cypress.config.js?
  • l

    lively-balloon-98986

    12/29/2022, 12:31 PM
    HI all my cypress runner is crashed everytime are you familiar with that issue? We detected that the Chromium Renderer process just crashed. This is the equivalent to seeing the 'sad face' when Chrome dies. This can happen for a number of different reasons: \
  • a

    astonishing-window-24437

    12/29/2022, 1:14 PM
    HI all
  • g

    gray-kilobyte-89541

    12/29/2022, 1:57 PM
    yup, the page code seems to re-render randomly that widget, just when Cypress is about to click. I don't know why it does that
  • g

    gray-kilobyte-89541

    12/29/2022, 1:57 PM
    command timeout? https://on.cypress.io/timeouts
  • c

    cold-author-79999

    12/29/2022, 2:52 PM
    I am using openid-connect to authorize. Sometimes i don't know why i get redirected to the base page after successful login
  • n

    narrow-artist-87113

    12/29/2022, 5:23 PM
    Hello, there is something i want help: I am testing a website, in that website if the user is old, we will have different display of element on DOM, if the user is even, we will have different display of element of DOM. I have attached img for refernce. Now how can i test?, because i don't know if the user coming will be new or the one which is already used our services. How to leverage conditional statement. For example, if the user is new and user want to "Add Canister", he will click on "Add Canister" if the user is old and user want to "Add Canister", he will click on "Create new canister" Now, how to write test suite considering this, i certainly can't create test-suite depending on wether the user is old or new. I hope i clearly states my doubt
  • w

    wonderful-match-15836

    12/29/2022, 7:21 PM
    > i certainly can't create test-suite depending on wether the user is old or new. Curious about this. It's better to control the conditions of the test and have the expectations for new and old users tested separately, so I would still suggest finding a way to control that by logging in as specific users for each scenario or something. If not, you can use this package to write a conditional test, as an escape hatch: https://github.com/bahmutov/cypress-if This only works before Cypress 12 though.
  • e

    enough-truck-68085

    12/29/2022, 7:21 PM
    @narrow-artist-87113 Why do you need a single test to validate both user flows? Can you create two tests and have each test control the user it logs-in with ,that way you don't need a big test with conditionals and instead you can validate two user flows separately with full confidence.
  • n

    narrow-artist-87113

    12/29/2022, 7:23 PM
    Yeahh, you are right! Thank you!
  • n

    narrow-artist-87113

    12/29/2022, 7:23 PM
    Thank you very much for help!
  • w

    wonderful-match-15836

    12/29/2022, 7:27 PM
    Hello guys I cannot run cypress tests on
1...176177178...192Latest