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

    brave-doctor-62978

    01/06/2023, 6:00 PM
    actually, no that lesson covers responses. im trying to get the request body which is not auto serialized
  • g

    gray-kilobyte-89541

    01/06/2023, 6:02 PM
    sure it is
  • b

    brave-doctor-62978

    01/06/2023, 6:05 PM
    https://p181.p1.n0.cdn.getcloudapp.com/items/bLuOKYN9/f9fe86a9-e447-4239-8abd-672aaafb7221.jpg?v=54241f41675ae455787723052f867c66 cypress disagrees, or doesnt like me...
  • b

    brave-doctor-62978

    01/06/2023, 6:08 PM
    ...sigh, nope you're right as usual it's because the request's content-type was plain/text and not application/json
  • k

    kind-photographer-81911

    01/06/2023, 8:48 PM
    Does anyone know how to prevent a redirect? This seems to be the closest documentation I can find, but 5-10 out of 50 of my tests are flaking due to redirect on a regular basis. My PRs don't fail as they always seem to pass on subsequent runs, but I'd rather not have flakiness. Then if tests flake for a different reason, I'm more likely to ignore them. followRedirect:false doesn't seem to be doing anything here
    Copy code
    cy.request({url: '/company/n/sign-in', followRedirect: false})
        .then((resp) => {
        expect(resp.status).to.eq(200)
      });
  • k

    kind-photographer-81911

    01/06/2023, 9:04 PM
    Alterantively, if you hit a redirect, retry the link would work..
  • r

    rich-eye-60315

    01/06/2023, 9:39 PM
    Can we do parallel testing in cypress like playwright ?
  • p

    purple-ice-75399

    01/06/2023, 9:42 PM
    https://docs.cypress.io/guides/guides/parallelization
  • r

    rich-eye-60315

    01/07/2023, 5:38 AM
    Any one have experience in Parallelization ?
  • r

    rich-eye-60315

    01/07/2023, 5:38 AM
    Is it complicated ?
  • p

    purple-afternoon-2408

    01/07/2023, 9:22 AM
    Hello team, how can I tell Cypress to stop the tests?
  • g

    gray-kilobyte-89541

    01/07/2023, 2:43 PM
    Use cypress cloud, then it is very simple
    cypress run --record --parallel
  • o

    orange-dusk-15826

    01/07/2023, 3:18 PM
    Have you tried this? https://stackoverflow.com/questions/61661932/cypress-interrupt-all-tests-on-first-failure#answer-69766882
  • p

    plain-mechanic-5738

    01/07/2023, 3:56 PM
    thank you so much I appreciate your help!!
  • s

    steep-house-78657

    01/07/2023, 10:42 PM
    I'm trying to use yarn 3 with Cypress 12.3 (everything was previously working with 9.4) with a cypress.config.ts file. It's failing because the forked process is running plain node which is not detecting the typescript compiler. I have found the place in the source I want to patch (the patch is to provide the require('.pnp.cjs') to in the NODE_OPTIONS so that node respects the yarn 3 rule) in ProudctConfigIpc. However, I can't find this code anywhere in the cypress dist (I have used yarn unplug). Where does the ProductConfigIpc wind up in the dist that I'm running?
  • e

    enough-scientist-4031

    01/08/2023, 9:21 AM
    Hi, the link to the slides provided in the description of the video recording "Flaky Test Management with Cypress" is no longer valid. Could you please update it? Thanks! "Flaky Test Management with Cypress"

    https://youtu.be/AhgkBjOF5Ts▾

    Broken slides link provided in the description: https://cypress.slides.com/cecelia/flaky-test-management/
  • b

    billions-king-35651

    01/08/2023, 5:29 PM
    Hello everyone, Trust your day is going on well. Please, I need your help. I'm trying to integrate code coverage into my cypress test. I have installed @cypress/code-coverage and nyc but it seems I don't know how to connect both of them to work properly. If I run cypress open, I am getting a prompt that says:
    Copy code
    log⚠️ Code coverage tasks were not registered by the plugins file. See support issue for possible workarounds. [@cypress/code-coverage]
    If I run nyc cypress open, the tests are not even running. I am using NextJs. Any help to get the code coverage to work will be appreciated. Thanks
  • l

    lemon-oxygen-25956

    01/08/2023, 6:49 PM
    The company I work for developed a tool based on Cypress that runs (in headed mode) e2e testing workflows defined in Excel files. This tool uses only one generic spec file. When the Excel file is updated, Cypress reloads and opens its entry screen where the spec files list contains only that spec file. At this point, the tester needs to double-click that spec file to run it. How can we avoid the need of double-clicking that spec file in order to run it? (we would like to have Cypress running that only spec file automatically as soon as it restarts) Thanks.
  • c

    calm-gigabyte-78371

    01/09/2023, 12:40 AM
    Hi everyone, I am trying to install cypress on my work machine
  • c

    calm-gigabyte-78371

    01/09/2023, 12:40 AM
    but I am met with issues wondering if someone could help?
  • h

    hundreds-spoon-43121

    01/09/2023, 12:54 AM
    Still related to my previous issue on cy.session. I have this cy.session to start the chat
  • h

    hundreds-spoon-43121

    01/09/2023, 12:54 AM
    Copy code
    cy.session(
                    'visitor',
                    () => {
                        cy.origin(
                            'https://www.zopim.com',
                            { args: { message, isMessagingEnabled } },
                            ({ message, isMessagingEnabled }) => {
                                cy.visit('/landing/simulatev2', {
                                    qs: {
                                        id: Cypress.env('ZENDESK_URL').replace('https://', ''),
                                        ww: true,
                                        lang: 'en',
                                        fallbackAccountKey: Cypress.env('ZENDESK_CHAT_ACCOUNT_KEY'),
                                    },
                                    avoidLogin: true,
                                });
    
                                cy.getIframe('iframe[id="launcher"]')
                                    .find('[data-testid="launcher"]')
                                    .should('be.visible')
                                    .trigger('mouseover')
                                    .click()
                                    .getIframe('iframe[id="webWidget"]')
                                    .should('be.visible');
    
                                if (message) {
                                    cy.getIframe('iframe[id="webWidget"]')
                                        .find('[data-testid="message-field"]')
                                        .type(`${message}{enter}`)
                                        .getIframe('iframe[id="webWidget"]')
                                        .find('[data-testid="chat-log"]')
                                        .contains('Chat started')
                                        .should('be.visible');
                                }
                            }
                            // }
                        );
                    },
  • h

    hundreds-spoon-43121

    01/09/2023, 12:54 AM
    Copy code
    {
                        validate() {
                            cy.origin(
                                'https://www.zopim.com',
                                { args: { message, isMessagingEnabled } },
                                ({ message, isMessagingEnabled }) => {
                                    cy.visit('/landing/simulatev2', {
                                        qs: {
                                            id: Cypress.env('ZENDESK_URL').replace('https://', ''),
                                            ww: true,
                                            lang: 'en',
                                            fallbackAccountKey: Cypress.env('ZENDESK_CHAT_ACCOUNT_KEY'),
                                        },
                                        avoidLogin: true,
                                    });
    
                                    // if (!isMessagingEnabled && message) {
                                    cy.getIframe('iframe[id="launcher"]')
                                        .find('[data-testid="launcher"]')
                                        .should('be.visible')
                                        .trigger('mouseover')
                                        .click()
                                        .getIframe('iframe[id="webWidget"]')
                                        .should('be.visible')
                                        .getIframe('iframe[id="webWidget"]')
                                        .find('[data-testid="chat-log"]')
                                        .contains('Chat started')
                                        .should('be.visible');
                                    // }
                                }
                            );
                        },
                    }
                );
  • h

    hundreds-spoon-43121

    01/09/2023, 12:55 AM
    The same code works on Cypress10.10 but has stopped working since then. Validate function fails and therefore cannot proceed. Any help is appreciated. I've been blocked on this issue since updates from 10.10
  • b

    bitter-fountain-36713

    01/09/2023, 4:03 AM
    Looks like you should check your package.json to see if there is a script named
    test
  • c

    calm-gigabyte-78371

    01/09/2023, 4:11 AM
    but im also running into this issue
  • c

    calm-gigabyte-78371

    01/09/2023, 4:11 AM
    its so weird
  • c

    calm-gigabyte-78371

    01/09/2023, 4:11 AM
    like it just wont install
  • b

    bitter-apple-86316

    01/09/2023, 5:29 AM
    Hi
  • b

    bitter-apple-86316

    01/09/2023, 5:30 AM
    Any certification for cypress
1...244245246...252Latest