| open |
wp-admin |
|
| waitForElementPresent |
link=Misc Options |
|
| clickAndWait |
link=Misc Options |
|
| type |
coupon_set_name |
test |
| type |
coupon_file |
/Users/jasonbriggs/Development/yak-for-wordpress/branches/working/test/coupons.txt |
| clickAndWait |
options_update_coupons |
|
| assertText |
coupon_set_1 |
test |
| assertText |
total_1 |
4 |
| assertText |
used_1 |
0 |
| clickAndWait |
link=General Options |
|
| click |
//a[@id='promotions-tab']/span |
|
| type |
new_promo_code |
test |
| type |
new_promo_description |
test coupon codes |
| select |
new_promo_type |
label=Coupon Codes Pricing % |
| type |
new_promo_value |
10 |
| clickAndWait |
options_update8 |
|
| clickAndWait |
link=Visit Site |
|
| clickAndWait |
link=Downloadable product |
|
| clickAndWait |
//button[@name='addbutton'] |
|
| type |
promo_code |
abc1 |
| clickAndWait |
updatebutton |
|
| assertTextPresent |
test coupon codes |
|
| assertTextPresent |
-2.50 |
|
| clickAndWait |
buybutton |
|
| clickAndWait |
shippingbutton |
|
| assertTextPresent |
test coupon codes |
|
| assertTextPresent |
-2.50 |
|
| clickAndWait |
confirmorderbutton |
|
| clickAndWait |
link=Visit Site |
|
| clickAndWait |
link=Downloadable product |
|
| clickAndWait |
//button[@name='addbutton'] |
|
| type |
promo_code |
abc1 |
| clickAndWait |
updatebutton |
|
| assertTextPresent |
Invalid promotion code |
|
| open |
wp-admin |
|
| clickAndWait |
link=Orders |
|
| clickAndWait |
orders_query |
|
| click |
link=Details |
|
| assertTextPresent |
promo test discount |
|
| assertTextPresent |
Coupon code |
|
| assertTextPresent |
abc1 |
|
| clickAndWait |
link=General Options |
|
| click |
//a[@id='promotions-tab']/span |
|
| type |
new_promo_code |
test2 |
| type |
new_promo_description |
test coupon codes2 |
| select |
new_promo_type |
label=Coupon Codes Shipping Value |
| type |
new_promo_value |
5 |
| clickAndWait |
options_update8 |
|
| clickAndWait |
link=Misc Options |
|
| type |
coupon_set_name |
test2 |
| type |
coupon_file |
/Users/jasonbriggs/Development/yak-for-wordpress/branches/working/test/coupons2.txt |
| clickAndWait |
options_update_coupons |
|
| assertText |
coupon_set_2 |
test2 |
| assertText |
total_2 |
4 |
| assertText |
used_2 |
0 |
| clickAndWait |
link=Visit Site |
|
| clickAndWait |
link=Downloadable product |
|
| clickAndWait |
//button[@name='addbutton'] |
|
| type |
promo_code |
code123 |
| clickAndWait |
buybutton |
|
| clickAndWait |
shippingbutton |
|
| assertTextPresent |
test coupon codes2 |
|
| assertTextPresent |
-5.00 |
|
| clickAndWait |
confirmorderbutton |
|