-
Functional Test
-
Minor
-
None
-
Original - DO NOT REPORT TEST RESULTS HERE
Set up
- Create a course (Course 1)
- Navigate to the question bank
- Create 2 True/False questions
Sort Column
- Go to the plugin config page (Site Administration > Plugins > Questions bank plugin > Column sort order)
- Using the move icon, drag a column (A) onto the column above (B) :
- Column A should be inserted before column B
- Clicking the move icon should also allow the columns to be re-ordered without dragging. This is also keyboard accessible.
- Reload the page:
- Column A should still be before column B
- Click "Preview"
- The question bank table will be displayed with Column A before column B.
- Go to Course 1 question bank
- Column A should be displayed before column B
- Hover over column B's heading
- Using the move icon, drag a Column B before Column A
- Column B should be inserted before column A
- Expanding the action menu in the column header and clicking "move" also allows the columns to be re-orderd without dragging. This is also keyboard accessible.
- Reload the page:
- Column B should still be before column A
- Go to plugin config page, the change we made in question bank should not be reflected on this page:
- Column B should NOT be before column A
Hide and show column
- Go to plugin config page
- In a column (A)'s table row, expand the action menu and select the Remove action.
- The column should be removed from the list.
- The "Add column" menu should appear above the list of columns, containing the removed column.
- Remove a second column (B).
- Click "Preview"
- The question bank table should be displayed, minus Column A and Column B
- Click "Back"
- Click "Add column" and select Column A.
- Column A should be restored to the list. Column B should not.
- Go to Course 1 question bank.
- The question bank table should contain Column A but not column B.
- In the header for column A, expand the action list and select "Remove".
- Column A should be removed.
- Expand the "Add columns" list and select "Column B"
- Column B should be added to the table, Column A should not.
- Return to the plugin config page
- Column A should still be visible in the list, Column B should not.
Resize column
- Go to the plugin config page
- Enter a width less than 10 for the Question column.
- An error message should be displayed
- Reload the page
- The Question column's with field should show the "Auto" placeholder, the invalid value was not saved.
- Enter a width of 300 for the Question column
- Reload the page
- The value of 300 should still appear for the Question column.
- Click "Preview"
- The Question column should appear at 300px wide.
- Go to Course 1 question bank.
- The Question column should appear at 300px wide.
- Hover over the Question column's header
- Drag the resize handle to make the Question column much wider.
- Expanding the action menu in the column header and clicking "Resize" also allows the columns to be resized without dragging. This is also keyboard accessible.
- Reload the page
- The Question column should still appear at the new wider width.
- Return to the plugin config page
-
- The Question column's width should still show 300.
Reset
- Go to the plugin config page
- Remove some columns, reorder columns and set column widths.
- Go to Course 1 question bank.
- Make further changes to the order, visibility and width of columns.
- Press "Reset columns"
- Columns should return to the state set on the plugin config page.
- Add all hidden columns to the page. This is a special case as it sets the user preference to an empty value, but it should still override the site-level config which is not empty.
- Press "Reset columns"
- Columns should return to the state set on the plugin config page.
- Return to the plugin config page
- Press "Reset columns"
- All columns should be visible, in the original order, with column widths showing the "Auto" placeholder.
- is blocked by
-
MDL-74054 Give teachers more flexibility to customise their own view of the question bank
- Closed