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

    breezy-yak-81068

    09/22/2022, 12:20 AM
    Cucumber migration to V10
  • m

    microscopic-advantage-2187

    09/22/2022, 6:34 AM
    There is no way to achieve this with cypress?
  • v

    victorious-father-41976

    09/22/2022, 7:07 AM
    There is no way to achieve this with
  • b

    brash-magazine-98754

    09/22/2022, 8:46 AM
    initial spec file in cypress failing in before each hook, is there any way to rerun the failed before each hook [ex: like retries in test level]
  • r

    rapid-alarm-91235

    09/22/2022, 10:39 AM
    Hello while I am running the test script it gets logging out me from the website for which I am doing automation and all test cases fails I don't know why this is hppening
  • i

    icy-exabyte-68383

    09/22/2022, 11:39 AM
    I am not quite sure I am understanding the each() function right. I have 2 "mat-card-title" elements, with both containing a label with a certain text. all of the labels and checkboxes have very bad generic id´s which switch every new visit. So I thought: For every mat-card-title-element, click the label containing my text. in code my idea is: cy.get('mat-card-title', { includeShadowDom: true }) .contains('Meine Anschrift übernehmen') .each(($el) => { cy.click(); Expected to find content: 'Meine Anschrift übernehmen' within the element: [ , 1 more... ] but never did. So the each-functions opens up an array I guess but I am not quite sure what to change to make it happen. Anyone maybe has an idea?
  • m

    mysterious-belgium-25713

    09/22/2022, 1:07 PM
    What i understand from the .contains is that it will only select the first element it hits. So there will be no array to loop in.
  • b

    billowy-bird-41053

    09/22/2022, 1:40 PM
    I'm using Cypress with a Microsoft Dynamics solution. Up until this point, all the testing has taken place on unauthenticated pages, but now Cypress has fixed a bug with framebusting on the microsoft login redirect, I'm trying to write a custom command to login (once) and run subsequent tests. I've managed to get the login working with cy.origin but having to do this before each test is not very performant. When I try to get around this by using cy.session, I get the following issue. Has anyone got any experience with this?
  • a

    acceptable-hamburger-48790

    09/22/2022, 2:49 PM
    Not sure if you have tried this https://docs.cypress.io/api/cypress-api/cookies#Preserve-Once
  • b

    billowy-bird-41053

    09/22/2022, 2:49 PM
    @acceptable-hamburger-48790thanks for the response, but this is deprecated so hesitant to look at this for a longer term solution
  • b

    blue-printer-60119

    09/22/2022, 3:07 PM
    Hi, I would like to know how to implement a time threshold on tests globally. I have multiple tests in the project, but I would like to be able to get a list of 'slow tests.' I don't wan the tests to fail, just some sort of color coded way to identify certain tests are taking too long. More details regarding the question: https://stackoverflow.com/questions/73816831/cypress-add-time-threshold-globally-to-all-tests
  • g

    gray-kilobyte-89541

    09/22/2022, 3:21 PM
    https://github.com/bahmutov/cypress-v10-preserve-cookie
  • f

    freezing-piano-2792

    09/22/2022, 3:36 PM
    It's all in the linked issue
  • h

    helpful-journalist-67147

    09/22/2022, 3:36 PM
    Anyone here using Cypress for Salesforce?
  • f

    famous-restaurant-30435

    09/22/2022, 5:30 PM
    So when a test fails, Cypress takes a screenshot by default but its just of the content in the viewport. Is there a way to configure Cypress to take full page screenshots on failure? I have attempted a few solutions so far but none have been successful.
  • n

    nutritious-megabyte-64190

    09/22/2022, 7:15 PM
    @gray-kilobyte-89541 i started to use https://github.com/bahmutov/cypress-v10-preserve-cookie and i see something strange which may be issue with me but check it out, i have a custom command that does this:
    Copy code
    cy.getCookies({ log: true }).then(cookies => {
                    const cookieNames = cookies.map(c => c.name);
    
                    // 'cookie1','cookie2','cookie3','cookie4'
                    console.log(cookieNames.map(s => `'${s}'`).join(','));
                    
                    //this doesnt work
                    cy.preserveCookieOnce(cookieNames.map(s => `'${s}'`).join(','));
    
                    the error i get is
                    Command:  preserveCookieOnce
                    index.0fb50328.js:99244 Error:    
                    Error: Expected the cookie name to preserve
                        at eval (webpack:///./node_modules/cypress-v10-preserve-cookie/src/index.js:10:0)
    
    
                    //this does work with no issues
                    cy.preserveCookieOnce(
                        'cookie1',
                        'cookie2',
                        'cookie3',
                        'cookie4'
                    );
  • a

    acoustic-eve-26988

    09/22/2022, 9:22 PM
    How do I update my billing info for the cypress dashboard? I don’t see an option to update card info anywhere.
  • g

    gray-kilobyte-89541

    09/23/2022, 1:31 AM
    you are trying to preserve all the current cookies, so you just need to find the right JavaScript syntax, right
  • n

    nutritious-megabyte-64190

    09/23/2022, 1:32 AM
    yeah i noticed i am doing something wrong!
  • g

    gray-kilobyte-89541

    09/23/2022, 1:32 AM
    ...cookieNames
    🙂
  • n

    nutritious-megabyte-64190

    09/23/2022, 1:43 AM
    Copy code
    cy.getCookies({log: true})
            .then(cookies => {
                const cookieNames = cookies.map(c => c.name);
                cy.preserveCookieOnce(...cookieNames);
                // Cypress.Cookies.preserveOnce(...cookieNames);
            }));
    i do that but no dice either 😅
  • p

    polite-city-77403

    09/23/2022, 6:16 AM
    Scroll down the grid Scenario:- The dropdownlist has options 10, 50, 100, 9999. Based on the option selected, that many no. of records are displayed in the grid per page. But only the first 10 records are visible to the user, if we want to see a record at position 11th or more, we have to scroll down the grid. For example, I have 77 records, I have selected 50 option from dropdownlist. So, in the grid this 77 records are displayed in two pages. As said above, only the first 10 records of 50 records in page 1 are displayed to the user. But my record is at 21 row. I am unable to scroll down and select my record.
  • c

    crooked-cartoon-49610

    09/23/2022, 8:33 AM
    Hey i am New to Cypress need some help I am on Cypress version 10.3 i am writing multiple It Blocks inside Describe () block , for eg it1,it2,it3,it4 ,after i run it1 i am automatically getting logged out any work around for this
  • h

    high-helicopter-11699

    09/23/2022, 10:00 AM
    hi Team, we are trying to run cypress test, but tests are failing because of no support for proxy configuration in Cypress. How can we configure proxies for different urls ? I have checked the basic documentation for proxy in which we can set one proxy for mac/Linux. Do we have any option to configure proxy for multiple urls ? Please help !
  • s

    stale-optician-85950

    09/23/2022, 10:03 AM
    So your application is using cookies to keep the session active? Session states are cleared between tests. So you need to login during a BeforeEach() or implement cy.session()
  • a

    alert-table-88416

    09/23/2022, 10:09 AM
    Hi. Can someone give me a hint or clue how can I change cypress_verify_timeout in cypress running from jenkins - docker
  • a

    alert-table-88416

    09/23/2022, 10:09 AM
    ?
  • v

    victorious-father-41976

    09/23/2022, 10:41 AM
    Hi Can someone give me a hint or clue
  • f

    faint-teacher-38938

    09/23/2022, 11:13 AM
    Hi all, I am having an issue with GitHub Actions, in which any new runs appear to be linking directly to a previous run, resulting in the test execution time being dramatically reduced, and no test's being executed. The run completes as soon as all the containers have been spun up. I am wondering if anyone has encountered this issue before and how best to resolve this?
  • a

    abundant-dentist-45237

    09/23/2022, 1:15 PM
    Hello, How do I change my profile email?
1...151152153...252Latest