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

    numerous-musician-23918

    06/07/2022, 9:35 AM
    Hi All- Hope everyone is doing well.Im just reaching out as we just enabled Azure Active Directory SSO and integrate it with our app build in react.Currently what i have is client id and tenant id.Just want to reach out if you can share approach to handle AZURE AD SSO.Appreciate your help.
  • a

    adamant-beard-17074

    06/07/2022, 11:11 AM
    thanks
  • a

    acceptable-solstice-90676

    06/07/2022, 12:20 PM
    Hi Liam, yes, I had an extra ")" at the end of the URL, which is why it was failing., but thank you very much for looking into it
  • f

    fresh-doctor-14925

    06/07/2022, 12:26 PM
    Ah yes, I missed that too. Well spotted! Do you have prettier and a linter set up on your code editor? Makes it easier to spot rogue parentheses and braces
  • a

    acceptable-solstice-90676

    06/07/2022, 12:28 PM
    oh no, do you have any recommendations?
  • g

    gray-kilobyte-89541

    06/07/2022, 12:31 PM
    all loaded aliases are reset, so if you use
    before
    hook the 2nd test will not have the alias set. You can use
    beforeEach
    or just import the fixture usually as a local variable
  • g

    gray-kilobyte-89541

    06/07/2022, 12:31 PM
    https://glebbahmutov.com/blog/configure-prettier-in-vscode/
  • b

    broad-toothbrush-93273

    06/07/2022, 3:05 PM
    Hi, i have a test with many many lines of tests... I want to use cy.viewport for 4 resolutions... For each resolution test, i should copy/paste all my many lines for each resolution test ? Thank you !
  • e

    echoing-painting-40909

    06/07/2022, 3:09 PM
    Hi here is a repo with examples to iterate over your resolutions: https://github.com/bahmutov/cypress-each
  • g

    gray-easter-54566

    06/07/2022, 3:25 PM
    I am getting this issue when using `cy
  • b

    broad-toothbrush-93273

    06/07/2022, 3:29 PM
    Top !! Thank you !
  • f

    full-journalist-87924

    06/07/2022, 8:07 PM
    is anyone else having issues accessing their database after upgrading to cypress 10? I am accessing a postgres db and upgrading to cypress 10 automatically moved my db connection over to cypress.config.js. I also had to update my index file for cypress-postgres to point to this file to ind the db key value pairs. after doing that i get this error cy.task('dbQuery') failed with the following error: > connect ECONNREFUSED ::1:7432
  • a

    adamant-beard-17074

    06/07/2022, 8:50 PM
    Does anyone know any site to test e2e with cypress? at study level
  • r

    rough-monitor-85122

    06/07/2022, 9:07 PM
    If you have Cypress scaffold tests, it'll show a bunch of examples pointing to https://example.cypress.io/.
  • w

    white-activity-68996

    06/08/2022, 5:32 AM
    Hi, there is one client URL which I can only access with VPN, how to work with that in Cypress, cy.visit() returns 403 forbidden
  • w

    white-activity-68996

    06/08/2022, 5:33 AM
    @rough-monitor-85122 @adventurous-dream-20049 please help
  • m

    magnificent-airport-3423

    06/08/2022, 6:33 AM
    Please help Error :: After mocking the response, unable to get the desired.It isn’t visible while updating the details.Its visible only on the response in the network tab. Console tab isn’t getting updated , Can’t do the mocking in another way i.e; using Route handling functionality. cy.intercept('/users*', (req) => { /* do something with request and/or response */ })
  • h

    hallowed-noon-70189

    06/08/2022, 6:36 AM
    Error :: After mocking the response, unable to get the desired.It isn’t visible while updating the details.Its visible only on the response in the network tab. Console tab isn’t getting updated , Can’t do the mocking in another way i.e; using Route handling functionality. cy.intercept('/users*', (req) => { /* do something with request and/or response */ })
  • e

    echoing-painting-40909

    06/08/2022, 7:35 AM
    Hi, we have regular users using RealWorld (http://demo.realworld.io/#/) to test Cypress (keep in mind that's an old web app without dedicated selectors yet).
  • m

    magnificent-airport-3423

    06/08/2022, 9:22 AM
    @gray-kilobyte-89541 while intercepting the POST call - Data is not reflecting in UI. Can you please provide workaround. describe('CheapOair',()=>{ it('mocking request header ,body , response',()=>{ cy.visit('https://www.travolook.in/') cy.get('#allcity-1 > :nth-child(1) > ul > :nth-child(3) > .fnddtn').click() cy.get(':nth-child(9) > .selectbtn').click() cy.get('#refund_Yes').check({force:true}) cy.get('#refund_Yes').should('be.checked') cy.get('#Email').type('sa@gmail.com') cy.get('#MobNo').type('9999999999') cy.get('.form-control.divTitle0').should('contain','Select') .select('Mr').should('have.value', 'Mr') cy.get('#divfirstname0').type('Sai') cy.get('#divlastname0').type('Prasanth') // cy.intercept('POST','https://www.travolook.in/Common/CashfreePay',{fixture : 'test.json'}).as('test') cy.intercept('https://www.travolook.in/Common/CashfreePay', { fixture: 'test.json' }).as('mock') cy.get('#Process1_btn').click({force:true}) cy.wait('@mock') }) })
  • m

    magnificent-airport-3423

    06/08/2022, 9:22 AM
    \
  • m

    magnificent-airport-3423

    06/08/2022, 9:23 AM
    for the above work around from any member appreciated
  • b

    bitter-easter-25324

    06/08/2022, 10:21 AM
    Hi, I am still struggling with my problem: I need to issue 2 https requests with 2 different tls certificates using cy.request(). However the session cache of NodeJS makes this impossible (TLS session resumption is used). Is there a way to set maxCachedSession of HttpsAgent to 0 ? Or would it be a meaningful feature request?
  • g

    gray-kilobyte-89541

    06/08/2022, 12:12 PM
    My course "Cypress Network Testing Exercises" teaches you everything I know about spying / stubbing network calls https://cypress.tips/courses
  • m

    magnificent-airport-3423

    06/08/2022, 12:17 PM
    Can you please give the coupon code (50%) so that i could avail the course @gray-kilobyte-89541
  • g

    gray-kilobyte-89541

    06/08/2022, 12:39 PM
    I am sorry but there are no current promotions for that course
  • r

    red-toddler-79937

    06/08/2022, 1:51 PM
    Copy code
    js
        cy.findByTestId('category-label-container')
          .get('.mat-tab-labels')
          .first()
          .children().click({ multiple: true}).should('have.attr', 'aria-selected', 'true');
    Does anyone know how I can check for current button that is clicked if it has the attribute?
    f
    • 2
    • 2
  • r

    red-toddler-79937

    06/08/2022, 2:21 PM
    nvm fixed it
  • r

    red-toddler-79937

    06/08/2022, 3:13 PM
    Does anyone know how we can change the browser time in Cypress?
    • 1
    • 1
  • r

    red-toddler-79937

    06/08/2022, 4:44 PM
    nvm fixed it
1...484950...192Latest