@javascript
Scenario: Setting badges settings
- Given I expand "Site administration" node
- And I expand "Badges" node
- And I follow "Badges settings"
+ Given I navigate to "Badges settings" node in "Site administration > Badges"
And I set the field "Default badge issuer name" to "Test Badge Site"
And I set the field "Default badge issuer contact details" to "testuser@test-badge-site.com"
And I press "Save changes"
@javascript
Scenario: Accessing the badges
- Given I expand "Site pages" node
- And I follow "Site badges"
+ Given I navigate to "Site badges" node in "Site pages"
Then I should see "There are no badges available."
@javascript
Scenario: Add a badge
- Given I expand "Site administration" node
- And I expand "Badges" node
- And I follow "Add a new badge"
+ Given I navigate to "Add a new badge" node in "Site administration > Badges"
And I set the following fields to these values:
| Name | Test Badge |
| Description | Test badge description |
| student2 | C1 | student |
And I log in as "teacher1"
And I follow "Course 1"
- And I click on "//span[text()='Badges']" "xpath_element" in the "Administration" "block"
+ And I navigate to "Add a new badge" node in "Course administration > Badges"
And I follow "Add a new badge"
And I set the following fields to these values:
| Name | Course Badge |
And I log out
And I log in as "teacher1"
And I follow "Course 1"
- And I click on "//span[text()='Badges']" "xpath_element" in the "Administration" "block"
+ And I navigate to "Add a new badge" node in "Course administration > Badges"
And I follow "Add a new badge"
And I set the following fields to these values:
| Name | Course Badge |
And I log out
And I log in as "teacher1"
And I follow "Course 1"
- And I click on "//span[text()='Badges']" "xpath_element" in the "Administration" "block"
+ And I navigate to "Add a new badge" node in "Course administration > Badges"
And I follow "Add a new badge"
And I set the following fields to these values:
| Name | Course Badge |