Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.11, 4.0
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
MDL-69918-master -
Hide
These testing instructions are mostly a smoke test. It would be impossible to test every form, but these represent a sample.
Admin settings
- Log in as admin
- Navigate to Site administration -> Plugins -> Activity modules -> URL
- Refresh the page
- Confirm that you weren't shown a warning about form changes
- For each of the following, change the value and without clicking off the element, refresh the page (please ensure that you do reload the page between each test):
- Frame height
- Include role names in parameters
- Available display options
- Display
- Confirm that you were shown a warning about form changes
Note: The Password unmask field type does not currently fully support the Form change checker
That is covered by a separate bug (MDL-71046)
Feedback activity
- Create a new feedback activity
- Click on "Edit questions"
- Under 'Add question', choose "Short text answer"
- Confirm that you weren't shown a warning about form changes
- Fill in the form but do not press "Save question"
- Press the Refresh button
- Confirm that you were shown a warning about form changes
- Click cancel to stay on the page
- Click on "Dashboard" in the menu
- Confirm that you were shown a warning about form changes
- Click cancel to stay on the page
- Click on "Dashboard" again in the menu
- Confirm that you do want to leave the page
- Confirm that you were moved away
Editor autosave
- Login as a teacher/admin
- Navigate to a course
- From the dropdown menu, choose "Edit settings" for the course
- In the "Course summary" enter some text
Note: This should be an Atto editor. If it is not, you may need to change he Text format to HTML and then save changes, then edit the course settings again - Wait for about 30 seconds until a notice underneath the editor states "Draft saved."
- Press the Refresh button on the page (confirm that you want to leave)
- Confirm that the value you had stored in the editor is restored
- Press the Refresh button on the page
- Confirm that you weren't shown a warning about form changes
Data privacy
- Login as admin
- Navigate to Site administration -> Users -> Privacy and policies -> Data registry
- Press the "+" button for a Category to create a new category
- Type in a name
- Press the Refresh button on the page
- Confirm that you were shown a warning about form changes
- Press the cancel button in the prompt to stay on the page
- Press the cancel button in the modal to cancel adding a new Category
- Press the Refresh button on the page
- Confirm that you weren't shown a warning about form changes
- Press the "+" button for a Category to create a new category
- Type in a name
- Save changes
- Press the Refresh button on the page
- Confirm that you weren't shown a warning about form changes
- Press the "+" button for a Purpose to create a new Purpose
- Type in a namee
- Press the Refresh button on the page
- Confirm that you were shown a warning about form changes
- Press the cancel button in the prompt to stay on the page
- Press the cancel button in the modal to cancel adding a new Purpose
- Press the Refresh button on the page
- Confirm that you weren't shown a warning about form changes
- Press the "+" button for a Purpose to create a new Purpose
- Type in a name and select a lawful base
- Save changes
- Press the Refresh button on the page
- Confirm that you weren't shown a warning about form changes
- Add an additional Category and Purpose
- From the "Site" page:
- Select a different category and purpose but do not save changes
- Refresh the page
- Confirm that you were shown a warning about form changes
Data policy
- Login as admin
- Navigate to Site administration -> Users -> Privacy and policies -> Policy settings
- Set "Site policy handler" to "Policies (tool_policy)"
- Save changes
- Navigate to Site administration -> Users -> Privacy and policies -> Manage policies
- Create a new policy:
- Name:
MDL-69918 - Summary: Lorem ipsum
- Full policy: Lorem ipsum
- Policy status: Active
- Name:
- Press Save
- Click on the "0 of x (0%)" link to view the list of users who have accepted it
- Press "Accept" for a user
- Type in a remark
- Press the Refresh button on the page
- Confirm that you were shown a warning about form changes
- Press the cancel button in the prompt to stay on the page
- Press the cancel button in the modal to close the modal without aggreeing
- Press the Refresh button on the page
- Confirm that you weren't shown a warning about form changes
- Press "Accept" for a user
- Type in a remark
- Save changes
- Press the Refresh button on the page
- Confirm that you weren't shown a warning about form changes
Course completion
- Login as an admin/teacher
- Create or open a course
- Edit course settings
- Set Completion tracking -> Enable completion tracking to "Yes"
- Save changes
- From the course cog menu, choose "Course completion"
- At the top click on the "Bulk edit activity completion" tab
- Press the Refresh button on the page
- Confirm that you weren't shown a warning about form changes
- Click on at least one checkbox (one/many/all)
- Press the Refresh button on the page
- Confirm that you were shown a warning about form changes
- At the top click on the "Default activity completion" tab
- Press the Refresh button on the page
- Confirm that you weren't shown a warning about form changes
- Click on at least one checkbox (one/many/all)
- Press the Refresh button on the page
- Confirm that you were shown a warning about form changes
- Press cancel to remain on the page
- Press the "Edit" button
- Confirm that the edit page was shown instead
- Confirm that you weren't shown a warning about form changes
Grade setup
- Login as an admin/teacher
- Create a course or take an existing course
- Create an assignment
- Choose Grades in the left-hand menu
- Choose Setup
- Press the Refresh button on the page
- Confirm that you weren't shown a warning about form changes
- Click on at least one checkbox (one/many/all)
- Press the Refresh button on the page
- Confirm that you were shown a warning about form changes
- Choose the "View" tab"
- Turn editing on
- Press the Refresh button on the page
- Confirm that you weren't shown a warning about form changes
- Enter a value for one user but do not save changes
- Press the Refresh button on the page
- Confirm that you were shown a warning about form changes
- Press cancel to remain on the page
- Press the save changes button
- Confirm that the page refreshed
- Confirm that you weren't shown a warning about form changes
Autocompletion
- Login as an admin/teacher and navigate to a course
- Edit the course settings
- Expand the "Tags" section
- Type a value into the "Tags":
- DO NOT click away, press enter, etc.
- Press the Refresh button (Ctrl+R, F5, etc)
- Confirm that you were shown a warning about form changes
- Press cancel to remain on the page
- Add the new tag
- Press the save changes button
- Confirm that you weren't shown a warning about form changes
Private files
- From the drawer navigation on the left choose "Private files"
- Upload a file
- Press the Refresh button (Ctrl+R, F5, etc)
- Confirm that you were shown a warning about form changes
- Press cancel to remain on the page
- Press the save changes button
- Confirm that you weren't shown a warning about form changes
- Open your user Dashboard
- Choose "Manage private files"
- Upload a file
- Press the Refresh button (Ctrl+R, F5, etc)
- Confirm that you were shown a warning about form changes
- Press cancel to remain on the page
- Close the Manage private files dialogue
- Press the Refresh button (Ctrl+R, F5, etc)
- Confirm that you weren't shown a warning about form changes
- Choose "Manage private files"
- Upload a file
- Save changes
- Confirm that you weren't shown a warning about form changes
- Press the Refresh button (Ctrl+R, F5, etc)
- Confirm that you weren't shown a warning about form changes
File manager
- Login as an admin/teacher
- Navigate to a course
- From the cog, choose "Edit settings"
- Upload an image to "Course image"
- Press the Refresh button (Ctrl+R, F5, etc)
- Confirm that you were shown a warning about form changes
- Press "Save and display"
- Confirm that you weren't shown a warning about form changes
- Edit the course settings again
- Delete the file from the course image
- Press the Refresh button (Ctrl+R, F5, etc)
- Confirm that you were shown a warning about form changes
- Press cancel to remain on the page
- Press "Save and display"
- Confirm that you weren't shown a warning about form changes
Assignment grading
- Login as an admin/teacher
- Create a course or take an existing course and enrol some users
- Create an assignment
- Open the assignment and press "Grade users"
- Enter a grade, or some feedback
- Press the Refresh button (Ctrl+R, F5, etc)
- Confirm that you were shown a warning about form changes
- Press cancel to remain on the page
- Save changes
- Confirm that you weren't shown a warning about form changes
- Press the Refresh button (Ctrl+R, F5, etc)
- Confirm that you weren't shown a warning about form changes
Relative dates
- Navigate to Site administration -> Development -> Experimental -> Experimental settings
- Enable course relative dates and save changes
- Navigate to Site administration -> Courses -> Add a new course
- Create a new course and set:
- Enrol some users in the course
- Create a new assignment
- View the assignment
- From the cog menu choose "User overrides"
- Choose a user
- Confirm that you weren't shown a warning about form changes
- Change the "Allow submissions from" date
- Press the Refresh button (Ctrl+R, F5, etc)
- Confirm that you were shown a warning about form changes
- Press cancel to remain on the page
- Save changes
- Confirm that you weren't shown a warning about form changes
Forum
- Login as a teacher or admin
- Navigate to a course
- Create a forum
- Create a new discussion
- View the discussion
- Click on the "Reply" button
- Press the Refresh button (Ctrl+R, F5, etc)
- Confirm that you weren't shown a warning about form changes
- Click on the "Reply" button
- Enter a value but do not click "Post to forum"
- Press the Refresh button (Ctrl+R, F5, etc)
- Confirm that you were shown a warning about form changes
- Press cancel to remain on the page
- Post to the forum
- Confirm that you weren't shown a warning about form changes
- Open the user menu and choose "Preferences"
- Choose "Forum preferences"
- Set the value "Use experimental nested discussion view" to "Yes"
- Save changes
- Repeat the steps 5 - 12 with the new format
Forum Part 2
After completing the previous section:
- Open the forum to the discussion list
- From the forum cog menu choose "Forum summary report"
- Press the Refresh button (Ctrl+R, F5, etc)
- Confirm that you weren't shown a warning about form changes
- Press the "Dates" button
- Press the Refresh button (Ctrl+R, F5, etc)
- Confirm that you weren't shown a warning about form changes
- Press the "Dates" button
- Toggle one of the "Enable" checkboxes
- Press the Refresh button (Ctrl+R, F5, etc)
- Confirm that you were shown a warning about form changes
Quiz
- Create a new quiz:
- Set a time limit of 30 seconds
- Create a question in the quiz
- Attempt the quiz
- Press the Refresh button (Ctrl+R, F5, etc)
- Confirm that you weren't shown a warning about form changes
- Choose a value for the question, but do not save it
- Press the Refresh button (Ctrl+R, F5, etc)
- Confirm that you were shown a warning about form changes
- Press cancel to remain on the page
- Wait 30 seconds for the quiz to time out
- Confirm that you weren't shown a warning about form changes
- Confirm that you were redirected to the review page
- Attempt the quiz again
- Select a value
- Submit your attempt
- Confirm that you weren't shown a warning about form changes
ShowThese testing instructions are mostly a smoke test. It would be impossible to test every form, but these represent a sample. Admin settings Log in as admin Navigate to Site administration -> Plugins -> Activity modules -> URL Refresh the page Confirm that you weren't shown a warning about form changes For each of the following, change the value and without clicking off the element, refresh the page (please ensure that you do reload the page between each test): Frame height Include role names in parameters Available display options Display Confirm that you were shown a warning about form changes Note: The Password unmask field type does not currently fully support the Form change checker That is covered by a separate bug ( MDL-71046 ) Feedback activity Create a new feedback activity Click on "Edit questions" Under 'Add question', choose "Short text answer" Confirm that you weren't shown a warning about form changes Fill in the form but do not press "Save question" Press the Refresh button Confirm that you were shown a warning about form changes Click cancel to stay on the page Click on "Dashboard" in the menu Confirm that you were shown a warning about form changes Click cancel to stay on the page Click on "Dashboard" again in the menu Confirm that you do want to leave the page Confirm that you were moved away Editor autosave Login as a teacher/admin Navigate to a course From the dropdown menu, choose "Edit settings" for the course In the "Course summary" enter some text Note: This should be an Atto editor. If it is not, you may need to change he Text format to HTML and then save changes, then edit the course settings again Wait for about 30 seconds until a notice underneath the editor states "Draft saved." Press the Refresh button on the page (confirm that you want to leave) Confirm that the value you had stored in the editor is restored Press the Refresh button on the page Confirm that you weren't shown a warning about form changes Data privacy Login as admin Navigate to Site administration -> Users -> Privacy and policies -> Data registry Press the "+" button for a Category to create a new category Type in a name Press the Refresh button on the page Confirm that you were shown a warning about form changes Press the cancel button in the prompt to stay on the page Press the cancel button in the modal to cancel adding a new Category Press the Refresh button on the page Confirm that you weren't shown a warning about form changes Press the "+" button for a Category to create a new category Type in a name Save changes Press the Refresh button on the page Confirm that you weren't shown a warning about form changes Press the "+" button for a Purpose to create a new Purpose Type in a namee Press the Refresh button on the page Confirm that you were shown a warning about form changes Press the cancel button in the prompt to stay on the page Press the cancel button in the modal to cancel adding a new Purpose Press the Refresh button on the page Confirm that you weren't shown a warning about form changes Press the "+" button for a Purpose to create a new Purpose Type in a name and select a lawful base Save changes Press the Refresh button on the page Confirm that you weren't shown a warning about form changes Add an additional Category and Purpose From the "Site" page: Select a different category and purpose but do not save changes Refresh the page Confirm that you were shown a warning about form changes Data policy Login as admin Navigate to Site administration -> Users -> Privacy and policies -> Policy settings Set "Site policy handler" to "Policies (tool_policy)" Save changes Navigate to Site administration -> Users -> Privacy and policies -> Manage policies Create a new policy: Name: MDL-69918 Summary: Lorem ipsum Full policy: Lorem ipsum Policy status: Active Press Save Click on the "0 of x (0%)" link to view the list of users who have accepted it Press "Accept" for a user Type in a remark Press the Refresh button on the page Confirm that you were shown a warning about form changes Press the cancel button in the prompt to stay on the page Press the cancel button in the modal to close the modal without aggreeing Press the Refresh button on the page Confirm that you weren't shown a warning about form changes Press "Accept" for a user Type in a remark Save changes Press the Refresh button on the page Confirm that you weren't shown a warning about form changes Course completion Login as an admin/teacher Create or open a course Edit course settings Set Completion tracking -> Enable completion tracking to "Yes" Save changes From the course cog menu, choose "Course completion" At the top click on the "Bulk edit activity completion" tab Press the Refresh button on the page Confirm that you weren't shown a warning about form changes Click on at least one checkbox (one/many/all) Press the Refresh button on the page Confirm that you were shown a warning about form changes At the top click on the "Default activity completion" tab Press the Refresh button on the page Confirm that you weren't shown a warning about form changes Click on at least one checkbox (one/many/all) Press the Refresh button on the page Confirm that you were shown a warning about form changes Press cancel to remain on the page Press the "Edit" button Confirm that the edit page was shown instead Confirm that you weren't shown a warning about form changes Grade setup Login as an admin/teacher Create a course or take an existing course Create an assignment Choose Grades in the left-hand menu Choose Setup Press the Refresh button on the page Confirm that you weren't shown a warning about form changes Click on at least one checkbox (one/many/all) Press the Refresh button on the page Confirm that you were shown a warning about form changes Choose the "View" tab" Turn editing on Press the Refresh button on the page Confirm that you weren't shown a warning about form changes Enter a value for one user but do not save changes Press the Refresh button on the page Confirm that you were shown a warning about form changes Press cancel to remain on the page Press the save changes button Confirm that the page refreshed Confirm that you weren't shown a warning about form changes Autocompletion Login as an admin/teacher and navigate to a course Edit the course settings Expand the "Tags" section Type a value into the "Tags": DO NOT click away, press enter, etc. Press the Refresh button (Ctrl+R, F5, etc) Confirm that you were shown a warning about form changes Press cancel to remain on the page Add the new tag Press the save changes button Confirm that you weren't shown a warning about form changes Private files From the drawer navigation on the left choose "Private files" Upload a file Press the Refresh button (Ctrl+R, F5, etc) Confirm that you were shown a warning about form changes Press cancel to remain on the page Press the save changes button Confirm that you weren't shown a warning about form changes Open your user Dashboard Choose "Manage private files" Upload a file Press the Refresh button (Ctrl+R, F5, etc) Confirm that you were shown a warning about form changes Press cancel to remain on the page Close the Manage private files dialogue Press the Refresh button (Ctrl+R, F5, etc) Confirm that you weren't shown a warning about form changes Choose "Manage private files" Upload a file Save changes Confirm that you weren't shown a warning about form changes Press the Refresh button (Ctrl+R, F5, etc) Confirm that you weren't shown a warning about form changes File manager Login as an admin/teacher Navigate to a course From the cog, choose "Edit settings" Upload an image to "Course image" Press the Refresh button (Ctrl+R, F5, etc) Confirm that you were shown a warning about form changes Press "Save and display" Confirm that you weren't shown a warning about form changes Edit the course settings again Delete the file from the course image Press the Refresh button (Ctrl+R, F5, etc) Confirm that you were shown a warning about form changes Press cancel to remain on the page Press "Save and display" Confirm that you weren't shown a warning about form changes Assignment grading Login as an admin/teacher Create a course or take an existing course and enrol some users Create an assignment Open the assignment and press "Grade users" Enter a grade, or some feedback Press the Refresh button (Ctrl+R, F5, etc) Confirm that you were shown a warning about form changes Press cancel to remain on the page Save changes Confirm that you weren't shown a warning about form changes Press the Refresh button (Ctrl+R, F5, etc) Confirm that you weren't shown a warning about form changes Relative dates Navigate to Site administration -> Development -> Experimental -> Experimental settings Enable course relative dates and save changes Navigate to Site administration -> Courses -> Add a new course Create a new course and set: Course full name: MDL-69918 Course shortname: MDL-69918 Relative dates mode: Yes Course start date: 1st March 2021 00:00 Course end date: 1st March 2022 00:00 Enrol some users in the course Create a new assignment View the assignment From the cog menu choose "User overrides" Choose a user Confirm that you weren't shown a warning about form changes Change the "Allow submissions from" date Press the Refresh button (Ctrl+R, F5, etc) Confirm that you were shown a warning about form changes Press cancel to remain on the page Save changes Confirm that you weren't shown a warning about form changes Forum Login as a teacher or admin Navigate to a course Create a forum Create a new discussion View the discussion Click on the "Reply" button Press the Refresh button (Ctrl+R, F5, etc) Confirm that you weren't shown a warning about form changes Click on the "Reply" button Enter a value but do not click "Post to forum" Press the Refresh button (Ctrl+R, F5, etc) Confirm that you were shown a warning about form changes Press cancel to remain on the page Post to the forum Confirm that you weren't shown a warning about form changes Open the user menu and choose "Preferences" Choose "Forum preferences" Set the value "Use experimental nested discussion view" to "Yes" Save changes Repeat the steps 5 - 12 with the new format Forum Part 2 After completing the previous section: Open the forum to the discussion list From the forum cog menu choose "Forum summary report" Press the Refresh button (Ctrl+R, F5, etc) Confirm that you weren't shown a warning about form changes Press the "Dates" button Press the Refresh button (Ctrl+R, F5, etc) Confirm that you weren't shown a warning about form changes Press the "Dates" button Toggle one of the "Enable" checkboxes Press the Refresh button (Ctrl+R, F5, etc) Confirm that you were shown a warning about form changes Quiz Create a new quiz: Set a time limit of 30 seconds Create a question in the quiz Attempt the quiz Press the Refresh button (Ctrl+R, F5, etc) Confirm that you weren't shown a warning about form changes Choose a value for the question, but do not save it Press the Refresh button (Ctrl+R, F5, etc) Confirm that you were shown a warning about form changes Press cancel to remain on the page Wait 30 seconds for the quiz to time out Confirm that you weren't shown a warning about form changes Confirm that you were redirected to the review page Attempt the quiz again Select a value Submit your attempt Confirm that you weren't shown a warning about form changes
-
0
-
Internationals - 3.11 Sprint 7, Internationals - 3.11 Sprint 8, Internationals - 3.11 Sprint 9, Internationals - 4.0 Sprint 1, HQ Team International Sprint 2
Description
The Change Checker was written many years ago for YUI, but we should update it to use an ES6 module and provide a b/c layer as we move over.
Attachments
Issue Links
- blocks
-
MDL-70135 Use form change checker for inline forum discussion creation
-
- Development in progress
-
- caused a regression
-
MDL-72449 Cannot delete quiz attempt
-
- Closed
-
-
MDL-76250 Submission page asks to "Reload page" when selecting a filter
-
- Closed
-
- has been marked as being related by
-
MDL-72308 Remove the Form Change Checker YUI module
-
- Open
-
-
MDL-64554 Add module for displaying moodleform in a modal window
-
- Closed
-
- is blocked by
-
MDL-71369 form change checker is not applied to admin everywhere
-
- Closed
-
-
MDL-70990 Replace jQuery and YUI events core/event with native JS events
-
- Closed
-
- Testing discovered
-
MDL-71045 Form change checker does not warn after adding a repeated element
-
- Open
-