testCheckboxWidget
setTimeout 120000
open layoutDemo
open layoutDemo/checkboxWidget
assertTextNotPresent ERROR
verifyValue checkboxWidgetLayout_edit_form:nxl_checkboxWidgetLayout:nxw_checkboxWidget off
watchA4jRequests
click checkboxWidgetLayout_edit_form:checkboxWidgetLayout_edit_form_submitButton
waitForA4jRequest 10000
verifyText checkboxWidgetLayout_view_form:nxl_checkboxWidgetLayout_1:nxw_checkboxWidget_1 No
click checkboxWidgetLayout_edit_form:nxl_checkboxWidgetLayout:nxw_checkboxWidget
watchA4jRequests
click checkboxWidgetLayout_edit_form:checkboxWidgetLayout_edit_form_submitButton
waitForA4jRequest 10000
verifyText checkboxWidgetLayout_view_form:nxl_checkboxWidgetLayout_1:nxw_checkboxWidget_1 Yes
verifyElementPresent link=Checkbox
clickAndWait link=Checkbox
verifyValue checkboxWidgetLayout_edit_form:nxl_checkboxWidgetLayout:nxw_checkboxWidget on
verifyText checkboxWidgetLayout_view_form:nxl_checkboxWidgetLayout_1:nxw_checkboxWidget_1 Yes
open layoutDemo
open layoutDemo/checkboxWidget
verifyValue checkboxWidgetLayout_edit_form:nxl_checkboxWidgetLayout:nxw_checkboxWidget off