*{ Use the forum as guest }* #{fixture delete:'all', load:'test-data.yml' /} #{selenium 'Use the forum as Guest'} clearSession() // Home page open('/') assertTextPresent('Still not a member ?') assertTextPresent('Forums') assertTextPresent('Users help') assertTextPresent('About this sample application') assertTextPresent('7 posts in 4 topics') // Users list clickAndWait('link=Users') assertTextPresent('Users') assertTextPresent('3 users') assertTextPresent('Admin') assertTextNotPresent('Guillaume') // Next users page clickAndWait('link=Next*') assertTextPresent('Users') assertTextPresent('3 users') assertTextNotPresent('Admin') assertTextPresent('Guillaume') // User detail clickAndWait('link=Guillaume') assertTextPresent('Guillaume') assertTextPresent('Well, it works for me') // Back clickAndWait('link=Users') assertTextNotPresent('Guillaume') assertTextPresent('Users') // Change page clickAndWait('link=2') assertTextNotPresent('Admin') assertTextPresent('Guillaume') clickAndWait('link=1') assertTextNotPresent('Guillaume') assertTextPresent('Admin') // Back to forum clickAndWait('link=Forums') assertTextPresent('Users help') // Go to Play help clickAndWait('link=Play help') assertTextPresent('Play help') assertTextPresent('6 posts in 3 topics') clickAndWait('link=Next*') assertTextPresent('It does not work ...') assertTextNotPresent('New topic') // Go to last post clickAndWait('link=view') assertTextPresent('It does not work ...') assertTextPresent('2 posts by 2 users') // Back clickAndWait('link=Play help') assertTextPresent('Play help') assertTextPresent('6 posts in 3 topics') // Go to last page clickAndWait('link=last page') assertTextPresent('ok for me ... ') // Back clickAndWait('link=1') assertTextPresent('Thank you.') // Jump to users clickAndWait('link=Admin') assertTextPresent('4 posts in 3 topics') assertTextPresent('Héhé') clickAndWait('link=Play help - Please help !') #{/selenium}