skip to Main Content

Javascript – Incomplete params inside cy.wait()

This is the bug I'm facing I do not understand why the params are not fully gotten with the cypress wait function thenfunction(){} AssertionError expected '19/0' to equal '19/01/2028' /* eslint-disable mocha/no-setup-in-describe,no-undef,mocha/no-skipped-tests */ // noinspection ES6ConvertRequireIntoImport require('chai/register-expect'); const {basicResponseObj, bodyObjSearch2}…

VIEW QUESTION

Html – cy.contains() cannot be passed an empty string

I'm testing my django server front-end with cypress. I should test the case where user selects empty string from options list. The code //Next try to remove frequency cy.get('select').eq(5).find('option').contains('').then((selectOption) => { cy.get('select').eq(5).select(selectOption.text()); }); led to error message: cy.contains() cannot be…

VIEW QUESTION

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
Back To Top
Search