And I expand "Users" node
And I follow "Groups"
And I select "Section 1 (1)" from "groups"
- And I wait "4" seconds
And the "members" select box should contain "Tom Jones"
Then the "groups" select box should contain "Group 1 (1)"
And the "groups" select box should contain "Group 2 (1)"
And I select "Group 1 (1)" from "groups"
- And I wait "5" seconds
And the "members" select box should contain "Student 1"
And I select "Group 2 (1)" from "groups"
- And I wait "5" seconds
And the "members" select box should contain "Student 2"
And I press "Continue"
And I click on "Continue" "button" in the ".bcs-current-course" "css_element"
And "//div[contains(concat(' ', normalize-space(@class), ' '), ' fitem ')][contains(., 'Include calendar events')]/descendant::img" "xpath_element" should exists
- And I check "Include course logs"
+ And "Include course logs" "checkbox" should exists
And I press "Next"
@javascript
And I should see "cat3" in the "Navigation" "block"
And I should not see "cat2" in the "Navigation" "block"
And I expand "cat3" node
- And I wait "2" seconds
And I should see "cat31" in the "Navigation" "block"
And I should see "cat33" in the "Navigation" "block"
And I should not see "cat32" in the "Navigation" "block"
And I expand "cat31" node
- And I wait "2" seconds
And I should see "c31" in the "Navigation" "block"
And I expand "cat33" node
- And I wait "2" seconds
And I should see "c331" in the "Navigation" "block"
And I should not see "c332" in the "Navigation" "block"
And I follow "Comments (0)"
When I fill in "content" with "$My own >nasty< \"string\"!"
And I follow "Save comment"
- And I wait "4" seconds
Then I should see "$My own >nasty< \"string\"!"
And I fill in "content" with "Another $Nasty <string?>"
And I follow "Save comment"
- And I wait "4" seconds
And I should see "Comments (2)" in the ".comment-link" "css_element"
@javascript
And I follow "Comments (0)"
And I fill in "content" with "$My own >nasty< \"string\"!"
And I follow "Save comment"
- And I wait "4" seconds
When I click on ".comment-delete a" "css_element"
- And I wait "4" seconds
+ # Waiting for the animation to finish.
+ And I wait "2" seconds
Then I should not see "$My own >nasty< \"string\"!"
And I follow "Blog post from user 1"
And I click on ".comment-link" "css_element"
When I follow "Comments (0)"
And I fill in "content" with "$My own >nasty< \"string\"!"
And I follow "Save comment"
- And I wait "4" seconds
Then I should see "$My own >nasty< \"string\"!"
And I log in as "student1"
And I follow "Course 1"
And I press "Mark as complete: Test forum name"
- And I wait "3" seconds
And I log out
And I log in as "teacher1"
And I follow "Course 1"
Then "No groups (Click to change)" "link" should exists
And "//a/child::img[contains(@src, 'groupn')]" "xpath_element" should exists
And I click on "No groups (Click to change)" "link" in the "Test forum name" activity
- And I wait "3" seconds
And "Separate groups (Click to change)" "link" should exists
And "//a/child::img[contains(@src, 'groups')]" "xpath_element" should exists
And I reload the page
And "Separate groups (Click to change)" "link" should exists
And "//a/child::img[contains(@src, 'groups')]" "xpath_element" should exists
And I click on "Separate groups (Click to change)" "link" in the "Test forum name" activity
- And I wait "3" seconds
And "Visible groups (Click to change)" "link" should exists
And "//a/child::img[contains(@src, 'groupv')]" "xpath_element" should exists
And I reload the page
And I add "student2" user to "Group 2" group
And I add "student3" user to "Group 2" group
Then I select "Group 1 (2)" from "groups"
- And I wait "5" seconds
And the "members" select box should contain "Student 0"
And the "members" select box should contain "Student 1"
And the "members" select box should not contain "Student 2"
And I select "Group 2 (2)" from "groups"
- And I wait "5" seconds
And the "members" select box should contain "Student 2"
And the "members" select box should contain "Student 3"
And the "members" select box should not contain "Student 0"
When I add a new discussion to "Test forum name" forum with:
| Subject | Forum post 1 |
| Message | This is the body |
- And I wait "6" seconds
Then I should see "Test forum name"
And I follow "Teacher post subject"
And I click on "Delete" "link" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' forumpost ')][contains(., 'Student post subject')]" "xpath_element"
And I press "Continue"
- And I wait "4" seconds
Then I should not see "Student post subject"
And I should not see "Student post message"
And I fill the moodle form with:
| Subject | Edited student subject |
And I press "Save changes"
- And I wait "4" seconds
+ And I wait to be redirected
Then I should see "Edited student subject"
And I should see "Edited by Teacher 1 - original submission"
And I add a new discussion to "Test forum name" forum with:
| Subject | Test post subject |
| Message | Test post message |
- And I wait "6" seconds
And I log out
When I log in as "student1"
And I follow "Course 1"
And I add a new discussion to "Test forum name" forum with:
| Subject | Test post subject |
| Message | Test post message |
- And I wait "6" seconds
And I log out
When I log in as "student1"
And I follow "Course 1"
Then I should see "1 unread post"
And I follow "Test forum name"
And I follow "Don't track unread posts"
- And I wait "4" seconds
+ And I wait to be redirected
And I follow "Course 1"
And I should not see "1 unread post"
And I follow "Test forum name"
And I follow "Track unread posts"
- And I wait "4" seconds
+ And I wait to be redirected
And I follow "1"
And I follow "Course 1"
And I should not see "1 unread post"
And I add a new discussion to "Test forum name" forum with:
| Subject | Test post subject |
| Message | Test post message |
- And I wait "6" seconds
And I log out
When I log in as "student2"
And I follow "Course 1"
@javascript
Scenario: Tracking forum posts forced with user tracking on
- And I set the following administration settings values:
+ Given I set the following administration settings values:
| Allow forced read tracking | 1 |
And I follow "Home"
And I follow "Course 1"
And I add a new discussion to "Test forum name" forum with:
| Subject | Test post subject |
| Message | Test post message |
- And I wait "6" seconds
And I log out
When I log in as "student1"
And I follow "Course 1"
@javascript
Scenario: Tracking forum posts forced with user tracking off
- And I set the following administration settings values:
+ Given I set the following administration settings values:
| Allow forced read tracking | 1 |
And I follow "Home"
And I follow "Course 1"
And I add a new discussion to "Test forum name" forum with:
| Subject | Test post subject |
| Message | Test post message |
- And I wait "6" seconds
And I log out
When I log in as "student2"
And I follow "Course 1"
@javascript
Scenario: Tracking forum posts forced (with force disabled) with user tracking on
- And I set the following administration settings values:
+ Given I set the following administration settings values:
| Allow forced read tracking | 1 |
And I follow "Home"
And I follow "Course 1"
And I add a new discussion to "Test forum name" forum with:
| Subject | Test post subject |
| Message | Test post message |
- And I wait "6" seconds
And I set the following administration settings values:
| Allow forced read tracking | 0 |
And I log out
Then I should see "1 unread post"
And I follow "Test forum name"
And I follow "Don't track unread posts"
- And I wait "4" seconds
+ And I wait to be redirected
And I follow "Course 1"
And I should not see "1 unread post"
And I follow "Test forum name"
And I follow "Track unread posts"
- And I wait "4" seconds
+ And I wait to be redirected
And I follow "1"
And I follow "Course 1"
And I should not see "1 unread post"
@javascript
Scenario: Tracking forum posts forced (with force disabled) with user tracking off
- And I set the following administration settings values:
+ Given I set the following administration settings values:
| Allow forced read tracking | 1 |
And I follow "Home"
And I follow "Course 1"
And I add a new discussion to "Test forum name" forum with:
| Subject | Test post subject |
| Message | Test post message |
- And I wait "6" seconds
And I set the following administration settings values:
| Allow forced read tracking | 0 |
And I log out