Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

214
Vistas
How to upload whole folder and every file inside using cypress?

I have something like that to take 1 file from the folder and just copy that 5 times. What should i do when i just want to upload everything in the location like 600 files? Can someone help me ? Maybe some loop ?

cy.fixture('DSC03431.JPG', 'base64').then((fileContent) => {
        cy.get('#chooseFilesInput').attachFile({
            fileContent: fileContent.toString(),
            fileName: 'DSC03431.JPG',
            mimeType: 'image/jpg',
            encoding: 'base64',

I want to upload contents of a folder to my application using cypress. I know I can mention the names of the files and cypress will pick them, but since I am not aware of the number of files in the folder or their names, how can I upload otherwise?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda