#{extends 'test/AbstractTest.html' /}
#{selenium}
open('/')
waitForCondition('var w = selenium.browserbot.getCurrentWindow(); w.jQuery && w.jQuery.active == 0', 2000)
clickAndWait('new')
waitForCondition('var w = selenium.browserbot.getCurrentWindow(); w.jQuery && w.jQuery.active == 0', 2000)
assertValue('name', '')
assertValue('contents', '')
type('name', 'note 4')
type('contents', 'note 4 contents')
clickAndWait('save')
// Back to list
assertTextPresent('note 4')
clickAndWait('link=note 4')
waitForCondition('var w = selenium.browserbot.getCurrentWindow(); w.jQuery && w.jQuery.active == 0', 2000)
assertValue('name', 'note 4')
assertValue('contents', 'note 4 contents')
#{/selenium}