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

    shy-accountant-52090

    08/20/2022, 9:51 AM
    Yes I have followed this document and created a instrumented file and also tried with babel plugin..
  • l

    limited-agency-13286

    08/20/2022, 5:26 PM
    Hi team qq, does cypress is compatible with grape city spread sheet? Is there anyway I can get values from grape city spreadsheet?
  • d

    damp-glass-84607

    08/20/2022, 8:07 PM
    I apologize in advance for this relatively long question. I have been able to reproduce this reliably and I'm concerned it might be due to the differences in the sites themselves. However, I removed the actual website, username, and password from my examples because my organization asked me not to post them. These mock features were something I was using to try to isolate the problem. Feature 3 works and Feature 4 doesn't run the second Scenario because of a Type Error.
  • d

    damp-glass-84607

    08/20/2022, 8:08 PM
    Feature 3
  • d

    damp-glass-84607

    08/20/2022, 8:08 PM
    Feature 4:
  • d

    damp-glass-84607

    08/20/2022, 8:10 PM
    When I run Feature 3, that runs and passes both scenarios, I get this in the console:
  • d

    damp-glass-84607

    08/20/2022, 8:10 PM
    When I run Feature 4, I get this instead:
  • w

    witty-motorcycle-41092

    08/20/2022, 8:20 PM
    Hey everyone, has anyone found a reliable way to test a form that uses reCaptcha v2?
  • w

    witty-motorcycle-41092

    08/20/2022, 8:22 PM
    I have set
    chromeWebSecurity: false,
    but for some reason Cypress does not detect that the iframe has loaded.
  • d

    damp-glass-84607

    08/20/2022, 8:24 PM
    Sorry, one more thing I wanted to include here is the error in the test runner, each time I've encountered it it looks like this and it seems like it's happening during an 'after each' between the scenarios (one that the scenario didn't initiate). This is the way it looked on the first time I encountered it:
  • a

    acceptable-hamburger-48790

    08/21/2022, 5:48 AM
    Looking at errors - they are originated from application thats being used to run tests. And not cypress
  • a

    acceptable-hamburger-48790

    08/21/2022, 5:49 AM
    If you see the first exception under TEST BODY - this looks like the value thats being passed to your function/method is undefined or null. You might need to debug or print the value to console to see whats going on
  • d

    damp-glass-84607

    08/21/2022, 6:13 AM
    Huh, I was running the tests with Cypress test runner. Do you mean VS code that I opened it with?
  • a

    acceptable-hamburger-48790

    08/21/2022, 6:41 AM
    I meant the application you are using in your test. Web application - this is what is throwing the errors in console
  • d

    damp-glass-84607

    08/21/2022, 6:44 AM
    Ah, I see Sorry, I am fairly new to this and I don't really know how to do either of these things. If I am using things like badeball's cypress-cucumber-preprocessor and bahmutov's esbuild bundler, is there a guide for debugging or getting it printed to console?
  • a

    acceptable-hamburger-48790

    08/21/2022, 6:45 AM
    cy.log(variable) will print the log in the test runner - console.log(variable) will print log in the browser console
  • a

    acceptable-hamburger-48790

    08/21/2022, 6:49 AM
    Give this a read to know how to debug https://docs.cypress.io/guides/guides/debugging
  • d

    damp-glass-84607

    08/21/2022, 6:50 AM
    Ty
  • j

    jolly-machine-52750

    08/21/2022, 1:52 PM
    When running in e2e mode Cypress Specs list does not show any files. My 2 files are placed like this
    cypress/e2e/pages/payments.cy.js
    ,
    cypress/e2e/error-page.cy.js
    . None of them is visible. while in the Settings it does show 2 matches -
  • h

    helpful-coat-87654

    08/22/2022, 7:59 AM
    Hi guys, I am working on api login and we need to use it with docker, so the url is http://docker:8081/api/authentication/token, but when I start to debug tests on my machine, I need to use /api/authentication/token, how to avoid changing the url everytime? Thanks
  • w

    witty-branch-52439

    08/22/2022, 11:34 AM
    Hi Team I'm facing an issue in asserting the headers row in an excel sheet. column1, column2, column3, column4, column5, column6 If this is the case, cypress fails in finding column 3 & 4 even though it is present. expect(exports.convertArrayValuesToString(Object.keys(rows[0]))).to.deep.eq(headers); This is the code I'm using where convertArrayValuesToString contains return array.join('@#').split('@#') Help me out of this.
  • s

    sparse-piano-30763

    08/22/2022, 12:24 PM
    Makes sense but what's happening to me is 1. First run: ex. 9 tests green, one test red (but the red test is not retried) 2. Secondo run: all the 10 tests are re-run
  • s

    sparse-piano-30763

    08/22/2022, 12:25 PM
    Instead, I'd expect 1. first run: 9 tests green, 1 red 2. immediately: retries the red test then the CI go green/red based on the result of the initially red test
  • b

    brash-army-33335

    08/22/2022, 12:36 PM
    Open https://www.otrium.nl/ Add product to cart Checkout product Pay for order Getting white screen when i try to automate payment gateway in e-commerce platform. Can someone please help?
  • a

    acceptable-hamburger-48790

    08/22/2022, 12:45 PM
    have you checked https://docs.cypress.io/api/commands/origin
  • b

    brash-army-33335

    08/22/2022, 12:55 PM
    Yes i tried with origin But it is not working @acceptable-hamburger-48790 . I think it is not focused on new window cy.origin("https://test.adyen.com/", () => { cy.url().then(url => { cy.visit(url); cy.wait(5000); cy.clickElementInIframe(this.confirmPaymentButton); cy.urlShouldIncludeText('step=3'); }); })
  • w

    wooden-parrot-13301

    08/22/2022, 1:02 PM
    hi people, I'm getting an error on my Vue Project that never happened before
    TypeError: Cannot read property 'uid' of undefined while parsing file: ...
    Anyone knows what can be causing this?
  • b

    brash-army-33335

    08/22/2022, 1:10 PM
    @acceptable-hamburger-48790 Please find attached video with steps. Can someone please help?
  • a

    adventurous-arm-91375

    08/22/2022, 1:39 PM
    Hello everyone, I've been struggling with integrating Cypress to Github Action for a full working day now, that's why I'm asking for your help, I'll try to be as clear as possible: We have currently tests for a local monitoring app which are working as expected. We also have production & staging environment, both of them are protected using (https://www.cloudflare.com/products/zero-trust/access/). For those two remote environments, we managed to create Service Token to bypass this protection by adding headers to http authorisation request. When running those tests against remote environment from our local laptops, they give a green light. But when running them in Github Actions, we have some unexpected behaviour, as it cannot send a request with needed headers for "unknown reason" (I'll dump logs about it). This is the piece of code having problems:
    Copy code
    javascript
        cy.session("admin", () => {
            const headers = {}
            headers[cfAccessCookieId] = cfAccessId; // CF-Access-Client-Id
            headers[cfAccessCookieSecret] = cfAccessSecret // CF-Access-Client-Secret
    
            cy.request({
                url: fromBaseUrl(),
                headers,
            }) // <- This request make everything crash
        },
        {
           validate() {
            cy.request('/').its('status').should('eq', 200)
          },
        })
    Errors I had in logs are the following: -
    TypeError: Invalid character in header content ["CF-Access-Client-Id"]
    -
    Error: socket hang up
    I'm really out of ideas, I don't understand why the behaviour is different, node version is the same. cypress too...
  • a

    adventurous-arm-91375

    08/22/2022, 1:39 PM
    In advance, for anyone trying to help me, thank you very much 🙏
1...858687...192Latest