60 lines
2.1 KiB
Gherkin
60 lines
2.1 KiB
Gherkin
Feature: Verified certificates
|
|
As a student,
|
|
In order to earn a verified certificate
|
|
I want to sign up for a verified certificate course.
|
|
|
|
Scenario: I can audit a verified certificate course
|
|
Given I am logged in
|
|
When I select the audit track
|
|
Then I should see the course on my dashboard
|
|
|
|
Scenario: I can submit photos to verify my identity
|
|
Given I am logged in
|
|
When I select the verified track
|
|
And I go to step "1"
|
|
And I capture my "face" photo
|
|
And I approve my "face" photo
|
|
And I go to step "2"
|
|
And I capture my "photo_id" photo
|
|
And I approve my "photo_id" photo
|
|
And I go to step "3"
|
|
And I select a contribution amount
|
|
And I confirm that the details match
|
|
And I go to step "4"
|
|
Then The course is added to my cart
|
|
And I view the payment page
|
|
|
|
Scenario: I can pay for a verified certificate
|
|
Given I have submitted photos to verify my identity
|
|
When I submit valid payment information
|
|
Then I see that my payment was successful
|
|
And I receive an email confirmation
|
|
And I see that I am registered for a verified certificate course on my dashboard
|
|
|
|
Scenario: I can re-take photos
|
|
Given I have submitted my "<PhotoType>" photo
|
|
When I retake my "<PhotoType>" photo
|
|
Then I see the new photo on the confirmation page.
|
|
|
|
Examples:
|
|
| PhotoType |
|
|
| face |
|
|
| ID |
|
|
|
|
Scenario: I can edit identity information
|
|
Given I have submitted face and ID photos
|
|
When I edit my name
|
|
Then I see the new name on the confirmation page.
|
|
|
|
Scenario: I can return to the verify flow
|
|
Given I have submitted photos
|
|
When I leave the flow and return
|
|
I see the payment page
|
|
|
|
|
|
# Design not yet finalized
|
|
#Scenario: I can take a verified certificate course for free
|
|
# Given I have submitted photos to verify my identity
|
|
# When I give a reason why I cannot pay
|
|
# Then I see that I am registered for a verified certificate course on my dashboard
|