skip to Main Content

Find specifc name with cypress and react to then press button – Reactjs

I have this code inside my react component: return ( <div className="col"> <div className="card border-secondary mb-3 text-center"> <div className="card-header"> <h5 data-cy='topicName' className="col-md"> {topicName} </h5> <span> Rol: {capitalize(author)} </span> </div> <div className="card-body text-secondary"> <p className="card-text">ƚltima actualizaciĆ³n: 16/06/2022</p> <div className=""> </div> </div>…

VIEW QUESTION

How can add wait in cy.task() functions like validateZipFile and getZipFileSize in the cypress.config.js – Javascript

How can add wait in following cy.task() functions like validateZipFile and getZipFileSize in the in the cypress.config.js file ? test.spec.js cy.get('button[type="submit"]').contains("Download").click({force:true}); helperFunctions.validateZip("Booking Results Resource Pack - Task"); // helperFunctions.js validateZip (text) { const dfilename = text.replace(/-|_|s/g,""); const downloadedFilename = dfilename+"ZipFile.zip";…

VIEW QUESTION
Back To Top
Search