|
|
|
@ -5,11 +5,13 @@ Feature: Session management tool |
|
|
|
|
Background: |
|
|
|
|
Given I am a platform administrator |
|
|
|
|
|
|
|
|
|
@javascript |
|
|
|
|
Scenario: Create a session category |
|
|
|
|
Given I am on "/main/session/session_category_add.php" |
|
|
|
|
When I fill in the following: |
|
|
|
|
| name | category_1 | |
|
|
|
|
And I press "Add category" |
|
|
|
|
And wait very long for the page to be loaded |
|
|
|
|
Then I should see "The category has been added" |
|
|
|
|
|
|
|
|
|
@javascript |
|
|
|
@ -19,7 +21,7 @@ Feature: Session management tool |
|
|
|
|
| name | Session1 | |
|
|
|
|
And I fill in select2 input "#coach_username" with id "1" and value "admin" |
|
|
|
|
And I press "submit" |
|
|
|
|
Then wait for the page to be loaded |
|
|
|
|
And wait for the page to be loaded |
|
|
|
|
Then I should see "Add courses to this session (Session1)" |
|
|
|
|
Then I select "TEMP (TEMP)" from "NoSessionCoursesList[]" |
|
|
|
|
And I press "add_course" |
|
|
|
@ -33,7 +35,7 @@ Feature: Session management tool |
|
|
|
|
| name | Temp Session | |
|
|
|
|
And I press advanced settings |
|
|
|
|
And I fill in select2 input "#coach_username" with id "1" and value "admin" |
|
|
|
|
And wait for the page to be loaded |
|
|
|
|
And wait very long for the page to be loaded |
|
|
|
|
And I fill in ckeditor field "description" with "Description for Temp Session" |
|
|
|
|
And I press "submit" |
|
|
|
|
Then I should see "Add courses to this session (Temp Session)" |
|
|
|
@ -82,7 +84,7 @@ Feature: Session management tool |
|
|
|
|
|
|
|
|
|
Scenario: Delete session "Session1" |
|
|
|
|
Given I am on "/main/session/session_list.php?keyword=Session1" |
|
|
|
|
And wait for the page to be loaded |
|
|
|
|
And wait very long for the page to be loaded |
|
|
|
|
And I follow "Delete" |
|
|
|
|
And I confirm the popup |
|
|
|
|
Then I should see "Deleted" |
|
|
|
@ -91,4 +93,5 @@ Feature: Session management tool |
|
|
|
|
Given I am on "/main/session/session_category_list.php" |
|
|
|
|
And I follow "Delete" |
|
|
|
|
And I confirm the popup |
|
|
|
|
And wait for the page to be loaded |
|
|
|
|
Then I should see "The selected categories have been deleted" |
|
|
|
|