#{fixture delete:'all', load:'selenium/tag.test.yml'/} #{selenium} // Verify that all the menu items are invisible open('/tagtest') waitForPageToLoad(1000) assertElementNotPresent('tagTestMenu1') assertElementNotPresent('tagTestMenu2') assertElementNotPresent('tagTestMenu3') assertElementNotPresent('tagTestMenu4') // Verify that all the features that have been created are shown in the db open('/admin/features') waitForPageToLoad(1000) assertElementPresent('tagTestMenu1Tr') assertElementPresent('tagTestMenu2Tr') assertElementPresent('tagTestMenu3Tr') assertElementPresent('tagTestMenu4Tr') // Verify that the features are all OFF (see tag.test.yml) assertText('tagTestMenu1StatusTd', 'OFF') assertText('tagTestMenu2StatusTd', 'OFF') assertText('tagTestMenu3StatusTd', 'OFF') assertText('tagTestMenu4StatusTd', 'OFF') // switch on feature 1 and 3 click('tagTestMenu1Switcher') waitForPageToLoad(1000) click('tagTestMenu3Switcher') waitForPageToLoad(1000) // Verify that Features 1 and 3 are ON and that 2 and 4 are still OFF assertText('tagTestMenu1StatusTd', 'ON') assertText('tagTestMenu2StatusTd', 'OFF') assertText('tagTestMenu3StatusTd', 'ON') assertText('tagTestMenu4StatusTd', 'OFF') // Verify that the menu items 1 and 3 are visible, and that item 2 and 4 are invisible open('/tagtest') waitForPageToLoad(1000) assertElementPresent('tagTestMenu1') assertElementNotPresent('tagTestMenu2') assertElementPresent('tagTestMenu3') assertElementNotPresent('tagTestMenu4') #{/selenium}