| test-grouped-multiselect | ||
| open | wp-admin | |
| clickAndWait | link=Add New | |
| type | title | grouped multi-select options |
| type | content | test grouped multi-select options [yak_buy] |
| type | yak_price | 100 |
| type | yak_multi_select | TITLE,this is a test1 option1,http://testhost/wordpress/wp-content/uploads/2010/10/thumbnail-119x150.jpg option2,http://testhost/wordpress/wp-content/uploads/2010/10/thumbnail-119x150.jpg option3,http://testhost/wordpress/wp-content/uploads/2010/10/thumbnail-119x150.jpg option4,http://testhost/wordpress/wp-content/uploads/2010/10/thumbnail-119x150.jpg TITLE,this is a test 2 optionA,http://testhost/wordpress/wp-content/uploads/2010/10/thumbnail-119x150.jpg optionB,http://testhost/wordpress/wp-content/uploads/2010/10/thumbnail-119x150.jpg optionC,http://testhost/wordpress/wp-content/uploads/2010/10/thumbnail-119x150.jpg |
| type | yak_multi_select_min | 1 |
| type | yak_multi_select_max | 1 |
| click | //button[@type='button'] | |
| select | newtype_[] | label=default |
| type | newtype_qty_[] | 10000 |
| clickAndWait | publish | |
| clickAndWait | link=View post | |
| assertTextPresent | this is a test1 | |
| assertTextPresent | this is a test 2 | |
| click | //button[@name='addbutton'] | |
| click | multiselect1[] | |
| click | //input[@name='multiselect1[]' and @value='option2'] | |
| click | multiselect2[] | |
| click | //button[@name='addbutton'] | |
| assertTextNotPresent | How would you like to pay? | |
| click | //input[@name='multiselect1[]' and @value='option2'] | |
| clickAndWait | //button[@name='addbutton'] | |
| assertTextPresent | How would you like to pay? | |
| clickAndWait | buybutton | |
| clickAndWait | shippingbutton | |
| assertTextPresent | option1 | |
| assertTextPresent | optionA | |
| clickAndWait | confirmorderbutton | |
| open | wp-admin | |
| clickAndWait | link=Orders | |
| clickAndWait | orders_query | |
| click | link=Details | |
| assertTextPresent | grouped multi-select options item1 | |
| assertTextPresent | grouped multi-select options item2 | |
| assertTextPresent | option1 | |
| assertTextPresent | optionA | |