Behat: Fix tests

pull/3064/head
Julio 5 years ago
parent f33e6b979e
commit 280630f290
  1. 2
      tests/behat/features/sessionAccess.feature
  2. 4
      tests/behat/features/sessionManagement.feature
  3. 2
      tests/behat/features/socialGroup.feature
  4. 2
      tests/behat/features/systemAnnouncements.feature

@ -64,7 +64,7 @@ Feature: Session access
Scenario: mmosquera connect to Session 1
Given I am logged as "mmosquera"
Then I am on course "TEMPPRIVATE" homepage in session "Session1"
Then I should see "You are not allowed"
Then I should see "Unauthorised access to course"
Scenario: mmosquera connect to Session 2
Given I am logged as "mmosquera"

@ -59,7 +59,7 @@ Feature: Session management tool
Scenario: Check session description with platform setting off
Given I am a platform administrator
And I am on "/admin/settings/search_settings?keyword=show_session_description"
And I select "yes" from "form_show_session_description"
And I select "true" from "form_show_session_description"
And I press "Save settings"
Then I am on "/main/index/user_portal.php"
Then I should see "Temp Session"
@ -68,7 +68,7 @@ Feature: Session management tool
Scenario: Check session description with platform setting on
Given I am a platform administrator
And I am on "/admin/settings/search_settings?keyword=show_session_description"
And I select "yes" from "form_show_session_description"
And I select "true" from "form_show_session_description"
And I press "Save settings"
Then I should see "Update successful"
Then I am on "/main/index/user_portal.php"

@ -8,7 +8,7 @@ Feature: Social Group
And I am on "/main/social/group_add.php"
When I fill in the following:
| name | Behat Test Group |
| description | This is a group created by Behat |
Then I fill in ckeditor field "description" with "This is a group created by Beha"
And I press "submit"
Then I should see "Group added"

@ -18,5 +18,5 @@ Feature: System Announcements
Scenario: Delete system announcement
Given I am on "/main/admin/system_announcements.php"
When I follow "Delete"
And I confirm the popup
Then I follow "Yes"
Then I should see "Announcement has been deleted"

Loading…
Cancel
Save