| deleteAllVisibleCookies |
|
|
| open |
wp-admin |
|
| type |
user_login |
admin |
| type |
user_pass |
p@55w0rd |
| clickAndWait |
wp-submit |
|
| clickAndWait |
link=General Options |
|
| click |
promotions-tab |
|
| type |
new_promo_code |
100 |
| type |
new_promo_description |
shipping % threshold |
| select |
new_promo_type |
label=Shipping % (Threshold) |
| type |
new_promo_value |
50 |
| clickAndWait |
options_update8 |
|
| type |
new_promo_code |
200 |
| type |
new_promo_description |
shipping val threshold |
| select |
new_promo_type |
label=Shipping Value (Threshold) |
| type |
new_promo_value |
20 |
| clickAndWait |
options_update8 |
|
| type |
new_promo_code |
300 |
| type |
new_promo_description |
price % threshold |
| select |
new_promo_type |
label=Pricing % (Threshold) |
| type |
new_promo_value |
50 |
| clickAndWait |
options_update8 |
|
| type |
new_promo_code |
400 |
| type |
new_promo_description |
price val threshold |
| select |
new_promo_type |
label=Pricing Value (Threshold) |
| type |
new_promo_value |
100 |
| clickAndWait |
options_update8 |
|
| clickAndWait |
link=Visit Site |
|
| clickAndWait |
link=test-product-weight |
|
| clickAndWait |
//button[@name='addbutton'] |
|
| type |
//input[contains(@id, 'item_')] |
6 |
| clickAndWait |
updatebutton |
|
| clickAndWait |
buybutton |
|
| click |
editaddress |
|
| type |
shipping_recipient |
Joe Bloggs |
| type |
shipping_email |
jasonrbriggs@gmail.com |
| type |
shipping_phone |
12345 |
| type |
shipping_addr1 |
12 St Leonard's Road |
| type |
shipping_suburb |
Testville |
| type |
shipping_city |
Testington |
| type |
shipping_region_input |
Test |
| type |
shipping_postcode |
12345 |
| select |
shipping_country_input |
label=New Zealand |
| clickAndWait |
billingbutton |
|
| assertTextPresent |
shipping % threshold |
|
| assertTextPresent |
-8.75 |
|
| assertTextPresent |
$128.75 |
|
| clickAndWait |
link=Checkout |
|
| type |
//input[contains(@id, 'item_')] |
11 |
| clickAndWait |
updatebutton |
|
| clickAndWait |
buybutton |
|
| clickAndWait |
shippingbutton |
|
| assertTextPresent |
shipping val threshold |
|
| assertTextPresent |
-20.00 |
|
| assertTextPresent |
$230.00 |
|
| clickAndWait |
link=Checkout |
|
| type |
//input[contains(@id, 'item_')] |
16 |
| clickAndWait |
updatebutton |
|
| assertTextPresent |
price % threshold |
|
| assertTextPresent |
-160.00 |
|
| clickAndWait |
buybutton |
|
| clickAndWait |
shippingbutton |
|
| assertTextPresent |
price % threshold |
|
| assertTextPresent |
-160.00 |
|
| assertTextPresent |
$202.50 |
|
| clickAndWait |
link=Checkout |
|
| type |
//input[contains(@id, 'item_')] |
21 |
| clickAndWait |
updatebutton |
|
| assertTextPresent |
price val threshold |
|
| assertTextPresent |
-100.00 |
|
| clickAndWait |
buybutton |
|
| clickAndWait |
shippingbutton |
|
| assertTextPresent |
price val threshold |
|
| assertTextPresent |
-100.00 |
|
| assertTextPresent |
$375.00 |
|
| clickAndWait |
confirmorderbutton |
|
| assertTextPresent |
$375.00 |
|
| open |
wp-admin |
|
| clickAndWait |
link=Orders |
|
| clickAndWait |
orders_query |
|
| click |
link=Details |
|
| assertTextPresent |
$375.00 |
|
| assertTextPresent |
promo 400 discount |
|
| assertTextPresent |
-100.00 |
|
| clickAndWait |
//li[@id='wp-admin-bar-logout']/a |
|