| test-alternate-product-category | ||
| openAndWait | wp-admin | |
| waitForElementPresent | link=Categories | |
| clickAndWait | link=Categories | |
| type | tag-name | alt-product-cat |
| click | submit | |
| waitForTextPresent | alt-product-cat | |
| type | tag-name | another-default-prod |
| select | parent | label=alt-product-cat |
| click | submit | |
| waitForTextPresent | another-default-prod | |
| clickAndWait | link=General Options | |
| click | basic-tab | |
| select | yak_product_category_name | label=alt-product-cat |
| clickAndWait | options_update2 | |
| clickAndWait | link=Add New | |
| type | title | test-prod-alt-category |
| click | content-html | |
| type | content | test product with alternate products category [yak_price] [yak_buy] |
| type | yak_price | 100 |
| click | //button[@type='button'] | |
| select | newtype_[] | label=another-default-prod |
| type | newtype_qty_[] | 1000 |
| clickAndWait | publish | |
| clickAndWait | link=View post | |
| assertTextPresent | $100.00 | |
| clickAndWait | //button[@name='addbutton'] | |
| assertTextPresent | test-prod-alt-category | |
| assertTextPresent | (another-default-prod) | |
| clickAndWait | //button[contains(@id, 'deletebutton_')] | |
| open | wp-admin | |
| clickAndWait | link=General Options | |
| click | basic-tab | |
| select | yak_product_category_name | label=products |
| clickAndWait | options_update2 | |
| clickAndWait | link=Categories | |
| click | delete_tags[] | |
| click | //input[@name='delete_tags[]' and @value='6'] | |
| select | action | label=Delete |
| clickAndWait | doaction | |