#207 Follow-up UX improvements
The majority of this change involved moving the report page logic into the view page for both browser and mobile.
This commit is contained in:
parent
6926280807
commit
c395c7dadc
14 changed files with 194 additions and 335 deletions
|
@ -25,14 +25,14 @@ Feature: Being able to view the certificates you have been issued
|
|||
And I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Custom certificate 1"
|
||||
And I press "Download certificate"
|
||||
And I press "View certificate"
|
||||
And I follow "Profile" in the user menu
|
||||
And I follow "My certificates"
|
||||
And I should see "Custom certificate 1"
|
||||
And I should not see "Custom certificate 2"
|
||||
And I am on "Course 2" course homepage
|
||||
And I follow "Custom certificate 2"
|
||||
And I press "Download certificate"
|
||||
And I press "View certificate"
|
||||
And I follow "Profile" in the user menu
|
||||
And I follow "My certificates"
|
||||
And I should see "Custom certificate 1"
|
||||
|
|
|
@ -25,7 +25,7 @@ Feature: Being able to set the required minutes in a course before viewing the c
|
|||
And I am on "Course 1" course homepage
|
||||
And I follow "Custom certificate 1"
|
||||
And I should see "You must spend at least a minimum of"
|
||||
And I should not see "Download certificate"
|
||||
And I should not see "View certificate"
|
||||
And I press "Continue"
|
||||
And I should see "Custom certificate 1"
|
||||
|
||||
|
@ -36,4 +36,4 @@ Feature: Being able to set the required minutes in a course before viewing the c
|
|||
And I am on "Course 1" course homepage
|
||||
And I follow "Custom certificate 1"
|
||||
And I should not see "You must spend at least a minimum of"
|
||||
And I should see "Download certificate"
|
||||
And I should see "View certificate"
|
||||
|
|
|
@ -25,7 +25,7 @@ Feature: Being able to verify that a certificate is valid or not
|
|||
And I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Custom certificate 1"
|
||||
And I press "Download certificate"
|
||||
And I press "View certificate"
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
@ -45,7 +45,7 @@ Feature: Being able to verify that a certificate is valid or not
|
|||
And I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Custom certificate 2"
|
||||
And I press "Download certificate"
|
||||
And I press "View certificate"
|
||||
And I log out
|
||||
And I visit the verification url for the "Custom certificate 2" certificate
|
||||
And I set the field "Code" to "NOTAVALIDCODE"
|
||||
|
@ -74,10 +74,10 @@ Feature: Being able to verify that a certificate is valid or not
|
|||
And I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Custom certificate 1"
|
||||
And I press "Download certificate"
|
||||
And I press "View certificate"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Custom certificate 2"
|
||||
And I press "Download certificate"
|
||||
And I press "View certificate"
|
||||
And I log out
|
||||
And I log in as "admin"
|
||||
# The admin (or anyone with the capability 'mod/customcert:verifyallcertificates') can visit the URL regardless of the setting.
|
||||
|
@ -95,10 +95,10 @@ Feature: Being able to verify that a certificate is valid or not
|
|||
And I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Custom certificate 1"
|
||||
And I press "Download certificate"
|
||||
And I press "View certificate"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Custom certificate 2"
|
||||
And I press "Download certificate"
|
||||
And I press "View certificate"
|
||||
And I log out
|
||||
And I visit the verification url for the site
|
||||
And I set the field "Code" to "NOTAVALIDCODE"
|
||||
|
|
|
@ -26,17 +26,16 @@ Feature: Being able to view the certificates that have been issued
|
|||
And I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Custom certificate 1"
|
||||
And I press "Download certificate"
|
||||
And I press "View certificate"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Custom certificate 1"
|
||||
And I press "Download certificate"
|
||||
And I press "View certificate"
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Custom certificate 1"
|
||||
And I follow "View 2 issued certificates"
|
||||
And I should see "Student 1"
|
||||
And I should see "Student 2"
|
||||
|
||||
|
@ -44,17 +43,16 @@ Feature: Being able to view the certificates that have been issued
|
|||
And I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Custom certificate 1"
|
||||
And I press "Download certificate"
|
||||
And I press "View certificate"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Custom certificate 1"
|
||||
And I press "Download certificate"
|
||||
And I press "View certificate"
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Custom certificate 1"
|
||||
And I follow "View 2 issued certificates"
|
||||
And I should see "Student 1"
|
||||
And I should see "Student 2"
|
||||
And I click on ".delete-icon" "css_element" in the "Student 2" "table_row"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue