Review Competition Edit Form
Acceptance Criteria
General
-
Save and publish saves comp, publishes comp, takes you to comp detail page -
Save as draft saves comp, does not publish it, keeps you on the edit page -
Discard changes takes you back to competition list page and does not save the comp -
Comp edit form can be reached from: -
Competition list page via "edit" button on competition row -
Competition list page via "create" button -
Admin tab of competition detail page
-
Competition Details Tab
-
Can change competition title -
Can change competition logo
Pages Tab
-
Can Add pages -
Can edit page titles and content -
Can delete pages -
Page content for page at index 0 displayed as valid content w/ xss vulnerabilities removed -
can write html
-
Phases Tab
-
reordering phases changes phase index
Phase Edit modal
Phase details tab
-
Change name (required) -
Change Description (required) -
Change start (required) -
Change end -
Valid when all required fields met
Phase Data tab
-
Dataset manager button takes you to dataset management page in new tab -
Task Manager button takes you to Task management page in new tab -
Toggle to change between dataset and task/solution style phase. Loads w/ correct value on edit
Toggled off (not task/solution)
-
dataset selection form should be present -
filled with correct values if editing
-
on
(is task/solution)
Toggled -
Should not save any values in dataset form fields -
Task multi-select field present -
Preselects correct data on edit -
Appropriately searches -
Can select and save multiple tasks -
On edit, can add tasks to phase that already has tasks
-
Data Tab Validation
-
Data tab should validate properly (i.e. save button enabled) -
when task/solution toggle is off and scoring program
dataset is set or -
when task/solution is on and Tasks field has at least 1 value
-
Leaderboard Tab
-
when unsetting a previously set computation field, also unset computation indexes -
when setting computation field, correctly save computation indexes -
correctly fill leaderboard column key when editing leaderboard -
correctly select primary column radio button on edit -
changing primary index radio actually changes primary index
Collaborator Tab
-
Selected collaborators listed in table -
Can remove collabs from table -
Search for collabs by username as normal user -
Search for collabs by complete match email address for normal user -
Search for collabs by email partial match for admin -
field errors for adding collab who is already added -
field errors for trying to add yourself as collab -
field errors for trying to add comp creator as collab