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

    bitter-match-90736

    07/15/2022, 8:34 AM
    Again..Users Folder in Windows are closed..and good so
  • r

    refined-engineer-18140

    07/15/2022, 8:38 AM
    Worked fine a while ago.. without any change.. project was there and errors were displayed correctly.. I understand it has something to do with file permissions.. somehow it does not have the access to them anymore.. but now I am trying to figure out why.. since the setup is the same.. Since I use a Mac, I ignored it up until now when I have some time to investigate the Windows issues..
  • b

    bitter-match-90736

    07/15/2022, 8:42 AM
    okay, at first, if someone have persmissions error and then use C:\Users.... than is this great problem.
  • b

    bitter-match-90736

    07/15/2022, 8:43 AM
    do C:\cypresss Folder
  • a

    abundant-honey-50205

    07/15/2022, 8:57 AM
    sorry i'm newbie so i can't understand this type, could you explain more detail please?
  • b

    bitter-match-90736

    07/15/2022, 9:02 AM
    sure, Windows don't like to write without rights in some directions or folders. what is good for us all. so if you try to change or write is this folders, so you have too be admin.
  • a

    abundant-honey-50205

    07/15/2022, 9:04 AM
    my bad 😦 i use cypress on Mac, but i tried to duplicate file into multiple folders but still got invalid_form_data error
  • b

    bitter-match-90736

    07/15/2022, 9:05 AM
    on windows?
  • a

    abundant-honey-50205

    07/15/2022, 9:05 AM
    i haven't tried on windows 😦
  • a

    abundant-honey-50205

    07/15/2022, 9:06 AM
    i currently working on macbook
  • b

    bitter-match-90736

    07/15/2022, 9:06 AM
    okay
  • a

    abundant-honey-50205

    07/15/2022, 9:06 AM
    maybe Cypress doesn't support formData yet?
  • a

    abundant-honey-50205

    07/15/2022, 9:07 AM
    i did search on google and someone said that
  • b

    bitter-match-90736

    07/15/2022, 9:07 AM
    but dont copy to Users Folder
  • b

    bitter-match-90736

    07/15/2022, 9:08 AM
    so no Desktop or else
  • b

    bitter-match-90736

    07/15/2022, 9:09 AM
    invalid_form_data ? 404 error
  • a

    abundant-honey-50205

    07/15/2022, 9:09 AM
    its 200 status code
  • a

    abundant-honey-50205

    07/15/2022, 9:09 AM
    returned from slack api
  • b

    bitter-match-90736

    07/15/2022, 9:09 AM
    wrong data model?
  • a

    abundant-honey-50205

    07/15/2022, 9:10 AM
    i don't know 😦
  • a

    abundant-honey-50205

    07/15/2022, 9:10 AM
    i haven't worked with this type of cy.request
  • b

    bitter-match-90736

    07/15/2022, 9:11 AM
    cy.request is big
  • a

    abundant-honey-50205

    07/15/2022, 9:11 AM
    i did search on Cypress docs but it didn't mention anything about formData
  • a

    abundant-honey-50205

    07/15/2022, 9:12 AM
    i only found guide for x-www-form-urlencoded
  • b

    bitter-match-90736

    07/15/2022, 9:12 AM
    invalid_form_data is called
  • a

    abundant-honey-50205

    07/15/2022, 9:12 AM
    but i can't find a way to send file with that type
  • b

    bitter-match-90736

    07/15/2022, 9:13 AM
    for me is not cypress issue
  • r

    refined-engineer-18140

    07/15/2022, 10:41 AM
    Will try. Thanks!
  • m

    mysterious-motherboard-13344

    07/15/2022, 11:13 AM
    Hi guys ....can anyone please help me here? I am trying to upgrade Cypress to 10.3.0 from 9.6.1 for my project. I had following kind of code in my plugins/index.js using which I was setting my environment specific json config files. This code I want to transform into Cypress.config.js. How can I do it please?
    Copy code
    const envValue = config.env() || 'local'
        const pathToConfigFile = path.resolve('cypress/config', `${envValue}.json`)
    
        const envConfig = JSON.parse(fs.readFileSync(pathToConfigFile));
        console.log(`envConfig ${JSON.stringify(envConfig)}`)
        return Object.assign({}, config, {
    
            env: Object.assign({}, envConfig, {
                X_Api_Key: process.env.X_Api_Key}),
    
            viewportWidth: 1366,
            viewportHeight: 768,
    })
    
    }
  • g

    gray-beard-8992

    07/15/2022, 5:26 PM
    I just added did this in my new config file: const setupNodeEvents = require("./cypress/plugins/index.js"); And then add setupNodeEvents to e2e component in the config file I think this was in the documentation for 10.0
1...109110111...252Latest