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

subhojit777 created an issue. See original summary.

subhojit777’s picture

Title: Item remove from cart cannot be AJAX tested » Remove from cart cannot be AJAX tested
Issue summary: View changes
Parent issue: » #2568855: Write tests
subhojit777’s picture

Status: Needs work » Active

Another 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 :)