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

    flaky-airport-12178

    08/17/2022, 8:11 AM
    I used selectFile but it throws the error
  • c

    curved-gold-20579

    08/17/2022, 10:47 AM
    Hi guys. Could anyone help? Is there any possibility to get the viewport size value and associate it to a variable? I need just to get the value of the viewport and use it inside the test.
  • g

    gray-kilobyte-89541

    08/17/2022, 10:52 AM
    you are not making a new request, are you? you are getting an alias again and again. See https://glebbahmutov.com/blog/test-using-apis/
  • f

    faint-tiger-98881

    08/17/2022, 11:44 AM
    My goal was to recursing the make a request until the response status is 200. I've used to alias to getting the status code
  • b

    brief-toddler-73066

    08/17/2022, 1:26 PM
    I need help migrating from 9.7.0 to 10.3.1, specifically with setting up certs. Is defining the ClientCertificate required for 10.3.1? I've tried setting that but the ClientCertificateStore throws an error due to undefined "PORT" object?
  • e

    early-computer-34425

    08/17/2022, 1:38 PM
    cy.wait('@Intercept01') .get('#optinList01'').focus().select('Option 1') .wait('@Intercept01') .get('#optinList02').focus().select('Option 2') is this completely valid way to wait, most examples I have seen are wait().then()
  • m

    melodic-egg-83620

    08/17/2022, 1:42 PM
    I'm trying to use Vite as a preprocessor, but I'm getting errors in the test browser pointing to Webpack. I'm aware
    cypress-vite
    is a community plugin, but I'm wondering if someone can find an error in my config:
    Copy code
    import { defineConfig } from 'cypress'
    import vitePreprocessor from 'cypress-vite'
    import path from 'path'
    
    export default defineConfig({
      chromeWebSecurity: false,
      projectId: "arwce9",
      requestTimeout: 10000,
      responseTimeout: 60000,
      viewportHeight: 1080,
      viewportWidth: 1920,
    
      e2e: {
        baseUrl: 'http://localhost:8080',
        setupNodeEvents (on) {
          on('file:preprocessor', vitePreprocessor(path.resolve(__dirname, './vite.config.ts')))
        },
        specPattern: 'cypress/e2e/**/**.spec.js',
      },
    })
  • m

    melodic-egg-83620

    08/17/2022, 1:44 PM
    .then
    i s used when you want to wait and then access elements/data specific to what you were waiting on. I don't believe this will work, because you can't
    .get
    and then
    .get
    on the same
    cy
    chain.
    Copy code
    cy.wait(...)
    
    cy
      .get(...)
      .focus()
      .select(...)
    
    cy.wait(...)
    
    cy
      .get(...)
      .focus()
      .select(...)
  • e

    early-computer-34425

    08/17/2022, 1:49 PM
    it actually works in version 9.7.0 problem is running this in our pipelines doesnt find a option but locally it works with no problem
  • m

    melodic-egg-83620

    08/17/2022, 1:50 PM
    I'd still rewrite it to be more readable. What's the error when it fails in the pipeline?
  • e

    early-computer-34425

    08/17/2022, 1:52 PM
    CypressError: Timed out retrying after 60000ms:
    cy.select()
    failed because it could not find a single
    <option>
    with value, index, or text matching:
    Option 1
  • g

    gray-kilobyte-89541

    08/17/2022, 2:11 PM
    cy.get
    gets the same intercept, it does not make a new one
  • f

    full-ram-6858

    08/17/2022, 2:21 PM
    Anyone else running 10.4.0+ and above in Chrome and getting stuck on "Your tests are loading..." ?
  • a

    acceptable-hamburger-48790

    08/17/2022, 2:23 PM
    im using cypress 10.4 and cucumber preprocessor - i dont see such issue
  • f

    full-ram-6858

    08/17/2022, 2:23 PM
    Hmm, I don't get any console errors in the browser or terminal either...
  • f

    full-ram-6858

    08/17/2022, 2:25 PM
    Thanks, might be an issue with my setup... I'm seeing a lot of warning about missing sourcemaps.
  • u

    user

    08/17/2022, 2:29 PM
    hello guys.. i have a problem with visual studio code terminal, when i type npx cypress open , it give me a network error ..can someone help ?
  • f

    famous-lawyer-53235

    08/17/2022, 3:26 PM
    that error :ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
  • r

    ripe-plumber-61789

    08/17/2022, 3:37 PM
    Hi, anyone familiar with Vue, Vuetify, Component testing? I am trying to test a DataPicker (https://vuetifyjs.com/en/components/date-pickers/). This is how it is supposed to be look like.
  • r

    ripe-plumber-61789

    08/17/2022, 3:38 PM
    But I got icon missing when I tested the component
  • r

    ripe-plumber-61789

    08/17/2022, 3:40 PM
    Here are my component config file, and related component.
  • r

    ripe-plumber-61789

    08/17/2022, 3:43 PM
    and the test file. Anyone has idea how to fix it? Thanks!
  • h

    helpful-truck-53930

    08/17/2022, 4:50 PM
    Hello, i have a question about the cypress version and how i can handle that i have a"continious" new version on my computer. i have downloaded cypress directly from the CDN and i got a zip file. It is possible to change in the future only the cypress.exe file? Or i have to change every time the whole files wich i got from the zip file? Do have anyone a solution how i can handle that. Furthermore. I want to share the cypress tool with working collegeus with the radia client. Should i everytime change whole files for that? Thanks ๐Ÿ™‚
  • g

    great-pilot-68403

    08/17/2022, 5:45 PM
    Hi everyone ๐Ÿ™Œ Does anyone have faced why cypress GUI intermittently stalls on "Your tests are loading..."? I have to kill the entire cypress terminal process before I can get the runner to go. After migrating cypress-9 to cypress-10 I am having this issue. I can't seem to find any information online on what's going on. Thank you.
  • a

    average-garden-28705

    08/18/2022, 12:18 AM
    ๐Ÿ‘‹ from replay.io! Our plugin,
    @replayio/cypress
    , adds our custom browsers to the configuration but when we try to use them via
    --browser
    , Cypress warns about an invalid browser and then launches it anyway. The warning is confusing users and I'm hoping to get some advice on how to suppress this warning. Any thoughts?
  • h

    hundreds-spoon-43121

    08/18/2022, 1:48 AM
    Hi, Iโ€™m running tests in headless mode and thereโ€™s just so much information being logged on the console when a test fails (actions, xhr requests, โ€ฆ) is there any way to hide these and just show assertion errors?
  • m

    microscopic-advantage-2187

    08/18/2022, 9:53 AM
    Hello How to run a single cypress test file? I did follow the documentation
    Copy code
    bash
    npm run cy:run -- --record --spec "cypress/e2e/my-spec.cy.js"
    but it's not working, it actually run entire other tests : /
  • s

    stale-optician-85950

    08/18/2022, 10:20 AM
    cy:run
    is syntax from package.json script, do you have this in your script?
    Copy code
    {
      "scripts": {
        "cy:run": "cypress run"
      }
    }
  • m

    microscopic-advantage-2187

    08/18/2022, 10:21 AM
    I just copied the example from the docs I run it with npx like this
    npx cypress run
  • s

    stale-optician-85950

    08/18/2022, 10:23 AM
    Also note, that will run all tests i.e. it() blocks in your .cy.js file. When debugging you can add
    .only
    to a single test to use with
    Cypress open
    i.e.
    Copy code
    it.only('I'm testing my homepage', () => {
1...129130131...252Latest