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

    silly-laptop-48411

    09/19/2022, 12:15 AM
    Is there a way to set that globally or is it recommended to handle it per request as needed?
  • b

    brash-magazine-98754

    09/19/2022, 6:30 AM
    is there a way to validate the background color of and Pseudo ::after element as shown in the screenshot ?
  • s

    silly-laptop-48411

    09/19/2022, 6:57 AM
    is there a way to validate the
  • s

    strong-horse-65997

    09/19/2022, 7:08 AM
    Hi Can anybody help with integrating DB to cypress framework.. I want to integrate it with a pgadmin db what I can find on google is the only way to integrate it with mysql not sure if its the same for pgadmin as well
  • f

    fast-motherboard-28167

    09/19/2022, 7:33 AM
    Hi. Can someone help with a simple sensor array readout configuration on PSoC 6? I have a CY8CPROTO-062-4343W. Just need some help with digital outputs, multiplexing signals to ADC and configuring the ADC.
  • c

    cold-van-45410

    09/19/2022, 8:01 AM
    How can we assert video in cypress? I want assert 1. video should not be corrupted 2. Video length should be correct 3. video should play correctly
  • s

    salmon-hydrogen-86446

    09/19/2022, 10:47 AM
    Hi. We are using Tekton CI/CD. Recently, we are seeing problems when trying to build a branch: Tekton reports that it cannot find the Cypress configuration file. We, relatively recently, migrated to Cypress 10
  • s

    salmon-hydrogen-86446

    09/19/2022, 10:48 AM
    Googling and StackOverflow seems to suggest that somewhere there is still a reference to the old cypress.json file instead of the newer (Cypress 10+) cypress-e2e.config.ts or cypress.config.ts files
  • m

    mysterious-belgium-25713

    09/19/2022, 10:48 AM
    What i would do with DB connections is create a cypress task and use the https://node-postgres.com/ in the task to connect to the db
  • s

    salmon-hydrogen-86446

    09/19/2022, 10:50 AM
    Nevertheless, we have updated the script invocations with the appropriate parameters: --config-file cypress-e2e.config.ts (in package.json)
  • s

    salmon-hydrogen-86446

    09/19/2022, 10:50 AM
    If anyone could point me in an appropriate direction, it would be appreciated 🙂
  • h

    hundreds-diamond-79222

    09/19/2022, 11:29 AM
    Hi anyone have time to answer a question about chromeWebSecurity: false
  • b

    blue-battery-71202

    09/19/2022, 12:02 PM
    Hi all, Is there a way to make a collapsable log group in the cypress headed runner, like when using cy.session command (Where you can collapse, or uncollapse the commands within session) ? I would like to mark from X to Z a series of commands, which I want to include in my collapsible, however I don't want it to be visible, only if I want to debug that part.
  • f

    full-yacht-67771

    09/19/2022, 12:44 PM
    Hi all I have a question. I think i do it wrong and need some help I have an Json File { "navigator":"enkelrader", "product":"product", "environment":"test3" } And want to get the "navigor" value for later use and the code is like this fileToRead(file,dataObj){ let foo; // cy.readFile(file).its(dataPath).then((obj) => { cy.readFile(file).then((obj) => { foo = obj[dataObj] cy.log(foo) }); cy.log(foo) }; And the log from the running " readFilecypress/fixtures/variables.json log enkelrader log " outside the log is empty I support it is because of async behavior. But is possible to assign an variable from readFile() and how to do it?
  • m

    mysterious-belgium-25713

    09/19/2022, 12:50 PM
    You can also not use the cy.readfile. I will give you an example how i use json files
    Copy code
    js
    import * as myJson from '../../fixtures/example.json'
    
    describe('Actions', () => {
    
      it("json file reading", ()=> {
        cy.log(myJson.name)
        cy.log(myJson.email)
      })
    
    })
  • m

    mysterious-belgium-25713

    09/19/2022, 12:50 PM
    Just native javescript works perfect only you need to define it at the top of the file
  • f

    full-yacht-67771

    09/19/2022, 12:54 PM
    I will try it, thanx
  • f

    few-umbrella-8290

    09/19/2022, 3:31 PM
    Hey, I'm having the following error
  • s

    sparse-plastic-94963

    09/19/2022, 3:36 PM
    Can anyone tell me what the blue vs. green means in this UI? Have been having a hard time finding an explanation anywhere
  • v

    victorious-father-41976

    09/19/2022, 5:45 PM
    Can anyone tell me what the blue vs
  • a

    adventurous-zoo-38990

    09/19/2022, 7:10 PM
    Guys do you know if experimentalStudio is currently available, I have not been able to install it.
  • r

    ripe-account-85587

    09/20/2022, 5:51 AM
    Hello guys, i am getting this error when running feature file but .js and .ts tests are working fine. does anyone knows the issue how to solve?
  • f

    flaky-mouse-81684

    09/20/2022, 6:16 AM
    Anyone have idea of Oauth2.0 login bypass, As in My application while hitting login url it is redirecting to multiple 302 call.. and getting CORS error and timeout
  • s

    strong-cat-47196

    09/20/2022, 6:43 AM
    Hi! I trying to run tests locally. I have about 250-300 tests. Every time it's just stuck in the middle after less than half of the specs or it's failing with timeout. How can I check where is the problem, I feel like something taking all of the browser memory or something. Does is happen to anyone else? Can you help to understand how to solve it?
  • m

    mysterious-belgium-25713

    09/20/2022, 7:27 AM
    Wat version of cypress are you using if it's below 10 and you are using the run all command then it could be memory. Change the value of numTestsKeptInMemory to a lower number. Default cypress keeps 50 tests in memory. So if you have long tests it will try to save the full time travel in memory
  • s

    silly-laptop-48411

    09/20/2022, 7:49 AM
    I have a test which only asserts that something does not exist. This test will always pass (which makes sense) unless I set a timeout to wait, find another element which should exist first, or wait for a network request to finish. What doesn't make sense to me is that I need to check something else exists prior to asserting that the other thing does not.
    Copy code
    ts
    cy.visit(url).get('.thing').should('not.exist'); // always passes (false positive potentially)
    cy.visit(url).get('.first').get('.thing').should('not.exist'); // correctly passes
    In this instance, if I change
    .first
    to another name or remove it, then the test is impacted even though it is not a concern or focus of this particular test, rather it is a means to an end. What the more common or correct approach to this test?
  • c

    cold-apartment-77594

    09/20/2022, 7:52 AM
    Hi all. I'm currently migrating a Cypress project from version 6.5 to 10.0. I have some problems migrating the
    plugins/index.js
    file. The old file looks as follows.
    Copy code
    const fs = require('fs-extra')
    const path = require('path')
    
    module.exports = (on, config) => {
      const file = config.env.configFile || 'development'
      const pathToConfigFile = path.resolve('config', `${file}.json`)
      return fs.readJson(pathToConfigFile)
    }
    Where the config files look as follows.
    Copy code
    {
      "baseUrl": "https://local.example.com",
      "cypressEnv": "local",
      "gtmId": "ID-666",
      "video": false
    }
    I had a look at the migration guide and it seems that I have to move this logic into the
    setupNodeEvents()
    function. However, I have no idea how to set for example
    baseUrl
    and
    cypressEnv
    inside
    setupNodeEvents()
    . Any help would be appreciated.
  • s

    strong-cat-47196

    09/20/2022, 8:40 AM
    I using the latest version of cypress and run command with key to record to the dashboard. Yeah it's first thing i did changed numTestsKeptInMemory to 0...
  • v

    victorious-father-41976

    09/20/2022, 9:26 AM
    Hi all I m currently migrating a Cypress
  • a

    adorable-easter-66676

    09/20/2022, 3:48 PM
    hi guys i am looking for an alternative to make cypress record the videos for each "it" instead of just one for the "describe" this would be ideal, if not i need a way to split the videos without having to modify my structure and code when implementing the tests.
1...148149150...252Latest