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

    curved-artist-91262

    07/14/2022, 12:15 PM
    Hi Does anyone know what is happening about https://github.com/cypress-io/cypress/issues/18564 and https://github.com/cypress-io/cypress/issues/18740  ? I have a team that tried to upgrade from 8.5 to 10.3 but has backed out because they are seeing similar performance issues ... much to the delight of a few loud voices in our teams pushing for a switch to Karate UI.
  • r

    rhythmic-guitar-55789

    07/14/2022, 12:18 PM
    A missing or wrong content-length shouldn't cause an error, are sure there is a body in that second request?
  • b

    billions-shampoo-89711

    07/14/2022, 12:20 PM
    yup 100% sure... it's like endpoint B is expecting a bigger body than the one it receives
  • r

    rhythmic-guitar-55789

    07/14/2022, 12:47 PM
    Right, but if you comment out the modifications you make in endpoint A, does it still error?
  • m

    melodic-jordan-92756

    07/14/2022, 12:48 PM
    This is the code inside
    cypress.config.js
    Copy code
    const { defineConfig } = require('cypress')
    
    module.exports = defineConfig({
      projectId: 'rnft7f',
      video: false,
      reporter: 'mochawesome',
      reporterOptions: {
        charts: true,
        overwrite: false,
        html: true,
        json: true,
        reportDir: 'cypress/report/mochawesome-report',
      },
      e2e: {
        // We've imported your old cypress plugins here.
        // You may want to clean this up later by importing these.
        setupNodeEvents(on, config) {
          return require('./cypress/plugins/index.js')(on, config)
        },
        baseUrl: 'https://app.astrnt.co/',
        homepageUrl: 'https://app.astrnt.co/', //This is the line  I've just add
        specPattern: 'cypress/e2e/**/*.{feature,features,js,jsx,ts,tsx}'
      },
    })
    r
    f
    • 3
    • 8
  • b

    billions-shampoo-89711

    07/14/2022, 12:54 PM
    yes, I need that body to be changed so endpoint B can work as expected
  • r

    rhythmic-guitar-55789

    07/14/2022, 1:16 PM
    worth trying to make those requests with with regular
    fetch
    and see if the issue still occurs.
  • b

    billions-shampoo-89711

    07/14/2022, 1:18 PM
    will try and keep you posted with the result. Thanks!!
    r
    • 2
    • 1
  • r

    rhythmic-guitar-55789

    07/14/2022, 1:21 PM
    This is the code inside `cypress config
  • h

    helpful-plumber-53987

    07/14/2022, 2:25 PM
    is it somehow possible to always run your cypress tests against the latest chrome version (in in CI environment)? when I run them without the parallel flag and I don't specify any cypress docker container it will just use the github agent (with version chrome 103) if I wanna run the tests in parallel and I specify the docker container "cypress/browsers:latest" it is going to use 100 Am I using it wrong?; is there a better way?
  • g

    gray-beard-8992

    07/14/2022, 7:49 PM
    from the test you can throw an error
  • r

    rough-magazine-51515

    07/14/2022, 7:52 PM
    Hello i want to move cypress test to another folder but i cant open test then its show me "This path is invalid because it doesn't match the following specPattern:"
  • r

    rough-magazine-51515

    07/14/2022, 7:52 PM
    can anyone help me
  • r

    rough-magazine-51515

    07/14/2022, 7:52 PM
    Thanks
  • b

    bitter-fountain-36713

    07/14/2022, 8:01 PM
    Update the path in cypress.json or cypress.config.js
  • r

    rough-magazine-51515

    07/14/2022, 8:14 PM
    How
  • r

    rough-magazine-51515

    07/14/2022, 8:15 PM
    Like its cypress/e2e... I want to scr/tests/cypress/e2e... But i can't find the path how to add it
  • f

    famous-restaurant-30435

    07/14/2022, 8:20 PM
    See if this helps
  • f

    famous-restaurant-30435

    07/14/2022, 8:21 PM
    https://docs.cypress.io/guides/references/configuration#e2e
  • i

    important-summer-62917

    07/15/2022, 4:38 AM
    #763105090679865354 Need a help on uploading image in cypress, My requirement is i need to click on upload button and browse an image to the portal, "Upload" button Dom looks like as below
  • i

    important-summer-62917

    07/15/2022, 4:39 AM
    I have performed below steps
  • i

    important-summer-62917

    07/15/2022, 4:39 AM
    fixtures file: copy an image file under fixture folder eg. 'test.jpg' spec file: const img = 'test.jpg' cy.contains('Upload').should('be.visible').should('be.enabled') Above step is working as expetced. cy.contains('Upload').attachFile(img); Above step is not return any error but it is not uploading image.
  • i

    important-summer-62917

    07/15/2022, 4:41 AM
    In the execution result it displayed as
  • i

    important-summer-62917

    07/15/2022, 4:43 AM
    I am using cypress 10
  • a

    abundant-honey-50205

    07/15/2022, 6:14 AM
    Copy code
    cy.fixture("../downloads/xxx.csv").then(dailyFile => {
          cy.request({
            method: "POST",
            url: 'https://slack.com/api/files.upload',
            FormData: true,
            headers: {
              'Content-Type': 'multipart/form-data;charset=UTF-8',
              'Accept': '*/*',
              'Connection': 'keep-alive',
              'Accept-Encoding': '*'
            },
            body: {
              file: dailyFile,
              initial_comment: "Shakes the cat",
              channels: "xxx",
              token: "xxx",
            }
          })
        })
    Hi all, i want to upload the downloaded file .csv in /downloads/ folder of cypress, but when i use this code, the api returned the invalid_form_data error, please help me.
  • b

    bitter-match-90736

    07/15/2022, 8:18 AM
    just a hint, use dist folder
  • r

    refined-engineer-18140

    07/15/2022, 8:20 AM
    Hello. Anyone encounter the following issue with mochawesome report after Cypress finishes running tests headless (Only on Windows. On Mac it works fine): When a test fails, instead of the actual error, the following message is displayed for all failed tests: "Error: EPERM: operation not permitted, stat 'C:\Users\'" Thanks!
  • b

    bitter-match-90736

    07/15/2022, 8:24 AM
    this Error is not from cypress. But user other folder not C:\Users
  • r

    refined-engineer-18140

    07/15/2022, 8:28 AM
    There were something similar reported: https://github.com/cypress-io/cypress/issues/22002 and https://github.com/cypress-io/cypress/issues/16933 But I use Cypress 9.7.0 not sure if an upgrade will help in my case..
  • b

    bitter-match-90736

    07/15/2022, 8:30 AM
    But how you will develop, if you dont have permissions from windows...just asking
1...108109110...252Latest