Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
"Remove from cart" appers as link. There is not such simpletest API to test whether "remove from cart" is working and ajax-ifically removing item from cart.
Proposed resolution
Two solutions:
- Write a new simpletest API
- Remove from cart will appear as form button, and use
drupalPostAJAX()
to test
Remaining tasks
Commit the changes.
User interface changes
If we go with the second solution then there may be CSS changes to align the earlier "remove from cart" link with the new "remove from cart" button.
API changes
N/A
Data model changes
N/A
Comments
Comment #2
subhojit777Comment #3
subhojit777Another solution is to port the tests to Behat and use https://github.com/jhedstrom/drupalextension
This will be done 8.x version, 7.x stays as it is.. unless some help comes :)