-
Functional Test
-
Moodle 2.5
-
None
Test pre-requisites:
- One course in Moodle.
- Teacher access to it.
- Javascript enabled.
Test steps:
- Login as teacher and acces to the course.
- Turn edit on.
- Pick "Add an activity or resource" in any section.
- Test: one dialog is shown with all the available resources and activities.
- Click on the "Book" radio button.
- Test: one correct description of the book module is shown in the right pane of the dialog.
- Click the "Add" button.
- Test: One moodle form is show under the heading "Adding a new Book".
- Test: At least the following fields are available to be configured: name, summary, display description on course page, chapter numbering and custom titles.
- Introduce the following information in the form:
- name: "test book"
- description: "test book description" (make it bold in the editor).
- display description on course page: checked.
- chapter numbering: "numbers".
- custom tiles: checked.
- Click the "Save and return to course" button.
- Test: the book with the introduced name is shown in the course page.
- Test: Below the name of the activity, the introduced description (bold) is shown.
- Click in the activity name.
- Test: the browser is redirected to one "Editing chapter" form that allows you to introduce, at least: Chapter title, subchapter and content.
- Introduce the following information in the form:
- title: "my first chapter".
- subchapter: unchecked.
- description: any original content you can imagine, with some image.
- Click the "Save changes" button.
- Test: One page with the contents introduced is shown. The title of the chapter is not shown in the contents.
- Test: One the left one block with the title "Table of contents" is shown.
- Test: The block has one item, with the number "1" followed by the title entered.
- Test: On the right of the item, there are multiple icons: edit, delete, hide and add.
- Test: The "Settings" block shows these options at the end: Import from HTML, Print book, Print this chapter, Turn editing off.
- Click the "Turn editing off" option in the "Settings" block.
- Test: The "Table of contents" now does not show any icon. Only "1" followed by the title.