#{fixture delete:'all', load:'data.yml' /} #{selenium 'Post a new job'} // Hop open('/') clearSession() // Must be on the default 'Development' category now assertText('css=a.selected', 'Development') assertTextPresent('Play developper wanted at Zenexity - Paris') assertTextPresent('PHP developper wanted at Google - Chicago') // Go to admin area open('@{Administration.index()}') assertTextPresent('Administration, login') type('email', 'test') type('password', 'test') clickAndWait('signin') assertTextPresent('Tags') assertTextPresent('Jobs') assertTextPresent('Companies') assertTextPresent('Categories') #{/selenium}