Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/tests/behat/features/toolAttendance.feature

35 lines
1.2 KiB

Feature: Attendance tool
Background:
Given I am a platform administrator
Scenario: Create
Given I am on "/main/attendance/index.php?cid=1&action=attendance_add"
Then I fill in the following:
| title |Attendance 1|
Then I fill in editor field "description" with "Description for attendance"
Then wait for the page to be loaded
And I press "Save"
And wait the page to be loaded when ready
Then I should see "Add a date time"
Scenario: Read
Given I am on "/main/attendance/index.php?cid=1"
Then I should see "Attendance 1"
Then I follow "Attendance 1"
Then I should see "The attendance sheets allow you to specify a list of dates"
Scenario: Update
Given I am on "/main/attendance/index.php?cid=1&action=attendance_edit&attendance_id=1"
Then I should see "Edit"
When I fill in the following:
| title | Attendance 1 edited |
Then I fill in editor field "description" with "Description edited"
Then I press "Update"
Then I should see "Update successful"
Scenario: Delete
Given I am on "/main/attendance/index.php?cid=1&sid=0"
Then I should see "Attendance 1 edited"
Then I follow "Delete"
Then I should not see "Attendance 1 edited"