| check-downloadable-products | ||
| open | wp-admin | |
| clickAndWait | link=Plugins | |
| clickAndWait | //a[contains(@href, 'wp_mail_smtp')] | |
| clickAndWait | link=Email | |
| click | mailer_smtp | |
| type | smtp_host | ${smtpHost} |
| type | smtp_port | 25 |
| click | smtp_ssl_none | |
| click | smtp_auth_true | |
| type | smtp_user | ${smtpUsername} |
| type | smtp_pass | ${smtpPassword} |
| clickAndWait | submit | |
| click | //li[@id='menu-posts']/div[2] | |
| clickAndWait | link=Add New | |
| type | title | Downloadable product |
| type | content | Test downloadable product [yak_price] [yak_buy] |
| type | yak_price | 25 |
| click | //button[@type='button'] | |
| select | newtype_[] | label=default |
| type | newtype_qty_[] | 100000 |
| type | newtype_dl_file_[] | ${testDownloadFile} |
| clickAndWait | publish | |
| clickAndWait | link=General Options | |
| click | download-tab | |
| type | yak_download_email | Test download email [downloads] |
| type | yak_download_email_address | joebloggs@test.com |
| clickAndWait | options_update4 | |
| clickAndWait | link=Visit Site | |
| clickAndWait | //button[@name='addbutton'] | |
| select | payment_type | label=Credit Card (auth.net) |
| clickAndWait | buybutton | |
| click | editaddress | |
| type | //input[@name='shipping_email'] | ${downloadEmail} |
| clickAndWait | billingbutton | |
| type | cc_number | 4111111111111111 |
| type | cc_security_code | 000 |
| type | cc_name | JOE BLOGGS |
| select | cc_expiry_year | label=2022 |
| clickAndWait | confirmbutton | |
| clickAndWait | confirmorderbutton | |
| open | wp-content/plugins/yak-test-mailer.php | |
| clickAndWait | link=1 | |
| assertTextPresent | yak-dl.php?uid= | |
| open | wp-admin | |
| clickAndWait | link=Orders | |
| select | status | label=show fulfilled orders |
| clickAndWait | orders_query | |
| clickAndWait | link=General Options | |
| click | css=#download-tab > span | |
| click | name=yak_download_use_xsendfile | |
| clickAndWait | name=options_update4 | |
| clickAndWait | link=Visit Site | |
| clickAndWait | link=Downloadable product | |
| clickAndWait | //button[@name='addbutton'] | |
| select | payment_type | label=Credit Card (auth.net) |
| clickAndWait | buybutton | |
| click | editaddress | |
| type | //input[@name='shipping_email'] | ${downloadEmail} |
| clickAndWait | billingbutton | |
| type | cc_number | 4111111111111111 |
| type | cc_security_code | 000 |
| type | cc_name | JOE BLOGGS |
| select | cc_expiry_year | label=2022 |
| clickAndWait | confirmbutton | |
| clickAndWait | confirmorderbutton | |
| open | wp-content/plugins/yak-test-mailer.php | |
| clickAndWait | link=3 | |
| assertTextPresent | yak-dl.php?uid= | |