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

    average-soccer-69770

    08/26/2022, 3:56 PM
    Thank you for the response. I see this lesson is paywalled, and although I certainly respect this decision and the effort you have put into your course, the price is a bit steep if the only thing one needs is this specific use case. Just out of curiosity, is this course endorsed by the cypress core team?
  • g

    gray-kilobyte-89541

    08/26/2022, 7:38 PM
    It is endorsed by me - the only person who has taken time to get SSE events working and explained 🙂 And if you take a look at the free lessons in the course, you will find almost 70 complete lessons really teaching you how to use network during your tests
  • s

    strong-energy-6158

    08/27/2022, 5:55 AM
    I have a cypress automation suite which works fine in local. Now trying to integrate with Circleci. I have added configuration file as given belwo. But getting error while running. Can you please let me know how to solve it? configfile: version: 2.1 orbs: cypress: cypress-io/cypress@1.1.0 workflows: build: jobs: - cypress/run
  • g

    gray-kilobyte-89541

    08/27/2022, 12:10 PM
    The default Node version is too old, use a newer Node version (orb includes a few executors you can use)
  • a

    acoustic-printer-33265

    08/28/2022, 3:56 AM
    I'm getting a
    Webpack Compilation Error
    with the
    firebase-admin
    package. I've tried different configurations from my Google searches. Here is the
    pastebin
    for the error: https://pastebin.com/z7GWamcC
  • h

    happy-dinner-13480

    08/28/2022, 4:18 PM
    I have a table with multiple rows (for example 5). When clicked on a row a modal will open, I want to set a toggle and save the changes (each modal is the same). I have this:
    Copy code
    typescript
    it('Set payment methods', () => {
        cy.el('tablePaymentMethods')
            .children()
            .each(($el) => {
                $el.trigger('click');
                cy.el('toggleActive').click();
                cy.el('btnEditPaymentMethod').click();
            });
    });
    but I think this executes the code all at the same time, so all 5 modals are opened simultaneously. How can I do this in order?
  • h

    happy-dinner-13480

    08/28/2022, 4:42 PM
    ah looks i needed to use wrap()
  • b

    boundless-pager-73753

    08/28/2022, 6:17 PM
    Hello! I have created a class that look slike this:
    Copy code
    class navigationPage {
    
        studioManagementPage() {
            selectGroupMenuItem('Studio Management')
        }
    
        memberProfilesPage() {
            selectGroupMenuItem('Member Management')
            cy.contains('Member Profiles').click()
    
        }
    
        mergeProfilesPage() {
            selectGroupMenuItem('Member Management')
            cy.contains('Merge Profiles').click()
        }
    ... i.e.
    
    export const navigateTo = new navigationPage();
    Trying to create a test to validate navigation through each page in app, that would iterate through each method within this class. Thanks!
  • a

    acceptable-hamburger-48790

    08/28/2022, 6:22 PM
    Ok, so what is the question here ?
  • b

    boundless-pager-73753

    08/28/2022, 6:23 PM
    how to iterate through each method within this class in test to perform navigation?
  • a

    acceptable-hamburger-48790

    08/28/2022, 6:23 PM
    you would create a class object in your test and call the methods via that class object
  • a

    acceptable-hamburger-48790

    08/28/2022, 6:24 PM
    in your case, as you are exporting the object itself, it will be navigateTo.studioManagementPage() within your test
  • b

    boundless-pager-73753

    08/28/2022, 6:27 PM
    Right, but is it possible to utilize each() somehow to iterate through them and perform assertions on each page instead using "navigateTo" many times (32 total)? Thanks!
  • a

    acceptable-hamburger-48790

    08/28/2022, 6:30 PM
    There is recurse plugin, using that you can recurse until some condition is met
  • b

    boundless-pager-73753

    08/28/2022, 6:30 PM
    Great! thank you , will research about it
  • s

    sparse-salesmen-23560

    08/29/2022, 3:14 AM
    i just try to automation cypress, and facing this does anyone know how to fix this? Thanks in advance
  • l

    limited-barista-33480

    08/29/2022, 4:02 AM
    Hi! cordial greeting, someone who can help me. It is that when executing the command npx cypress open. it stays loading the screen and it takes a long time and it does not show the file environment. this is version 10.6.0 of cypress.
  • c

    cold-nail-59111

    08/29/2022, 7:21 AM
    hi everyone , is possible to click on google ads using cypress , i tried multiple way but nothing work with me
  • w

    witty-beach-37597

    08/29/2022, 9:40 AM
    Hi , i am facing invalid credential issue in cypress chrome browser but when i use same credential in normal chrome browser it's working fine. i am not getting the solution for it , i also tried as option for web security like Set chromeWebSecurity to false, but still not getting any kind of resolution for it. Anyone can please help me for come to out of this ?
  • m

    mysterious-motherboard-13344

    08/29/2022, 1:28 PM
    Did you check whether any local storage or session storage is being stored when you login manually? Try setting those parameters in your Cypress tests as well.
  • c

    colossal-farmer-50435

    08/29/2022, 2:03 PM
    It must be an environment variable of
  • h

    happy-dinner-13480

    08/29/2022, 2:39 PM
    I want to intercept a
    GET
    request but it doesn't work as I wanted:
    Copy code
    cy.intercept({
                method: 'GET',
                url: `${Cypress.env('API_URL')}/api/v1/receipt/*?cache_buster=*`,
            }).as('getReceipt');
    This intercept intercepts the first url, but I want to intercept the second url. Any suggestions how to make the
    *
    more strict?
    Copy code
    https://***.com/api/v1/receipt/suggestions?type=receipt&finance_type=purchase&is_invoice=0&cache_buster=FlYeNfBNG5ZY66
    https://***.com/api/v1/receipt/630ba8b4f7005c058a702534?cache_buster=LcsJ1esqykcp93
  • q

    quaint-judge-45197

    08/29/2022, 3:41 PM
    Hi Everyone, I am trying to use PKI certificates in cypress testing, I am passing cert, key, and passphrase but I am getting this error in response
    Copy code
    body { error: you must pass cert to access this endpoint, you can not skip this request }
    This error occurs when you visit website which use PKI certificate to login and you cancel the popup of select your certificate
  • p

    polite-policeman-65273

    08/29/2022, 3:51 PM
    Cy.session is still experimental. I wonder how serious the Cypress team is to make it a part of the core Cypress functionality?
  • a

    acceptable-hamburger-48790

    08/29/2022, 4:20 PM
    more control with regex - https://docs.cypress.io/api/commands/intercept#Matching-url
  • u

    user

    08/29/2022, 8:27 PM
    Any one know best guide for running Cypress ete testing in a next.js project that uses Azure AD?
  • a

    acceptable-solstice-90676

    08/29/2022, 9:31 PM
    Hey guys, do you know how to clear cache per
    spec
    when having
  • a

    adorable-smartphone-87280

    08/30/2022, 12:51 AM
    I use
    Cypress.session.clearAllSavedSessions();
    in an
    afterEach()
    hook to clear my session state. I don't know if that clears the entire cache or not, but might be worth trying (?).
  • s

    strong-energy-6158

    08/30/2022, 6:00 AM
    I am trying to run my cypress suite (v10.5.0) using docker in Mac. But getting an error. Can someone help me? docker run -it -v $PWD:/e2e -w /e2e --entrypoint=cypress cypress/included:9.4.1 run
  • h

    happy-dinner-13480

    08/30/2022, 6:53 AM
    regex, who doesn't love it. got it fixed though
    url: /receipt\/(?=[a-z]*[0-9])[a-z0-9]+\?/,
1...909192...192Latest