skip to Main Content

Jquery – how to automate dragndrop using cypress plugin

not able to drag the first task in my list to 3 task cy.get('div[data-columns="columns"]') .find('div[data-columnContainer="columnContainer"]') .each(($column) => { if ($column.text().includes("Hamza Malik")) { cy.get('div[data-taskDraggable="taskDraggable"]:nth-child(1)').drag('div[data-taskDraggable="taskDraggable"]:nth-child(3)', { force: true }); } });

VIEW QUESTION

Javascript – Conditional testing in cypress between 2 selector

//1st Selector cy.get('div.d-flex.justify-content-between.undefined > button.button.button-filled').contains('Yes, delete user'); //2nd selector cy.get('div.modal.fade.show > div > div > div > div:nth-child(3) > button.button.button-filled').contains('Delete User'); So i got 2 selector, can you help me to make if/else condition, if the 1st condition not working…

VIEW QUESTION

Javascript – Select date from rangepicker

I am trying to add two dates in a rangepicker. This is the command to select the date: Cypress.Commands.add('setDatePickerDate', (selector, date) => { const monthsShort = [ 'janv.', 'févr.', 'mars', 'avril', 'mai', 'juin', 'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.', ];…

VIEW QUESTION
Back To Top
Search