ConfigurePortletAcceptedCreditCardTest
open /web/guest/home/
waitForElementPresent link=Shopping Test Page
clickAtAndWait link=Shopping Test Page
clickAt //strong/a Options
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
waitForVisible //div[2]/div/span/span/button[1] Right Arrow
clickAt //div[2]/div/span/span/button[1] Right Arrow
waitForPartialText _86_available_cc_types MasterCard
addSelection _86_current_cc_types label=American Express
clickAt //div[2]/div/span/span/button[1] Right Arrow
waitForPartialText _86_available_cc_types American Express
clickAtAndWait //input[@value='Save']
assertText //div[@class='portlet-msg-success'] 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']