skip to Main Content

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

Check attribute of element HTML

I would like to click on an element and check if the selected attribute is true Here is my code function clickOnInterface(pos, interfaceName) { cy.get('[data-test="interface-list"]').contains(interfaceName).click(); cy.get(`[data-test="interface-list"] ix-event-list-item:nth-child(${pos})`) .should("have.attr", "selected", "true"); } Cypress gives me this error: Timed out retrying after…

VIEW QUESTION
Back To Top
Search