TestCategoryGroupings
open /wp-admin
clickAndWait link=ComicPress
click comicpress-tab-Category_Groups
storeXpathCount //div[@id="category-groups-holder"]/div current_count
click add-new-category-group
storeEval storedVars['current_count']++
waitForElementPresent //div[@id="category-groups-holder"]/div[${current_count}]
storeXpathCount //div[@id="category-groups-holder"]/div new_count
assertEval ${current_count} ${new_count}
assertValue //div[@id="category-groups-holder"]/div[${new_count}]//input[contains(@name, "[name]")] group
click //div[@id="category-groups-holder"]/div[${new_count}]//a[@class="delete-category-group-holder"]
assertConfirmation Are you sure?
waitForElementNotPresent //div[@id="category-groups-holder"]/div[${current_count}]
storeXpathCount //div[@id="category-groups-holder"]/div new_count
assertEval ${current_count} - 1 ${new_count}