-
Functional Test
-
Minor
-
Moodle 4.1
This test requires admin access.
Setup
- Login as admin.
- Go to Site administration > Advanced features and Enable portfolios.
- Go to Site administration > Plugins > Portfolios > Manage portfolios and select "Enabled and visible" for the "File download" portfolio.
- Create a topics format course with at least a student and a teacher
- Add enough activities to the course to have scroll in the course index drawer.
- Add enough blocks to the course to have scroll in the blocks drawer
- Create a database activity "Testing Database improvements" in the course.
Zero state pages
- Login as teacher and go to "Testing Database improvements" Database activity
- Confirm the page looks similar to attached teacher_view_zero_state.png image
- Navigate to Fields tab and confirm the page looks similar to attached teacher_fields_zero_state.png image
- Navigate to Templates tab and confirm the page looks similar to attached teacher_templates_zero_state.png image
- Log in as student and go to "Testing Database improvements" Database activity
- Confirm the page looks similar to attached student_view_zero_state.png image
- Login as teacher and go to "Testing Database improvements" Database activity
- Navigate to Presets, select "Image gallery" and click the "Use preset" button
- Navigate to Database tab and confirm the page looks similar to attached teacher_no_entries.png image
- Log in as student and go to "Zero state page" Database activity
- Confirm the page looks similar to attached student_no_entries.png image.
- Add some entries to the database (at least 2).
Sticky footer
- Log in as teacher and go to"Testing Database improvements" Database activity
- Navigate through Database, Fieds, Templates and Presets tabs on Database secondary navigation and check:
- Wait until the sticky footer appears.
- Open the course index drawer and check that the last activity of the course is visible when you scroll down to the bottom of the course index drawer.
- Open the blocks drawer and check the last block is fully visible when you scroll down to the bottom of the blocks drawer.
- Open the messaging drawer and check the messaging drawer appears on top of the sticky footer.
- Navigate to Presets and click on the "Use a preset" button and check the page has a sticky footer with the "Use a preset" button dimmed.
- Select the radio button from "Journal" and check the "Use a preset" button is enabled now
- Click on the "Use a preset" button and check the "Fields mapping" form has the "Cancel" and "Continue" buttons in the sticky footer.
- Click on the "Cancel" button and check you are again on the presets page
- Click the "Image gallery" preset name and check the preset preview has the "Use a preset" button in the sticky footer
- Click on the "Use a preset" button and accept the default mappings
- Go to the "Database" tab and go to add entry and Check you have the cancel, save and "Save and add another" buttons in the sticky footer.
- Add some image to the image field and click on the "Save and add another" and check you go again to the New entry form
- Add at least 3 more entries.
- Upload another image in the New entry form and click on "Save" this time
- Check you are now on "Single view" and the pagination and the "Add entry" button is in the sticky footer
- Go to Templates tab and navigate to "List template"
- Check you have "Reset" and "Save" option in the sticky footer.
- Add ##delcheck## tag just before the [[title]] at the Repeated entry editor and "Save" template.
- Go to "List view" and check you have at least the Select all, delete and add entry button in the sticky footer
- Change the "Entries per page" to 2 and click on Save settings
- Check that now you have also the pagination in the sticky footer
- Go to the Fields tab and check you have a "View templates" link in the sticky footer
- Click on the 3-dots icon, select Edit icon from the title field and check the Save and cancel buttons are in the sticky footer
- Change the field name to title2 and click the save button
- Check you are now in the fields list page again and the title field is now title2
- Click on the sticky footer's "View templates" link
- Check you are now in the templates tab and that you have the "reset template", "save template" and the "enable editor" in the sticky footer
Navigation
- Navigate to "Templates" tab
- Check the secondary navigation displays Presets before Fields and Templates.
- Check the List view and the Actions menu is displayed in the tertiary navigation.
- Click the "Advanced search" checkbox.
- Check the "Save settings" secondary button is hidden (and only the "Save settings" primary button is displayed).
- Go to the "Presets" page and check the "Actions" menu is displayed in the tertiary navigation.
- Check there is no "Actions" column in the table (near the Description).
- Click "Image gallery" name to preview this preset and check the List/single template action menu is aligned to the right.
- Also check the preset description is not displayed and "Use this preset" is displayed as the primary button.
- Go to the "Fields" page.
- Check the Create a new field is displayed in the tertiary navigation, aligned to the right.
- Check the Save as preset and Export preset buttons are not displayed anymore.
- Check there is no "Manage fields" actions menu. Besides, the "Manage fields" should be displayed as a heading in the tertiary navigation.
- Check there is no "Actions" column in the table (near the Field description).
- Check the actions for each field (Edit and Delete) are displayed in a kebab menu.
- Go to the "Templates" page.
- Check the "Add entry template" menu in the tertiary navigation is selected by default and confirm this selector has the following elements (in the same order):
- Add entry template
- Single view template
- List view template
- Advanced search template
- CSS template
- Javascript template
- RSS template
- Check the Actions menu is displayed in the tertiary navigation, aligned to the right.