This spec tests the layout of both Custom Status and Generic Status controls.
Power Users have the option to develop Custom Statuses for a Form, and layout of those Statuses depends on the Layout selected.
If Custom Statuses are not enabled, then the form defaults to Generic Statuses.
This spec verifies that given the enabling of Custom Statuses (or not) that the expected Custom or Generic Status Lists are rendered correctly.
It is important to note that this spec is specifically focused on the layout of Status Routing controls. The functionality of Status Routing is covered by Decision/StatusRouting.
- Ensures that Status Routing buttons are rendered when using SLS-Standard layout and status routing with the following test cases:
- An Import Form with Custom Statuses and Status Routing rendered via SLS-Standard layout:
- should have a span element with an id of "formStatusButtons"
- This ensures that the correct button template has been rendered
- should have "TestingStatusRouting" button
- The form generated for this spec has a Status of 'TestingStatusRouting', which would be expected to render on the page
- Ensures that Status Dropdown is rendered and is only populated with Custom Statuses when Custom Statuses is selected, and SLS-Standard layout is not selected via the following test cases:
- An Import Form with Custom Statuses:
- should have a select element with an id of "Status"
- the Status select element should have data options:Object="ImportForm", ObjectID=ImportFormTemplateID
- should have the same number of options as a query result for Object="ImportForm" and ObjectID=ImportFormTemplateID
- should have "TestingStatusRouting" available as on option
- Ensures that Status Dropdown is rendered and is only populated with Generic Statuses when Custom Statuses is NOT selected, by verifying the following test cases:
- Import Form with Generic Statuses:
- should have a select element with an id of "Status"
- the select element should have data options:Object="ImportForm", ObjectID=null
- should have the same number of options as a query result for Object = ImportForm
|