certificates.feature 3.44 KB
Newer Older
1
@shard_2
2
Feature: LMS.Verified certificates
3 4 5 6 7 8 9 10
    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
Gabe Mulley committed
11
        And a "edx.course.enrollment.activated" server event is emitted
12

13 14 15 16 17 18 19 20 21 22 23 24 25 26
    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 I am at the payment page
Jay Zoldak committed
27

28 29 30 31
    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
32

33 34 35 36 37 38
    Scenario: Verified courses display correctly on dashboard
        Given I have submitted photos to verify my identity
        When I submit valid payment information
        And I navigate to my dashboard
        Then I see the course on my dashboard
        And I see that I am on the verified track
39
        And I do not see the upsell link on my dashboard
Gabe Mulley committed
40
        And a "edx.course.enrollment.activated" server event is emitted
41

42
    # Not easily automated
43 44 45 46 47 48 49 50 51
#    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            |
52

53 54 55 56 57
#    # TODO: automate
#    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.
58 59

    Scenario: I can return to the verify flow
60
        Given I have submitted photos to verify my identity
61
        When I leave the flow and return
62
        Then I am at the verified page
63

64 65 66 67 68 69
    # TODO: automate
#    Scenario: I can pay from the return flow
#        Given I have submitted photos to verify my identity
#        When I leave the flow and return
#        And I press the payment button
#        Then I am at the payment page
70

71
    Scenario: The upsell offer is on the dashboard if I am auditing
Diana Huang committed
72 73 74 75 76
        Given I am logged in
        When I select the audit track
        And I navigate to my dashboard
        Then I see the upsell link on my dashboard

77
    Scenario: I can take the upsell offer and pay for it
Diana Huang committed
78 79 80
        Given I am logged in
        And I select the audit track
        And I navigate to my dashboard
81 82 83 84 85 86 87 88 89
        When I see the upsell link on my dashboard
        And I select the upsell link on my dashboard
        And I select the verified track for upgrade
        And I submit my photos and confirm
        And I am at the payment page
        And I submit valid payment information
        And I navigate to my dashboard
        Then I see the course on my dashboard
        And I see that I am on the verified track
Gabe Mulley committed
90
        And a "edx.course.enrollment.activated" server event is emitted
Julia Hansbrough committed
91
        And a "edx.course.enrollment.upgrade.succeeded" server event is emitted