https://cypress.io logo
Join DiscordCommunities
Powered by
# help
  • c

    cold-van-45410

    09/08/2022, 6:32 AM
    How to assert child window in cypress?
  • s

    sparse-kilobyte-59330

    09/08/2022, 6:51 AM
    Hi Guys I am getting this issue with cypress passing the test cases as passed even if the test case is failing
  • s

    sparse-kilobyte-59330

    09/08/2022, 6:51 AM
    any help ?
  • r

    rough-jackal-15806

    09/08/2022, 9:49 AM
    Hi all, I have integrated Cypress with TestRail using the cypress-testrail-reporter but when they run in CL or in github actions they throw an error and I can not figure out why, I have googled the hell out of it but nothing is coming up. It is working with TestRail and publishes the results but after the section is complete it fails... any ideas? The error is attached.
  • r

    rough-jackal-15806

    09/08/2022, 9:50 AM
    TypeError: Cannot read properties of undefined (reading 'split')
  • d

    dry-apple-88588

    09/08/2022, 11:35 AM
    Hello everyone, can please someone explain me how exactly should I make separate tsconfig.json for cypress working? I have cypress.config.ts and some basic tsconfig.json in my root folder. Here is what I have in tsconfig.json which is inside cypress folder and which I want to work for cypress only:
    Copy code
    {
        "extends": "../tsconfig.json",
        "compilerOptions": {
            "preserveConstEnums": true,
            "target": "es2015",
            "lib": ["es5", "dom", "es2015"],
            "types": ["cypress"],
        },
        "include": [
            "../node_modules/cypress"
        ]
    }
    should I add something to cypress.config.ts in order to make cypress pay attention to this file???? Or is it something else?
  • a

    average-lifeguard-91068

    09/08/2022, 12:33 PM
    Hey guys, I've been stuck at this task for a while for now.
  • a

    average-lifeguard-91068

    09/08/2022, 12:33 PM
    Copy code
    name: Pull Request
    
    on:
      workflow_call:
      workflow_dispatch:
    
    jobs:
      lint-format-audit-test:
        runs-on: "ubuntu-latest"
        steps:
           - uses: actions/checkout@v3
           - uses: actions/setup-node@v2
             with:
              node-version: 16.10.0 
           - name: Cypress run
             uses: cypress-io/github-action@v2
             with:
              start: test:stub-server, test:startTestServer
              install-command: npm ci --no-audit --prefer-offline --progress=false --ignore-scripts -f   
              wait-on: 'http://localhost:3001'
              command: 'cypress-run' 
             env:
              URAX_API_HOST: http://localhost:3001 
              TAX_MANAGEMENT_API: /tax-management/api 
              USE_MOCK_AUTH: true
              CYPRESS_BASE_URL: http://localhost:3000/urax-ui
  • a

    average-lifeguard-91068

    09/08/2022, 12:34 PM
    I'm trying to run my tests using github actions and it's complaining that the binaries are not installed?
  • a

    average-lifeguard-91068

    09/08/2022, 12:34 PM
    any idea on how to fix this?
  • n

    nice-machine-16386

    09/08/2022, 12:45 PM
    We're seeing some long network requests when running in cypress (test runner, cypress 10.6). Outside cypress, they take about 250ms, inside cypress over 2 seconds. The additional time in cypress is due to the requests being stalled. Sound familiar to anyone? Dev tools documentation is pointing me to possible disk caching issues but I'm not sure how to troubleshoot that.
  • f

    freezing-wall-7568

    09/08/2022, 2:03 PM
    hey guys, when running tests in ci using 10.0.0 I get the following errors, does anyone know if there is a work around/fix for it libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) [16299:0908/130819.131787:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process. [16299:0908/130819.139899:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
  • e

    enough-summer-50273

    09/08/2022, 3:52 PM
    I'm going through the https://learn.cypress.io/testing-your-first-application/installing-cypress-and-writing-your-first-test course, and I can't seem to get the snapshots to work. They just show a blank page. I'm using Chrome, but have tried the tests in both Firefox and the Electron browser and its the same in all three. I'm using the default settings, so haven't played around with any config files. Any ideas?
  • e

    enough-summer-50273

    09/08/2022, 5:07 PM
    Really strange, I'm onto the next part where you type something into a field, and this shows the after picture if you hover over the element, the before is still blank. If you click on the element, so it pins it, then the before and after are both blank.
  • e

    enough-summer-50273

    09/08/2022, 5:12 PM
    When you hilight the element.
  • e

    enough-summer-50273

    09/08/2022, 5:12 PM
    When you pin the element.
  • e

    enough-summer-50273

    09/08/2022, 5:13 PM
    Now back to the blank screen.
  • f

    faint-cat-31237

    09/09/2022, 7:37 AM
    Hello everybody 👋 I hope you all doing well ^^ I have a problem: I updated cypress from version 9.5.0 to 10.7.0 When I was in version 9.5.0, I was able to login to my web application from cypress after opening cypress with
    ./node_module/.bin/cypress open,
    and running a spec file. But now that I updated to v10.7.0 I'm getting 403 error when trying to login to the application form cypress (I can access my application manually on localhost:4200 with no problem). I tried to add the configuration`addchromeWebSecurity: false`, inside
    cypress.config.ts
    file but i keep getting the same error 😕 I hope that I gave you sufficient information to help solving this problem Any help would be very appreciated 🙏
  • c

    colossal-farmer-50435

    09/09/2022, 7:48 AM
    Hello everybody 👋
  • g

    gentle-accountant-4760

    09/09/2022, 9:47 AM
    Hello people! Is it possible to download and read a json file using Cypress?
  • a

    acceptable-hamburger-48790

    09/09/2022, 10:22 AM
    https://github.com/Xvier/cypress-downloadfile
  • g

    gentle-accountant-4760

    09/09/2022, 10:22 AM
    and then read it with readFile?
  • a

    acceptable-hamburger-48790

    09/09/2022, 10:22 AM
    yeah
  • g

    gentle-accountant-4760

    09/09/2022, 10:23 AM
    appreciate it 😄
  • a

    acceptable-hamburger-48790

    09/09/2022, 10:23 AM
    if you are downloading the files to fixture folder, you can make you use of fixture api to read the file https://docs.cypress.io/api/commands/fixture
  • g

    gentle-accountant-4760

    09/09/2022, 10:24 AM
    oh right, I can probably do that ye
  • t

    tall-house-95834

    09/09/2022, 10:59 AM
    Hello everyone, when i am trying to read the file from fixture it is taking 20 mins to read that file,cy.readFile also taking the same time, is there any way I can read that file faster like under 5 mins?
  • t

    thankful-vegetable-38026

    09/09/2022, 11:50 AM
    can plugins add tasks by themselves?
  • t

    thankful-vegetable-38026

    09/09/2022, 11:51 AM
    the plugin I'm writing requires the
    readFileMaybe
    task to work but I'm not sure how I'd be able to add it
  • g

    gray-caravan-70127

    09/09/2022, 12:36 PM
    Hey guys, do you maybe know why I'm getting this error on BrowserStack? I think that my path is ok.
1...142143144...252Latest