|
|
|
@ -12,28 +12,26 @@ Feature: Session tool |
|
|
|
|
And I press "Add category" |
|
|
|
|
Then I should see "The category has been added" |
|
|
|
|
|
|
|
|
|
@javascript |
|
|
|
|
Scenario: Create a session |
|
|
|
|
Given I am on "/main/session/session_add.php" |
|
|
|
|
When I fill in the following: |
|
|
|
|
| name | Session 1 | |
|
|
|
|
And I fill in select2 input "#coach_username" with id "1" and value "admin" |
|
|
|
|
# And I follow "Advanced settings" |
|
|
|
|
# And I fill in select bootstrap input "#session_category" with "category_1" and select "category_1" |
|
|
|
|
And I press "submit" |
|
|
|
|
Then I should see "Add courses to this session (Session 1)" |
|
|
|
|
Then I select "TEMP (TEMP)" from "NoSessionCoursesList[]" |
|
|
|
|
And I press "add_course" |
|
|
|
|
And I press "next" |
|
|
|
|
Then I should see "Update successful" |
|
|
|
|
|
|
|
|
|
Scenario: Delete session |
|
|
|
|
Given I am on "/main/session/session_list.php?keyword=Session+1" |
|
|
|
|
And wait for the page to be loaded |
|
|
|
|
And I follow "Delete" |
|
|
|
|
And I confirm the popup |
|
|
|
|
Then I should see "Deleted" |
|
|
|
|
|
|
|
|
|
# @javascript |
|
|
|
|
# Scenario: Create a session |
|
|
|
|
# Given I am on "/main/session/session_add.php" |
|
|
|
|
# When I fill in the following: |
|
|
|
|
# | name | Session 1 | |
|
|
|
|
# And I fill in select2 input "#coach_username" with id "1" and value "admin" |
|
|
|
|
# And I press "submit" |
|
|
|
|
# Then I should see "Add courses to this session (Session 1)" |
|
|
|
|
# Then I select "TEMP (TEMP)" from "NoSessionCoursesList[]" |
|
|
|
|
# And I press "add_course" |
|
|
|
|
# And I press "next" |
|
|
|
|
# Then I should see "Update successful" |
|
|
|
|
# |
|
|
|
|
# Scenario: Delete session |
|
|
|
|
# Given I am on "/main/session/session_list.php?keyword=Session+1" |
|
|
|
|
# And wait for the page to be loaded |
|
|
|
|
# And I follow "Delete" |
|
|
|
|
# And I confirm the popup |
|
|
|
|
# Then I should see "Deleted" |
|
|
|
|
# |
|
|
|
|
Scenario: Delete session category |
|
|
|
|
Given I am on "/main/session/session_category_list.php" |
|
|
|
|
And I follow "Delete" |
|
|
|
|