testToggleableLayoutWidget
setTimeout 120000
open layoutDemo
open layoutDemo/toggleableLayoutWidget
assertTextNotPresent ERROR
verifyTextNotPresent Value is required
verifyElementPresent id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_initialForm:nxl_heading:nxw_title
verifyText id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_initialForm:nxl_heading:nxw_title My title
verifyElementPresent id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_initialForm:nxl_heading:nxw_description
verifyText id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_initialForm:nxl_heading:nxw_description My description
verifyElementPresent id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_headerForm:nxw_toggleableLayoutWidget_header_toggleAction
verifyText id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_headerForm:nxw_toggleableLayoutWidget_header_toggleAction Edit
watchA4jRequests
click id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_headerForm:nxw_toggleableLayoutWidget_header_toggleAction
waitForA4jRequest 10000
verifyElementPresent id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_headerForm:nxw_toggleableLayoutWidget_header_toggleAction
verifyText id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_headerForm:nxw_toggleableLayoutWidget_header_toggleAction Cancel
watchA4jRequests
click id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_headerForm:nxw_toggleableLayoutWidget_header_toggleAction
waitForA4jRequest 10000
verifyElementPresent id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_headerForm:nxw_toggleableLayoutWidget_header_toggleAction
verifyText id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_headerForm:nxw_toggleableLayoutWidget_header_toggleAction Edit
watchA4jRequests
click id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_headerForm:nxw_toggleableLayoutWidget_header_toggleAction
waitForA4jRequest 10000
verifyElementPresent id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxw_toggleableLayoutWidget_cancelToggleAction
verifyValue id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxw_toggleableLayoutWidget_cancelToggleAction Cancel
watchA4jRequests
click id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxw_toggleableLayoutWidget_cancelToggleAction
waitForA4jRequest 10000
watchA4jRequests
click id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_headerForm:nxw_toggleableLayoutWidget_header_toggleAction
waitForA4jRequest 10000
verifyElementPresent id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxw_toggleableLayoutWidget_saveDemoToggleableLayout
verifyValue id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxw_toggleableLayoutWidget_saveDemoToggleableLayout Save
verifyValue id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxl_heading_1:nxw_title_1 My title
verifyValue id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxl_heading_1:nxw_description_1 My description
verifyElementPresent id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxl_demoToggleableLayout:nxw_htmlWidget_ifr
verifyText id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxl_demoToggleableLayout:nxw_htmlWidget_ifr
verifyValue id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxl_demoToggleableLayout:nxw_datetimeWidgetInputDate
verifyValue id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxl_demoToggleableLayout:nxw_intWidget
watchA4jRequests
click id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxw_toggleableLayoutWidget_saveDemoToggleableLayout
waitForA4jRequest 10000
verifyTextPresent Value is required
type id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxl_heading_1:nxw_title_1 My title changed
type id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxl_heading_1:nxw_description_1 My description changed
runScript tinyMCE.activeEditor.setContent('<b>Bold</b> content')
type id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxl_demoToggleableLayout:nxw_datetimeWidgetInputDate 2/9/2015 12:00 PM
type id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxl_demoToggleableLayout:nxw_intWidget 42
watchA4jRequests
click id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxw_toggleableLayoutWidget_saveDemoToggleableLayout
waitForA4jRequest 10000
verifyTextNotPresent Value is required
verifyElementPresent id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_initialForm:nxl_heading:nxw_title
verifyText id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_initialForm:nxl_heading:nxw_title My title changed
verifyElementPresent id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_initialForm:nxl_heading:nxw_description
verifyText id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_initialForm:nxl_heading:nxw_description My description changed
watchA4jRequests
click id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_headerForm:nxw_toggleableLayoutWidget_header_toggleAction
waitForA4jRequest 10000
verifyValue id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxl_heading_1:nxw_title_1 My title changed
verifyValue id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxl_heading_1:nxw_description_1 My description changed
selectFrame id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxl_demoToggleableLayout:nxw_htmlWidget_ifr
verifyText xpath=//p Bold content
selectWindow null
verifyValue id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxl_demoToggleableLayout:nxw_datetimeWidgetInputDate 2/9/2015 12:00 PM
verifyValue id=nxl_toggleableLayout:nxw_toggleableLayoutWidget_toggledForm:nxl_demoToggleableLayout:nxw_intWidget 42