| ConfigurePortletInsuranceFlatRateTest | ||
| open | /web/guest/home/ | |
| waitForElementPresent | link=Shopping Test Page | |
| clickAtAndWait | link=Shopping Test Page | |
| clickAtAndWait | link=Cart | |
| assertTextNotPresent | Insurance | |
| assertElementNotPresent | _34_insure | |
| open | /web/guest/home/ | |
| waitForElementPresent | link=Shopping Test Page | |
| clickAtAndWait | link=Shopping Test Page | |
| clickAtAndWait | link=Configuration | |
| clickAtAndWait | link=Insurance Calculation | |
| select | _86_insuranceFormula | label=Flat Amount |
| type | _86_insurance0 | 2.00 |
| type | _86_insurance1 | 3.00 |
| type | _86_insurance2 | 5.00 |
| type | _86_insurance3 | 10.00 |
| type | _86_insurance4 | 20.00 |
| clickAtAndWait | //input[@value='Save'] | |
| assertText | //div[@id='p_p_id_86_']/div/div | You have successfully updated the setup. |
| open | /web/guest/home/ | |
| waitForElementPresent | link=Shopping Test Page | |
| clickAtAndWait | link=Shopping Test Page | |
| clickAtAndWait | link=Cart | |
| assertText | //span/label | Insurance |
| assertText | _34_insure | None $2.00 |