ConfigurePortletAcceptedCreditCardTest
open /web/guest/home/
waitForElementPresent link=Shopping Test Page
clickAtAndWait link=Shopping Test Page
clickAtAndWait link=Cart
assertElementPresent //img[@alt='visa']
assertElementPresent //img[@alt='discover']
assertElementPresent //img[@alt='mastercard']
assertElementPresent //img[@alt='amex']
open /web/guest/home/
waitForElementPresent link=Shopping Test Page
clickAtAndWait link=Shopping Test Page
clickAt //strong/a Actions
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[2]/a Configuration
assertText //div[@class='lfr-component lfr-menu-list']/ul/li[2]/a Configuration
click //div[@class='lfr-component lfr-menu-list']/ul/li[2]/a Configuration
waitForVisible _86_current_cc_types
addSelection _86_current_cc_types label=MasterCard
clickAt //div/table/tbody/tr/td[2]/a[1]/img
addSelection _86_current_cc_types label=American Express
clickAt //div/table/tbody/tr/td[2]/a[1]/img
pause 5000
clickAtAndWait //input[@value='Save']
assertText //div[@id='p_p_id_86_']/div/div You have successfully updated the setup.
assertText _86_current_cc_types Visa Discover
assertText _86_available_cc_types MasterCard American Express
open /web/guest/home/
waitForElementPresent link=Shopping Test Page
clickAtAndWait link=Shopping Test Page
clickAtAndWait link=Cart
assertElementPresent //img[@alt='visa']
assertElementPresent //img[@alt='discover']
assertElementNotPresent //img[@alt='mastercard']
assertElementNotPresent //img[@alt='amex']