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

    cold-author-79999

    12/24/2022, 7:52 PM
    i can't figure out what i did wrong.
  • c

    cold-author-79999

    12/24/2022, 7:54 PM
    would like to show the video if anyone interested to help
  • n

    nice-lifeguard-81070

    12/26/2022, 6:18 AM
    hey anyone hep me on this ? Nuxt3 Vite support for Cypress coverage instrumentation I was trying to instrument the project code using the vite-plugin-istanbul npm package. Inside the package.json, here are my package dependencies.
    Copy code
    "@cypress/code-coverage": "^3.10.0",
    "vite-plugin-istanbul": "^3.0.4",
    Here's my nuxt.config.ts after installing the vite-plugin-Istanbul package:
    Copy code
    vite: {
      vue: {
        template: {
          transformAssetUrls: true
        }
      },
      plugins: [
        istanbul({
          exclude: ['node_modules', 'test/', 'coverage/'],
          extension: [ '.js', '.ts', '.vue' ],
          cypress: true
        }),
      ]
    },
    Here is my cypress/support/e2e.ts file.
    Copy code
    import '@cypress/code-coverage/support'
    Here is my cypress.config.ts file.
    Copy code
    import { defineConfig } from "cypress"
    export default defineConfig({
      projectId: "x83arq", // TODO: hide this
      e2e: {
        baseUrl: "http://localhost:3000",
        setupNodeEvents(on, config) {
          require("@cypress/code-coverage/task")(on, config)
          return config
        }
      }
    })
    After running npm run dev, my UI interface crashed and was not getting complied properly. and an error message appears on the console, hydration node mismatch: - client vnode: However, when I run npx Cypress open, it displays my Cypress code coverage report after the test is completed, but the main issue is that my UI is not functioning and is not being compiled properly.
  • b

    busy-tent-74516

    12/26/2022, 8:16 AM
    Hi everyone, When I run my test cases with firefox-headless mode, some test cases are failing. One button that should be disabled appears to be enabled in firefox-headless mode. This issue does not happen in chrome-electron-firefox headed mode and chrome-electron headless mode. Is there any suggestion to solve that?
  • d

    dazzling-ram-59806

    12/27/2022, 10:39 AM
    Hello Folks, When trying to run cypress tests in github actions, it is failing with errors, while the tests are running and passing locally. The error I am getting is :1. "AssertionError: Timed out retrying after 10000ms: expected" 2. "We detected that the Chromium Renderer process just crashed. This is the equivalent to seeing the 'sad face' when Chrome dies."
  • d

    dazzling-ram-59806

    12/27/2022, 10:52 AM
    Is there any solutions for this issue. ? Please help !
  • a

    astonishing-window-24437

    12/27/2022, 11:58 AM
    Is there any solutions for this issue
  • r

    rough-agent-43374

    12/27/2022, 2:17 PM
    Hey guys, so I'm currently having some problems with uibmodals (Angular). Through the flow of my test, I pass some Data through my Modal. Whenever I do some typing commands, the Textarea is filled but directly after finishing the command the modal is closed and a different URL is called. Inside of this URL, the typed text is filled inside of a search bar. Does anyone know why this happens, I have had this problem for multiple modals.
  • c

    cold-author-79999

    12/27/2022, 2:32 PM
    Hi, i am using substring function in commands.js.
  • c

    cold-author-79999

    12/27/2022, 2:32 PM
    i am getting this error Cannot read properties of null (reading 'substring') How do i resolve it?
  • l

    late-planet-4481

    12/27/2022, 3:16 PM
    You might be out of luck. I would think that could be a Firefox bug, a website bug, or a Cypress bug; any of those potentially. You might have to document that under "things I cannot test in a headless browser" and then apply a workaround. Have you tried another testing tool perhaps? That's one way to rule out Cypress at least. But that still won't necessarily solve your problem.
  • b

    billowy-librarian-83114

    12/27/2022, 10:34 PM
    well it's not getting your variable so nothing to do with substring
  • b

    billowy-librarian-83114

    12/27/2022, 10:34 PM
    need more info to help
  • e

    early-crowd-52815

    12/28/2022, 1:37 AM
    Hi folks, Took awhile for me to figure out why Cypress was not finding an obvious element. Looking for a solution. In the chrome dev console, I'm only able to find an element after I 'inspect' it. If I try to jquery it using a selector before I inspect I get null. Once I inspect and then do the same command, it shows up. See attached screenshots of before and after. I'm trying to check off one of the options like
    Movies
    or
    News
    . I found one article online explaining that the 'scope' has changed. I see something similar in my case of scope being changed from 'top' to 'My Test'. If that's the real issue, is there a command in Cypress to change the context when searching for the element. I'm don't fully grok how the scopes work. Link to that article -> https://stackoverflow.com/questions/53418650/document-queryselectorall-returns-values-only-after-inspecting-doms
  • s

    swift-manchester-9192

    12/28/2022, 10:22 AM
    Hello guys! I cannot run cypress tests on Gitlab CI/CD pipeline, after i do cy.visit('/') it navigates to http://localhost:3000/ and i get blank page. Can someone help me please! I stuck on that one for couple days now
  • h

    handsome-businessperson-71907

    12/28/2022, 10:32 AM
    before asserting try a cy.reload(), are you sure it's not asserting before the loading is complete?
  • a

    astonishing-window-24437

    12/28/2022, 10:41 AM
    hi all, i try using webkit but webkit version looking 0
  • a

    astonishing-window-24437

    12/28/2022, 10:43 AM
    the error page is opened when i open webkit
  • a

    astonishing-window-24437

    12/28/2022, 10:43 AM
    my package.json file
  • s

    swift-manchester-9192

    12/28/2022, 10:44 AM
    OMG! That worked! Thanks a lot, you are the best!
  • h

    handsome-businessperson-71907

    12/28/2022, 10:44 AM
    glad to be of help 🫡
  • h

    handsome-businessperson-71907

    12/28/2022, 10:49 AM
    Oh and btw this isn't the best practice, it looks like your timeout is too short, you should try with cy.get(selector, { timeout:5000 }) ( 5 seconds, just an example you should adjust it untill it works) if this doesnt work keep using cy.reload untill you figure out why it's not loading
  • s

    swift-manchester-9192

    12/28/2022, 11:00 AM
    Yes, i also tried to increase timeout to 30sec but didn't worked for me
  • b

    busy-tent-74516

    12/28/2022, 11:28 AM
    I have not tried another tool. I will try thanks @late-planet-4481
  • h

    handsome-lion-1748

    12/28/2022, 12:13 PM
    hi, I'm trying to visit a subdomain in localhost, the issue is that if I add http:// before the subdomain I get a cy.origin error and if I don't then the baseUrl gets appended (I'm using cucumber preprocessor so I think I can't pass {baseUrl:null}
  • h

    handsome-lion-1748

    12/28/2022, 12:13 PM
    like what this member did https://github.com/cypress-io/cypress/issues/2918#issuecomment-947845580
  • h

    handsome-lion-1748

    12/28/2022, 12:14 PM
    so I need to force cy.visit to visit the url I provide without appending baseUrl, I'm not sure how
  • h

    handsome-lion-1748

    12/28/2022, 12:22 PM
    I tried
    Cypress.config('baseUrl', null);
    and it seems to be working however I got a network error
    Error: Invalid protocol: subdomain.localhost:
  • h

    handsome-lion-1748

    12/28/2022, 12:23 PM
    if I add http:// I get the cy.origin error although I can visit the subdomain on the live server
  • h

    handsome-lion-1748

    12/28/2022, 12:27 PM
    I found this https://github.com/cypress-io/cypress/issues/1488 I'll try it
1...175176177...192Latest