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

    mysterious-belgium-25713

    10/03/2022, 8:49 PM
    Hmm, can't really pinpoint what would trigger this error. Are you stubbing things in your test?. Not talking about cy.intercept. But cy.stub()
  • s

    salmon-apple-69375

    10/03/2022, 8:54 PM
    Nope, not really :S
  • v

    victorious-queen-73209

    10/04/2022, 4:39 AM
    Hi @here I have combined karma code coverage and cypress integration code coverage report jsons but after merging reports code coverage got dropped. I have used instabul for instrumenting code for both framework Anybody having idea?
    • 1
    • 1
  • b

    busy-dusk-58025

    10/04/2022, 5:13 AM
    Hello! A have a question. My app use many iframes. After filling some form and clicking "save" there is "Success" alert appears. But this alert calls in window.top frame and Cypress is not interact automatically with them. what can i do with this problem?
  • r

    red-dusk-32191

    10/04/2022, 9:36 AM
    Hi, can anyone show me an example of how they've excluded specific spec files from test runs
  • a

    ancient-zebra-93090

    10/04/2022, 10:31 AM
    Hi all đź‘‹ Just wondering if anyone has any experience setting up Cypress unit tests with Nuxt 3 + Vuetify 3?
  • b

    breezy-animal-27742

    10/04/2022, 12:50 PM
    Hi everyone @here. I do have one question about using cy.request with 'PUT' method and json requestbody BUT I do need to request it without sending 'Content-Type' in header (missing content-type). Does anybody have an idea ?? Thank you in advanced.
  • p

    powerful-orange-86819

    10/04/2022, 1:16 PM
    did you add to index.js
    Copy code
    js
    const {
      beforeRunHook,
      afterRunHook,
    } = require("cypress-mochawesome-reporter/lib");
  • b

    brash-magazine-98754

    10/04/2022, 1:37 PM
    Hi @here cypress execution failing with below error only on docker --> error --> Can't run because no spec files were found.We searched for specs inside of this folder: app/cypress/integration no specs failed with uncaught error .json any idea why this happening only on docker [with bamboo]. in local its working fine
  • f

    faint-kite-69728

    10/04/2022, 2:25 PM
    Hi everyone, I want to cancel our Cypress current plan, but on the web page is only possible to send some kind of request for cancellation. After this, I got message from Support, that I need to find "Upgrade" button in section Billing & Subscription. This Upgrade button doesn't exist as you can see my screenshot. Can somebody help me with that?
  • a

    adorable-vase-67839

    10/04/2022, 4:02 PM
    @everyone hello, I'm having a problem doing a test in a laravel application. What happens is that when I test a set of functionality that are then redirected to a modal it appears in cypress that the page has expired! Can somebody help me with that?
  • a

    adorable-vase-67839

    10/04/2022, 4:03 PM
    I created an issue in the cypress community about this! https://github.com/cypress-io/cypress/discussions/24115
  • f

    freezing-wall-7568

    10/04/2022, 6:39 PM
    I am using cypress with cucumber, afterEach hook from mocha runs even if the test fails, how can I make { After } from "@freezing-piano-2792/cypress-cucumber-preprocessor"; hook to run even if the assertion in test fails, what I am trying to achieve is as below
  • f

    freezing-wall-7568

    10/04/2022, 6:40 PM
    Scenario: Maker starts a game When the Maker starts a game Then the Maker waits for a Breaker to join assume the validation in step definition for 'Then' failed, I still want the After block to execute
  • f

    freezing-piano-2792

    10/04/2022, 7:44 PM
    After()
    doesn't work like
    afterEach
    in that way, it works more like the hooks you might be familiar with from actual cucumber-js
  • f

    freezing-wall-7568

    10/04/2022, 7:55 PM
    given the step definitions and afterEach, any idea why this logs undefined When("http request is called", function () { cy.request({ //request deails go here }).then(response => { cy.wrap(response).as('response'); }); }); afterEach('afterEach', function () { cy.log('afterEach still ran'); cy.log('response is :' + this.response); //logs undefined });
  • f

    freezing-piano-2792

    10/04/2022, 8:34 PM
    That I can’t say. Accessing aliases through “this” is not a documented interface afaik and I’m not surprised that it might not always work as expected
  • f

    freezing-wall-7568

    10/04/2022, 8:41 PM
    shall I create a bug for your repo?
  • f

    freezing-piano-2792

    10/04/2022, 8:43 PM
    I don’t think there’s anything I can do about this
  • f

    freezing-wall-7568

    10/04/2022, 8:45 PM
    will it be a cypress.io bug? probably neither
  • f

    freezing-wall-7568

    10/04/2022, 8:50 PM
    afterEach('afterEach', function () { cy.log('afterEach still ran'); cy.get('@response ').then(response => { cy.log(response .toString()); //this worked though }) });
  • b

    bored-school-78265

    10/05/2022, 1:13 AM
    Any idea why
    cy.contains
    would yield
    undefined
    ? It shouldn't right? I've got this:
    Copy code
    export function getLabelledInput(label: string) {
      return cy.contains('label', label).then((subject) => {
        if (subject === undefined) {
          console.error('Something messed up with Cypress. Subject is undefined but it should never be.')
        }
        const forAttribute = subject.attr('for')
        return cy.wrap(subject).parent().find<HTMLInputElement>(`input[name="${forAttribute}"]`)
      })
    }
    And
    subject === undefined
  • b

    breezy-room-97976

    10/05/2022, 9:09 AM
    hello Cypress community, I am looking for help with: https://www.npmjs.com/package/cypress-msteams-reporter plugin. I have a webhook from MS Teams ready, and the next point is to add this webhook to .env - the problem starts there - is anyone know where to find it (the .env) ?
  • h

    hallowed-needle-91769

    10/05/2022, 10:44 AM
    Hello everyone! Just joined the community, awesome to be here! I need some help, since yesterday we are seeing a loooooot of parallel errors, see screenshot. Nothing changed on our side. Can anyone help?
  • a

    agreeable-scooter-87343

    10/05/2022, 10:50 AM
    For salesforce app testing I think cypress is not the good choice,better to go with playwright,puppeteer or selenium
  • g

    gray-kilobyte-89541

    10/05/2022, 12:23 PM
    GitHub actions? they are rolling a new Chrome browser version causing a mismatch
    h
    • 2
    • 1
  • b

    brave-river-4142

    10/05/2022, 12:25 PM
    hello guys, how are you? I have a problem that I can't think of a good way to implement for two days now.I need cypress not to clear cookies and cache during the test because the application is full of redirects which causes cypress to erase the information all the time.I saw the command to preserve cookies but necessarily I need to use them after, and that's not my intention. does anyone have another idea?
  • g

    glamorous-waiter-41005

    10/05/2022, 1:01 PM
    Help needed Not able to interact with the modal that's overlaying the screen. Tried closing it or even clicking on the buttons but nothing helped. Any help would be appreciated. TIA Below is my code snippet
    Copy code
    cy.visit('https://bistromd-staging.myshopify.com/')
                cy.get('input[type="password"]').type('notyet')
                cy.get('input[type="submit"]').click()
                cy.wait(8000) // waiting for overlay to appear
                cy.get('#lightbox-iframe-bcae0f08-23da-4e6b-b6eb-3b37115eca83', { timeout: 30000 }).should('be.visible').then(($dialog) => {
                    cy.wrap($dialog).find('button').contains("decline 25% off  + free shipping").click()
                });
  • l

    limited-barista-33480

    10/05/2022, 1:48 PM
    Hello guys, can someone help me with this error, I'm trying to run a cypress test that contains this type of aws certificates. and I do not identify what problem it is or how I can solve it. I made some configurations of Cypress Webpack, but it does not run for me. Error: Webpack Compilation Error ./cypress/cert_pre/AmazonRootCA1.pem 1:4 Module parse failed: Assigning to rvalue (1:4) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file Hello guys, can someone help me with this error, I'm trying to run a cypress test that contains this type of aws certificates. and I do not identify what problem it is or how I can solve it. I made some configurations of Cypress Webpack, but it does not run for me.
  • g

    gray-kilobyte-89541

    10/05/2022, 2:01 PM
    ohh, it is an interesting one
1...162163164...252Latest