| deleteAllVisibleCookies |
|
|
| open |
wp-admin |
|
| clickAndWait |
//li[@id='menu-users']/div[3]/ul/li[2]/a |
|
| clickAndWait |
link=Yak |
|
| click |
//div[@id='tabs']/ul/li[9]/a/span |
|
| type |
promo_code[] |
sh1 |
| type |
promo_description[] |
shipping % |
| type |
promo_value[] |
10 |
| click |
//button[@type='button' and @onclick="javascript:copyRow('#promotions')"] |
|
| type |
//table[@id='promotions']/tbody/tr[3]/td[1]/input[1] |
sh2 |
| type |
//table[@id='promotions']/tbody/tr[3]/td[2]/input |
shipping val |
| select |
//table[@id='promotions']/tbody/tr[3]/td[3]/select |
label=Shipping Value |
| type |
//table[@id='promotions']/tbody/tr[3]/td[4]/input |
5 |
| click |
//button[@type='button' and @onclick="javascript:copyRow('#promotions')"] |
|
| type |
//table[@id='promotions']/tbody/tr[4]/td[1]/input[1] |
pr1 |
| type |
//table[@id='promotions']/tbody/tr[4]/td[2]/input |
price % |
| select |
//table[@id='promotions']/tbody/tr[4]/td[3]/select |
label=Pricing % |
| type |
//table[@id='promotions']/tbody/tr[4]/td[4]/input |
10 |
| click |
//button[@type='button' and @onclick="javascript:copyRow('#promotions')"] |
|
| type |
//table[@id='promotions']/tbody/tr[5]/td[1]/input[1] |
pr2 |
| type |
//table[@id='promotions']/tbody/tr[5]/td[2]/input |
price val |
| select |
//table[@id='promotions']/tbody/tr[5]/td[3]/select |
label=Pricing Value |
| type |
//table[@id='promotions']/tbody/tr[5]/td[4]/input |
5 |
| click |
//button[@type='button' and @onclick="javascript:copyRow('#promotions')"] |
|
| type |
//table[@id='promotions']/tbody/tr[6]/td[1]/input[1] |
user |
| type |
//table[@id='promotions']/tbody/tr[6]/td[1]/input[3] |
tester |
| type |
//table[@id='promotions']/tbody/tr[6]/td[2]/input |
user |
| type |
//table[@id='promotions']/tbody/tr[6]/td[4]/input |
10 |
| click |
options_update9 |
|
| clickAndWait |
link=Visit Site |
|
| clickAndWait |
addbutton |
|
| type |
promo_code |
PR1 |
| clickAndWait |
buybutton |
|
| type |
shipping_recipient |
Joe Bloggs |
| type |
shipping_email |
devtest1@afillyateit.com |
| type |
shipping_phone |
12345 |
| type |
shipping_addr1 |
12 St Leonard's Road |
| type |
shipping_suburb |
Testville |
| type |
shipping_city |
Testington |
| type |
shipping_postcode |
12345 |
| clickAndWait |
billingbutton |
|
| assertTextPresent |
Total Discount (pr1 - price %) |
|
| assertTextPresent |
-2,00 |
|
| assertTextPresent |
$23,00 |
|
| clickAndWait |
link=Checkout |
|
| type |
promo_code |
PR2 |
| clickAndWait |
buybutton |
|
| clickAndWait |
shippingbutton |
|
| assertTextPresent |
Total Discount (pr2 - price val) |
|
| assertTextPresent |
-5,00 |
|
| assertTextPresent |
$20,00 |
|
| clickAndWait |
link=Checkout |
|
| type |
promo_code |
SH1 |
| clickAndWait |
buybutton |
|
| clickAndWait |
shippingbutton |
|
| assertTextPresent |
Total Discount (sh1 - shipping %) |
|
| assertTextPresent |
-0,50 |
|
| assertTextPresent |
$24,50 |
|
| clickAndWait |
link=Checkout |
|
| type |
promo_code |
SH2 |
| clickAndWait |
buybutton |
|
| clickAndWait |
shippingbutton |
|
| assertTextPresent |
Total Discount (sh2 - shipping val) |
|
| assertTextPresent |
-5,00 |
|
| assertTextPresent |
$20,00 |
|
| clickAndWait |
link=Checkout |
|
| type |
promo_code |
user |
| clickAndWait |
buybutton |
|
| assertTextPresent |
You don't have access to this promotion code |
|
| clickAndWait |
link=Log out |
|
| openAndWait |
|
|
| clickAndWait |
link=Checkout |
|
| type |
promo_code |
user |
| clickAndWait |
buybutton |
|
| assertTextPresent |
You don't have access to this promotion code |
|
| open |
wp-login.php |
|
| type |
user_login |
tester |
| type |
user_pass |
p@55w0rd |
| clickAndWait |
wp-submit |
|
| openAndWait |
|
|
| clickAndWait |
link=Checkout |
|
| type |
promo_code |
user |
| clickAndWait |
buybutton |
|
| assertTextNotPresent |
You don't have access to this promotion code |
|
| clickAndWait |
shippingbutton |
|
| assertTextPresent |
Total Discount (user - user) |
|
| assertTextPresent |
-0,50 |
|
| assertTextPresent |
$24,50 |
|
| clickAndWait |
link=Log out |
|