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

    wonderful-wire-43244

    06/01/2022, 9:49 AM
    Hi folks, I encountered an interesting issue. When I call cy.visit(), the page is requested without sending the HTTP_ACCEPT_LANGUAGE header. However, all subsequent requests triggered by my app have that header set by the browser. Since my app defaults to en-GB and my browser has de-DE set, this results in fails later on. I read that you have to set your own headers in cy.visit(), but all other headers are fine. I just need that one header to be also sent... Anybody got an idea what I have to do?
  • b

    bumpy-gpu-33392

    06/01/2022, 12:18 PM
    Has anyone authenticated Okta by using an Okta API key?
  • w

    white-salesclerk-96926

    06/01/2022, 1:14 PM
    Hey, so i'm using cypress 9.7 and yesterday my tests start to break in CI env (gitlab), but i can't see why because videos are frozen, this always have been frozen. So, the error in the screenshot is the element is hidden, which is not true, the element is visible in the screenshot, and the video is frozen. So, after some research it seems like this problem was active in version 6.0.0, but shouldn't be now, any ideia why?
  • w

    wonderful-refrigerator-25173

    06/01/2022, 2:29 PM
    Hi folks, I want to write my own pre-processor for executing the spec files in a defined order rather than executing them randomly with cypress, the problem is I actually don't know how to write a pre-processor properly I tried few times but failed badly. I referred this only blog available on the internet on how to write a pre-processor https://glebbahmutov.com/blog/write-cypress-preprocessor/ but didn't get much from it. Any help or reference to any other detailed blog would be appreciated. Thank you In advance.
  • p

    prehistoric-lifeguard-61521

    06/01/2022, 2:33 PM
    Hi there. I'm trying to figure out if there's a known issue with
    cy.visit()
    on slow networks. I'm having some difficulty tracking down any specific issues thread about this. So I wanted to check here to see if anyone is familiar.
  • w

    wonderful-lizard-31456

    06/01/2022, 4:36 PM
    Hello everyone, after I upgraded to version 10, due to the "integration" folder name being "e2e" the plugin: cypress-cucumber-preprocessor doesn't work anymore because it keeps looking for the "integration" folder, does anyone have this same problem? or if there is some other method of using Feature files.
  • a

    able-magician-21289

    06/01/2022, 7:52 PM
    Hey, (i did not upgrade to v10 but) you should be able to modify the /integration directory via configuration. check this out: https://www.npmjs.com/package/cypress-cucumber-preprocessor#configuration
  • p

    proud-gpu-14798

    06/01/2022, 8:24 PM
    How to diagnose Github Action parallelization problem
    You passed the --parallel flag, but we do not parallelize tests across different environments.
    The successful runs do not provide the same JSON output that the failed run does, but I believe all of the params are identical.
    Copy code
    In order to run in parallel mode each machine must send identical environment parameters such as:
    
     - specs
     - osName
     - osVersion
     - browserName
     - browserVersion (major)
    
    This machine sent the following parameters:
    
    {
      "osName": "linux",
      "osVersion": "Ubuntu - 20.04",
      "browserName": "Chrome",
      "browserVersion": "102.0.5005.61",
      "specs": [
        "cypress/integration/assessment/general.spec.js",
        "cypress/integration/auth.spec.js",
        "cypress/integration/dashboard.spec.js",
        "cypress/integration/exercise_bank/dataset_create.js",
        "cypress/integration/exercise_bank/datasets.spec.js",
        "cypress/integration/exercise_bank/exercise_bank_template.spec.js",
        "cypress/integration/exercise_bank/exercise_bank.spec.js",
        "cypress/integration/home.spec.js",
        "cypress/integration/scroll_tutorial/exercise.spec.js",
        "cypress/integration/scroll_tutorial/general.spec.js",
        "cypress/integration/scroll_tutorial/mastery.spec.js",
        "cypress/integration/scroll_tutorial/no_exercises.spec.js",
        "cypress/integration/scroll_tutorial/question.spec.js",
        "cypress/integration/search.spec.js",
        "cypress/integration/slide_tutorial/exercise.spec.js",
        "cypress/integration/slide_tutorial/general.spec.js",
        "cypress/integration/slide_tutorial/mastery.spec.js",
        "cypress/integration/slide_tutorial/no_exercises.spec.js",
        "cypress/integration/slide_tutorial/question.spec.js",
        "cypress/integration/slide_tutorial/review.spec.js",
        "cypress/integration/split_screen/ide.js",
        "cypress/integration/syllabus.spec.js"
      ]
    }
    
    https://on.cypress.io/parallel-group-params-mismatch
    error Command failed with exit code 1.
    f
    • 2
    • 7
  • r

    ripe-pager-8687

    06/01/2022, 8:53 PM
    Hi cypress experts, I'm looking for a way to capture browser logs with cypress so I can make a report on console errors. Maybe someone can have an idea how to get them. Thanks in advance
  • r

    ripe-pager-8687

    06/01/2022, 8:59 PM
    I come from protractor framework and I could do something like this
    Copy code
    ts
    browser.manage().logs().get('browser').then(function(browserLog) {
      // build a report
    });
    I don't know if there is something similar in cypress
  • f

    few-ability-10425

    06/01/2022, 9:08 PM
    Hey all, I'm in the process of trying to build tests for an antd table interaction we've built in our React app and am having some trouble debugging a flake. Specifically, I'd like Cypress to type: '13:00' into an
    input
    On success, I can see in the browser console that the keyboard event had a target element for each letter typed and on the flake, I can see that only the first letter had a target element (the letter that Cypress seems to flake on changes randomly from the first letter to the last). See pictures:
  • f

    few-ability-10425

    06/01/2022, 9:08 PM
    Any idea what I need to look for to debug the flake? The code:
    Copy code
    // create an alias for the start time element
        cy.get(startSelector).as("start-time");
        // type 13:00 in the start time field
        cy.get("@start-time").should("be.visible").type(inputStart);
        // check that 13:00 is in the start time field
        cy.get("@start-time")
          .find("input")
          .should("be.visible")
          .should("have.value", inputStart);
        // hit enter to close the time picker
        cy.get("@start-time").type("{enter}");
  • a

    astonishing-secretary-49341

    06/02/2022, 4:17 AM
    Hi all, does anyone encounters an error with cy wait on ci/cd pipeline? (mine is on gitlab) The error was - CypressError: Timed out retrying after 5000ms:
    cy.wait()
    timed out waiting
    5000ms
    for the 1st request to the route:
    getMetadata
    . No request ever occurred. https://on.cypress.io/wait tho it is working perfectly fine on my local.
    b
    • 2
    • 3
  • d

    damp-lunch-77700

    06/02/2022, 5:00 AM
    Hi Folk im facing authentication issue
  • d

    damp-lunch-77700

    06/02/2022, 5:00 AM
    our company there are kerberos authentication ..while launching application im getting 401 unauthirized issue
  • d

    damp-lunch-77700

    06/02/2022, 5:01 AM
    can u help me how to resolve through cypress
  • d

    damp-lunch-77700

    06/02/2022, 5:01 AM
    i tried with chromeWebSecurity": false,
  • d

    damp-lunch-77700

    06/02/2022, 5:01 AM
    but no luck is there any specific access required
  • d

    damp-lunch-77700

    06/02/2022, 5:01 AM
    please help me thank you in advance
  • g

    green-book-63455

    06/02/2022, 7:35 AM
    Hi all, I have a login popup so user clicks sign-in and up pops a form with username / password fields. I have googled this and looked at the tutorialpoint page. I do not have access to the javascript that popups the window so don't think I can use the approach taken here. Can anyone point me in the right direction?
  • c

    cool-engineer-68430

    06/02/2022, 9:35 AM
    Hey! Does anybody know if it is possible to install Cypress Dashboard on an Atlassian Data Center, Version 8.20?
  • f

    full-river-47441

    06/02/2022, 10:17 AM
    Hello πŸ‘‹ I need someone to wrap my head around how wrap() works. I use it to chain commands but it does not work as I expect. When I use wrap() to chain my custom command, sometimes test fails and does not continue to execute the commands after the wrap() especially on CI. If I use just native Cypress commands, then it works. Can anyone help me understand what is happening here? Take a look at the snapshot. The first command fails on CI and second passes.
    b
    • 2
    • 1
  • e

    early-article-48946

    06/02/2022, 11:36 AM
    Were u able to fix this issue, im having this problem on cypress 10
  • g

    gifted-boots-63851

    06/02/2022, 11:37 AM
    Check this https://discord.com/channels/755913899261296641/763105090679865354/974297822264451162
  • e

    early-article-48946

    06/02/2022, 11:39 AM
    i dont have any web config i just installed cypress on a new project, so do i need to create a file 1st then write that code ?
  • e

    early-article-48946

    06/02/2022, 11:40 AM
    so this is my error "ERROR TS18002: The 'files' list in config file 'tsconfig.json' is empty."
  • e

    early-article-48946

    06/02/2022, 11:53 AM
    I found a solution in Document, Just create a tsconfig.json { "compilerOptions": { "target": "es5", "lib": ["es5", "dom"], "types": ["cypress", "node"] }, "include": ["**/*.ts"] } And it works fine
  • u

    user

    06/02/2022, 1:03 PM
    Hello everyone, i'm having some difficulties with Cypress since i updated it to version 10.0.0 When i open Cypress, it works just fine like this:
  • u

    user

    06/02/2022, 1:04 PM
    But the moment i click on E2E Testing, Cypress closes and this shows up in Windows PowerShell:
  • u

    user

    06/02/2022, 1:04 PM
    I'm not that smart when it comes to understanding these things because i'm new to this stuff, but what does that mean? How do i fix it so i can use Cypress for my tests? Also yes, i've tried updating it to version 10.0.1 but that didn't seem to change anything.
1...737475...252Latest