You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testcase gets executed properly. Also the cypress log shows that the element was targeted perfectly and even the click() action is logged but the code under the function which was meant to be called when the element is clicked is not executed.
Scenario:-
By default the options (ie. li tags would be display:none). When click on dropdown arrow they will get display.
Now, if there are 5-6 li then it will create problem. If there are less than 5 then its working fine.
if there are more than 5 options (li) then first two will not able to select but rest other when trigger click its function logic gets executed
i.e in our case we are doing server call and updating some field or show message value which gets failed in assert.
Could you try at your end ?
I would appreciate if you spend some time in this.
we are waiting for this since long
Desired behavior
Click event should be triggered and code under the Function written for the click event should get executed successfully.
Click event should trigger the respective handler and perform the actions.
Test code to reproduce
Kindly consider the below HTML structure
<div><aid="dropDown">Click Here To Open Dropdown</a><spanid="shwMsg" style="display:none">Anchor was clicked</span><ulid="selectoptions"><liid="opt1" click-"CallServerAndUpdateStatus(1)"><ahref="javascript:void(0);"> Option 1</a></li><liid="opt2" click-"CallServerAndUpdateStatus(2)"><ahref="javascript:void(0);">Option 2</a></li><liid="opt3" click-"CallServerAndUpdateStatus(3)"><ahref="javascript:void(0);">Option 3</a></li><liid="opt1" click-"CallServerAndUpdateStatus(4)"><ahref="javascript:void(0);"> Option 1</a></li><liid="opt2" click-"CallServerAndUpdateStatus(5)"><ahref="javascript:void(0);">Option 2</a></li><liid="opt3" click-"CallServerAndUpdateStatus(6)"><ahref="javascript:void(0);">Option 3</a></li></ul></div>
.js
function CallServerAndUpdateStatus(paravalue) {
// console.log(324);
// alert(3443);
// call server api and on success or failure show respective message of passed and failed
$("#shwMsg").show();
}
When user click on an anchor with id dropDown. it opens the ul li dropdown.
but then when user click on li button using below code.
Current behavior
Testcase gets executed properly. Also the cypress log shows that the element was targeted perfectly and even the click() action is logged but the code under the function which was meant to be called when the element is clicked is not executed.
Scenario:-
By default the options (ie. li tags would be display:none). When click on dropdown arrow they will get display.
Now, if there are 5-6 li then it will create problem. If there are less than 5 then its working fine.
if there are more than 5 options (li) then first two will not able to select but rest other when trigger click its function logic gets executed
i.e in our case we are doing server call and updating some field or show message value which gets failed in assert.
Could you try at your end ?
I would appreciate if you spend some time in this.
we are waiting for this since long
Desired behavior
Click event should be triggered and code under the Function written for the click event should get executed successfully.
Click event should trigger the respective handler and perform the actions.
Test code to reproduce
Kindly consider the below HTML structure
When user click on an anchor with id dropDown. it opens the ul li dropdown.
but then when user click on li button using below code.
Click event didn't trigger. Though it closes the dropdown but expected behaviour is to trigger the server call and do the needful.
It works fine in the previous version of cypress till 12.17.0 while in the current version after v13 its not working
Cypress Version
13.12.0
Node version
21
Operating System
Windows 11
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: