Fix behat test use cid instead of cidReq

pull/3064/head
Julio 5 years ago
parent 8ff7d3493b
commit 972a586cc9
  1. 10
      tests/behat/features/course_user_registration.feature
  2. 2
      tests/behat/features/toolAgenda.feature
  3. 6
      tests/behat/features/toolAnnouncement.feature
  4. 12
      tests/behat/features/toolDocument.feature
  5. 50
      tests/behat/features/toolExercise.feature
  6. 10
      tests/behat/features/toolForum.feature
  7. 54
      tests/behat/features/toolGroup.feature
  8. 10
      tests/behat/features/toolLink.feature
  9. 22
      tests/behat/features/toolLp.feature
  10. 10
      tests/behat/features/toolWork.feature

@ -4,32 +4,32 @@ Feature: Subscribe users to the course
Given I am a platform administrator
Scenario: Subscribe "amann" as student to the course "TEMP"
Given I am on "/main/user/subscribe_user.php?keyword=amann&type=5&cidReq=TEMP"
Given I am on "/main/user/subscribe_user.php?keyword=amann&type=5&cid=1"
Then I should see "Aimee"
Then I follow "Register"
Then I should see "User Aimee Mann (amann) has been registered to course TEMP"
Scenario: Unsubscribe user "amann" the course "TEMP"
Given I am on "/main/user/user.php?cidReq=TEMP"
Given I am on "/main/user/user.php?cid=1"
Then I should see "Aimee"
Then I follow "Unsubscribe"
And I confirm the popup
Then I should see "User is now unsubscribed"
Scenario: Subscribe "acostea" as student to the course "TEMP" (leave it subscribed for further tests)
Given I am on "/main/user/subscribe_user.php?keyword=acostea&type=5&cidReq=TEMP"
Given I am on "/main/user/subscribe_user.php?keyword=acostea&type=5&cid=1"
Then I should see "Andrea"
Then I follow "Register"
Then I should see "User Andrea Costea (acostea) has been registered to course TEMP"
Scenario: Subscribe "fapple" as student to the course "TEMP" (leave it subscribed for further tests)
Given I am on "/main/user/subscribe_user.php?keyword=fapple&type=5&cidReq=TEMP"
Given I am on "/main/user/subscribe_user.php?keyword=fapple&type=5&cid=1"
Then I should see "Fiona"
Then I follow "Register"
Then I should see "User Fiona Apple Maggart (fapple) has been registered to course TEMP"
Scenario: Subscribe "amann" again as student to the course "TEMP" (leave it subscribed for further tests)
Given I am on "/main/user/subscribe_user.php?keyword=amann&type=5&cidReq=TEMP"
Given I am on "/main/user/subscribe_user.php?keyword=amann&type=5&cid=1"
Then I should see "Aimee"
Then I follow "Register"
Then I should see "User Aimee Mann (amann) has been registered to course TEMP"

@ -17,7 +17,7 @@ Feature: Agenda tool
Then I should see "Event added"
Scenario: Create an event inside course TEMP
Given I am on "/main/calendar/agenda.php?action=add&type=course&cidReq=TEMP"
Given I am on "/main/calendar/agenda.php?action=add&type=course&cid=1"
When I fill in the following:
| title | Event in course |
Then I fill in ckeditor field "content" with "Description event"

@ -7,7 +7,7 @@ Feature: Announcement tool
And I am on course "TEMP" homepage
Scenario: Create an announcement for admin user
Given I am on "/main/announcements/announcements.php?action=add&cidReq=TEMP"
Given I am on "/main/announcements/announcements.php?action=add&cid=1"
When I fill in the following:
| title | Announcement test |
And I press "choose_recipients"
@ -21,7 +21,7 @@ Feature: Announcement tool
Then I should see "Announcement has been added"
Scenario: Create an announcement for all users
Given I am on "/main/announcements/announcements.php?action=add&cidReq=TEMP"
Given I am on "/main/announcements/announcements.php?action=add&cid=1"
When I fill in the following:
| title | Announcement test |
And I fill in ckeditor field "content" with "Announcement description"
@ -32,7 +32,7 @@ Feature: Announcement tool
Then I should see "Announcement has been added"
Scenario: Delete all announcements
Given I am on "/main/announcements/announcements.php?cidReq=TEMP"
Given I am on "/main/announcements/announcements.php?cid=1"
When I follow "Clear list of announcements"
And I confirm the popup
Then I should see "All announcements have been deleted"

@ -6,7 +6,7 @@ Feature: Document tool
Given I am a platform administrator
Scenario: Create a folder
Given I am on "/main/document/document.php?cidReq=TEMP&createdir=1"
Given I am on "/main/document/document.php?cid=1&createdir=1"
Then I should see "Create folder"
And I fill in the following:
| dirname | My new directory |
@ -14,7 +14,7 @@ Feature: Document tool
Then I should see "Folder created"
Scenario: Create a folder that already exists
Given I am on "/main/document/document.php?cidReq=TEMP&createdir=1"
Given I am on "/main/document/document.php?cid=1&createdir=1"
Then I should see "Create folder"
And I fill in the following:
| dirname | My new directory |
@ -22,7 +22,7 @@ Feature: Document tool
Then I should see "Unable to create the folder"
Scenario: Create a simple document
Given I am on "/main/document/create_document.php?cidReq=TEMP"
Given I am on "/main/document/create_document.php?cid=1"
Then I should see "Create a rich media page / activity"
Then I fill in the following:
| create_document_title | My first document |
@ -35,7 +35,7 @@ Feature: Document tool
Then I should see "My first document"
Scenario: Create a HTML document
Given I am on "/main/document/create_document.php?cidReq=TEMP"
Given I am on "/main/document/create_document.php?cid=1"
Then I should see "Create a rich media page / activity"
Then I fill in the following:
| create_document_title | My second document |
@ -50,7 +50,7 @@ Feature: Document tool
And I should not see "www.chamilo.org"
Scenario: Upload a document
Given I am on "/main/document/upload.php?cidReq=TEMP"
Given I am on "/main/document/upload.php?cid=1"
Then I should see "Upload documents"
Then I follow "Upload (Simple)"
Then I attach the file "web/css/base.css" to "file"
@ -59,7 +59,7 @@ Feature: Document tool
Then I should see "File upload succeeded"
# Scenario: Create cloud link
# Given I am on "/main/document/add_link.php?cidReq=TEMP"
# Given I am on "/main/document/add_link.php?cid=1"
# Then I should see "Add a link"
# And I fill in the following:
# | name | My dropbox link |

@ -7,7 +7,7 @@ Feature: Exercise tool
And I am on course "TEMP" homepage
Scenario: Create a question category
Given I am on "/main/exercise/tests_category.php?action=addcategory&cidReq=TEMP"
Given I am on "/main/exercise/tests_category.php?action=addcategory&cid=1"
And wait for the page to be loaded
When I fill in the following:
| category_name | Category 1 |
@ -16,7 +16,7 @@ Feature: Exercise tool
Then I should see "Category added"
Scenario: Create a second question category
Given I am on "/main/exercise/tests_category.php?action=addcategory&cidReq=TEMP"
Given I am on "/main/exercise/tests_category.php?action=addcategory&cid=1"
And wait for the page to be loaded
When I fill in the following:
| category_name | Category 2 |
@ -25,7 +25,7 @@ Feature: Exercise tool
Then I should see "Category added"
Scenario: Create an exercise
Given I am on "/main/exercise/exercise_admin.php?cidReq=TEMP"
Given I am on "/main/exercise/exercise_admin.php?cid=1"
And I press advanced settings
When I fill in the following:
| exercise_title | Exercise 1 |
@ -34,7 +34,7 @@ Feature: Exercise tool
Then I should see "Exercise added"
Scenario: Edit an exercise
Given I am on "/main/exercise/exercise.php?cidReq=TEMP"
Given I am on "/main/exercise/exercise.php?cid=1"
And I follow "Exercise 1"
And I follow "Edit"
And I follow "Edit test name and settings"
@ -42,7 +42,7 @@ Feature: Exercise tool
Then I should see "Test name and settings have been saved."
Scenario: Add question "Multiple choice" to exercise created "Exercise 1"
Given I am on "/main/exercise/exercise.php?cidReq=TEMP"
Given I am on "/main/exercise/exercise.php?cid=1"
And I follow "Exercise 1"
And I follow "Edit"
And I follow "Multiple choice"
@ -62,7 +62,7 @@ Feature: Exercise tool
Then I should see "Item added"
Scenario: Add question "Multiple answer" to exercise created "Exercise 1"
Given I am on "/main/exercise/exercise.php?cidReq=TEMP"
Given I am on "/main/exercise/exercise.php?cid=1"
And I follow "Exercise 1"
And I follow "Edit"
And I follow "Multiple answer"
@ -83,7 +83,7 @@ Feature: Exercise tool
Then I should see "Item added"
Scenario: Add question "Fill in blanks" to "Exercise 1"
Given I am on "/main/exercise/exercise.php?cidReq=TEMP"
Given I am on "/main/exercise/exercise.php?cid=1"
And I follow "Exercise 1"
And I follow "Edit"
And I follow "Fill blanks or form"
@ -94,7 +94,7 @@ Feature: Exercise tool
Then I should see "Item added"
Scenario: Add question "Matching" to exercise created "Exercise 1"
Given I am on "/main/exercise/exercise.php?cidReq=TEMP"
Given I am on "/main/exercise/exercise.php?cid=1"
And I follow "Exercise 1"
And I follow "Edit"
And I follow "Matching"
@ -109,7 +109,7 @@ Feature: Exercise tool
Then I should see "Item added"
Scenario: Add question "Open" to exercise created "Exercise 1"
Given I am on "/main/exercise/exercise.php?cidReq=TEMP"
Given I am on "/main/exercise/exercise.php?cid=1"
And I follow "Exercise 1"
And I follow "Edit"
And I follow "Open"
@ -120,7 +120,7 @@ Feature: Exercise tool
Then I should see "Item added"
Scenario: Add question "Oral expression" to exercise created "Exercise 1"
Given I am on "/main/exercise/exercise.php?cidReq=TEMP"
Given I am on "/main/exercise/exercise.php?cid=1"
And I follow "Exercise 1"
And I follow "Edit"
And I follow "Oral expression"
@ -131,7 +131,7 @@ Feature: Exercise tool
Then I should see "Item added"
Scenario: Add question "Exact answers combination" to exercise created "Exercise 1"
Given I am on "/main/exercise/exercise.php?cidReq=TEMP"
Given I am on "/main/exercise/exercise.php?cid=1"
And I follow "Exercise 1"
And I follow "Edit"
And I follow "Exact Selection"
@ -147,7 +147,7 @@ Feature: Exercise tool
Then I should see "Item added"
Scenario: Add question "Unique answer with unknown" to exercise created "Exercise 1"
Given I am on "/main/exercise/exercise.php?cidReq=TEMP"
Given I am on "/main/exercise/exercise.php?cid=1"
And I follow "Exercise 1"
And I follow "Edit"
And I follow "Unique answer with unknown"
@ -166,7 +166,7 @@ Feature: Exercise tool
Then I should see "Item added"
Scenario: Add question "Multiple answer true/false/don't know" to exercise created "Exercise 1"
Given I am on "/main/exercise/exercise.php?cidReq=TEMP"
Given I am on "/main/exercise/exercise.php?cid=1"
And I follow "Exercise 1"
And I follow "Edit"
And I follow "Multiple answer true/false/don't know"
@ -191,7 +191,7 @@ Feature: Exercise tool
Then I should see "Item added"
Scenario: Add question "Combination true/false/don't-know" to exercise created "Exercise 1"
Given I am on "/main/exercise/exercise.php?cidReq=TEMP"
Given I am on "/main/exercise/exercise.php?cid=1"
And I follow "Exercise 1"
And I follow "Edit"
And I follow "Combination true/false/don't-know"
@ -209,7 +209,7 @@ Feature: Exercise tool
Then I should see "Item added"
Scenario: Add question "Global multiple answer" to exercise created "Exercise 1"
Given I am on "/main/exercise/exercise.php?cidReq=TEMP"
Given I am on "/main/exercise/exercise.php?cid=1"
And I follow "Exercise 1"
And I follow "Edit"
And I follow "Global multiple answer"
@ -233,14 +233,14 @@ Feature: Exercise tool
Then I should see "Item added"
Scenario: Duplicate exercise
Given I am on "/main/exercise/exercise.php?cidReq=TEMP"
Given I am on "/main/exercise/exercise.php?cid=1"
And I follow "Copy this exercise as a new one"
And I confirm the popup
Then I should see "Exercise copied"
And I should see "Exercise 1 - Copy"
Scenario: Import exercise to test questions categories
Given I am on "/main/exercise/upload_exercise.php?cidReq=TEMP"
Given I am on "/main/exercise/upload_exercise.php?cid=1"
And I should see "Import quiz from Excel"
And I attach the file "/tests/behat/uploadable_files/exercise.xls" to "user_upload_quiz"
When I press "Upload"
@ -248,7 +248,7 @@ Feature: Exercise tool
Then I should see "Exercise for Behat test"
Scenario: Import exercise from excel
Given I am on "/main/exercise/upload_exercise.php?cidReq=TEMP"
Given I am on "/main/exercise/upload_exercise.php?cid=1"
Then I should see "Import quiz from Excel"
Then I attach the file "/main/exercise/quiz_template.xls" to "user_upload_quiz"
And I press "Upload"
@ -256,7 +256,7 @@ Feature: Exercise tool
Then I should see "Definition of oligarchy"
Scenario: Try exercise "Exercise 1"
Given I am on "/main/exercise/exercise.php?cidReq=TEMP"
Given I am on "/main/exercise/exercise.php?cid=1"
And I follow "Exercise 1"
And I follow "Start test"
# Question 1
@ -319,7 +319,7 @@ Feature: Exercise tool
Then I should see "Score for the test: 83 / 117"
Scenario: Check exercise result
Given I am on "/main/exercise/exercise.php?cidReq=TEMP"
Given I am on "/main/exercise/exercise.php?cid=1"
And I follow "Exercise 1"
And I follow "Edit"
And I follow "Results and feedback"
@ -359,7 +359,7 @@ Feature: Exercise tool
Given I am a student
And I am on course "TEMP" homepage in session "Session Exercise"
Then I should see "TEMP (Session Exercise)"
And I am on "/main/exercise/exercise.php?cidReq=TEMP"
And I am on "/main/exercise/exercise.php?cid=1"
And I follow "Exercise for Behat test"
And I follow "Start test"
When wait for the page to be loaded
@ -401,7 +401,7 @@ Feature: Exercise tool
Given I am on "/user_portal.php"
And I am on course "TEMP" homepage in session "Session Exercise"
Then I should see "TEMP (Session Exercise)"
And I am on "/main/exercise/exercise.php?cidReq=TEMP"
And I am on "/main/exercise/exercise.php?cid=1"
And I follow "Exercise for Behat test"
And I follow "Results and feedback"
Then I should see "Learner score"
@ -416,18 +416,18 @@ Feature: Exercise tool
| Total | 190 / 190 | 100% |
Scenario: Delete an exercise
Given I am on "/main/exercise/exercise.php?cidReq=TEMP"
Given I am on "/main/exercise/exercise.php?cid=1"
And I follow "Delete"
And I confirm the popup
Then I should see "The test has been deleted"
Scenario: Delete an exercise category
Given I am on "/main/exercise/tests_category.php?cidReq=TEMP"
Given I am on "/main/exercise/tests_category.php?cid=1"
And I follow "Delete"
Then I should see "Category deleted"
Scenario: Delete an exercise category
Given I am on "/main/exercise/tests_category.php?cidReq=TEMP"
Given I am on "/main/exercise/tests_category.php?cid=1"
And I follow "Delete"
Then I should see "Category deleted"

@ -7,7 +7,7 @@ Feature: Forum tool
And I am on course "TEMP" homepage
Scenario: Create a forum category
Given I am on "/main/forum/index.php?action=add&content=forumcategory&cidReq=TEMP"
Given I am on "/main/forum/index.php?action=add&content=forumcategory&cid=1"
When I fill in the following:
| forum_category_title | Forum Category Test |
And I fill in ckeditor field "forum_category_comment" with "This is the first forum category for test"
@ -15,7 +15,7 @@ Feature: Forum tool
Then I should see "The forum category has been added"
Scenario: Create a forum
Given I am on "/main/forum/index.php?action=add&content=forum&cidReq=TEMP"
Given I am on "/main/forum/index.php?action=add&content=forum&cid=1"
When I fill in the following:
| forum_title | Forum Test |
And I fill in ckeditor field "forum_comment" with "This is the first forum for test"
@ -23,7 +23,7 @@ Feature: Forum tool
Then I should see "The forum has been added"
Scenario: Create a forum thread
Given I am on "/main/forum/index.php?cidReq=TEMP"
Given I am on "/main/forum/index.php?cid=1"
And I follow "Forum Test"
And I follow "Create thread"
And wait for the page to be loaded
@ -34,7 +34,7 @@ Feature: Forum tool
Then I should see "The new thread has been added"
Scenario: Reply to forum message
Given I am on "/main/forum/index.php?cidReq=TEMP"
Given I am on "/main/forum/index.php?cid=1"
And I follow "Forum Test"
When I follow "Thread One"
When I follow "Reply to this thread"
@ -45,7 +45,7 @@ Feature: Forum tool
Then I should see "The reply has been added"
Scenario: Delete a forum message
Given I am on "/main/forum/index.php?cidReq=TEMP"
Given I am on "/main/forum/index.php?cid=1"
And I follow "Forum Test"
When I follow "Delete"
And I confirm the popup

@ -7,21 +7,21 @@ Feature: Group tool
And I am on course "TEMP" homepage
Scenario: Delete default category
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
Then I should see "Default groups"
Then I follow "Delete"
Then I confirm the popup
Then I should see "The category has been deleted"
Scenario: Create a group directory
Given I am on "/main/group/group_category.php?cidReq=TEMP&id_session=0&action=add_category"
Given I am on "/main/group/group_category.php?cid=1&sid=0&action=add_category"
When I fill in the following:
| title | Group category 1 |
And I press "group_category_submit"
Then I should see "Category created"
Scenario: Create 4 groups
Given I am on "/main/group/group_creation.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group_creation.php?cid=1&sid=0"
When I fill in the following:
| number_of_groups | 5 |
And I press "submit"
@ -42,7 +42,7 @@ Feature: Group tool
Scenario: Create document folder in group
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0001"
Then I should see "Group 0001"
And I follow "Documents"
@ -55,7 +55,7 @@ Feature: Group tool
Then I should see "Folder created"
Scenario: Create document inside folder in group
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0001"
Then I should see "Group 0001"
And I follow "Documents"
@ -70,7 +70,7 @@ Feature: Group tool
Then I should see "Item added"
Scenario: Upload a document inside folder in group
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0001"
Then I should see "Group 0001"
And I follow "Documents"
@ -86,7 +86,7 @@ Feature: Group tool
Then I should see "File upload succeeded"
Scenario: Delete 2 uploaded files
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0001"
Then I should see "Group 0001"
And I follow "Documents"
@ -98,7 +98,7 @@ Feature: Group tool
Then I follow "delete_item"
Scenario: Delete directory
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0001"
Then I should see "Group 0001"
And I follow "Documents"
@ -109,7 +109,7 @@ Feature: Group tool
Then I follow "delete_item"
Scenario: Add fapple to the Group 0001
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0001"
Then I should see "Group 0001"
Then I follow "Edit this group"
@ -125,7 +125,7 @@ Feature: Group tool
Then I should see "Fiona"
Scenario: Add fapple to the Group 0003 not allowed because group category allows 1 user per group
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0003"
Then I should see "Group 0003"
Then I follow "Edit this group"
@ -142,7 +142,7 @@ Feature: Group tool
# Group category overwrites all other groups settings.
Scenario: Change Group category to allow multiple inscription of the user
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Edit this category"
Then I should see "Edit group category: Group category 1"
Then I fill in select bootstrap static by text "#groups_per_user" select "10"
@ -150,7 +150,7 @@ Feature: Group tool
Then I should see "Group settings have been modified"
Scenario: Change Group 0003 settings to make announcements private
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0003"
Then I should see "Group 0003"
Then I follow "Edit this group"
@ -159,7 +159,7 @@ Feature: Group tool
Then I should see "Group settings modified"
Scenario: Change Group 0004 settings to make it private
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0004"
Then I should see "Group 0004"
Then I follow "Edit this group"
@ -168,7 +168,7 @@ Feature: Group tool
Then I should see "Group settings modified"
Scenario: Change Group 0005 settings to make announcements private between users
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0005"
Then I should see "Group 0005"
Then I follow "Edit this group"
@ -177,7 +177,7 @@ Feature: Group tool
Then I should see "Group settings modified"
Scenario: Add fapple and acostea to Group 0005
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0005"
Then I should see "Group 0005"
Then I follow "Edit this group"
@ -195,7 +195,7 @@ Feature: Group tool
Then I should see "Andrea"
Scenario: Add fapple to the Group 0003
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0003"
Then I should see "Group 0003"
Then I follow "Edit this group"
@ -211,7 +211,7 @@ Feature: Group tool
Then I should see "Fiona"
Scenario: Add acostea to the Group 0002
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0002"
Then I should see "Group 0002"
Then I follow "Edit this group"
@ -227,7 +227,7 @@ Feature: Group tool
Then I should see "Andrea"
Scenario: Create an announcement for everybody inside Group 0001
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0001"
Then I should see "Group 0001"
And I follow "Announcements"
@ -245,7 +245,7 @@ Feature: Group tool
Then I should see "Announcement has been added"
Scenario: Create an announcement for fapple inside Group 0001
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0001"
Then I should see "Group 0001"
And I follow "Announcements"
@ -266,7 +266,7 @@ Feature: Group tool
Then I should see "Announcement has been added"
Scenario: Create an announcement for everybody inside Group 0003 (private)
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0003"
Then I should see "Group 0003"
And I follow "Announcements"
@ -284,7 +284,7 @@ Feature: Group tool
Then I should see "Announcement has been added"
Scenario: Create an announcement for fapple inside Group 0003
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0003"
Then I should see "Group 0003"
And I follow "Announcements"
@ -306,7 +306,7 @@ Feature: Group tool
Scenario: Create an announcement as acostea and send only to fapple
Given I am logged as "acostea"
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0005"
Then I should see "Group 0005"
And I follow "Announcements"
@ -329,7 +329,7 @@ Feature: Group tool
Scenario: Check fapple/acostea access of announcements
Given I am logged as "fapple"
And I am on course "TEMP" homepage
And I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
And I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0001"
Then I should see "Group 0001"
Then I follow "Announcements"
@ -345,7 +345,7 @@ Feature: Group tool
Then I follow "Announcement for all users inside Group 0001"
Then I save current URL with name "announcement_for_all_users_group_0001_public"
Then I should see "Announcement description in Group 0001"
And I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
And I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0003"
Then I should see "Group 0003"
Then I follow "Announcements"
@ -361,7 +361,7 @@ Feature: Group tool
Then I follow "Announcement for all users inside Group 0003"
Then I should see "Announcement description in Group 0003"
Then I save current URL with name "announcement_for_all_users_group_0003_private"
And I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
And I am on "/main/group/group.php?cid=1&sid=0"
And I follow "Group 0005"
Then I should see "Group 0005"
Then I follow "Announcements"
@ -373,7 +373,7 @@ Feature: Group tool
## Finish tests with fapple now check access with acostea ##
Given I am logged as "acostea"
And I am on course "TEMP" homepage
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
Then I should see "Group 0001"
And I should see "Group 0002"
And I should see "Group 0003"
@ -387,7 +387,7 @@ Feature: Group tool
Given I am logged as "acostea"
And I am on course "TEMP" homepage
Given I am on "/main/group/group.php?cidReq=TEMP&id_session=0"
Given I am on "/main/group/group.php?cid=1&sid=0"
Then I should see "Group 0001"
And I should see "Group 0002"
And I should see "Group 0003"

@ -7,7 +7,7 @@ Feature: Link tool
And I am on course "TEMP" homepage
Scenario: Create a link category
Given I am on "/main/link/link.php?action=addcategory&cidReq=TEMP"
Given I am on "/main/link/link.php?action=addcategory&cid=1"
When I fill in the following:
| category_title | Category 1 |
| description | Category description |
@ -15,7 +15,7 @@ Feature: Link tool
Then I should see "Category added"
Scenario: Create a link
Given I am on "/main/link/link.php?action=addlink&cidReq=TEMP"
Given I am on "/main/link/link.php?action=addlink&cid=1"
When I fill in the following:
| url | http://www.chamilo.org |
| title | Chamilo |
@ -23,7 +23,7 @@ Feature: Link tool
Then I should see "The link has been added"
# Scenario: Create a link with category
# Given I am on "/main/link/link.php?action=addlink&cidReq=TEMP"
# Given I am on "/main/link/link.php?action=addlink&cid=1"
# When I fill in the following:
# | url | http://www.chamilo.org |
# | title | Chamilo in category 1 |
@ -32,13 +32,13 @@ Feature: Link tool
# Then I should see "The link has been added"
Scenario: Delete link
Given I am on "/main/link/link.php?cidReq=TEMP"
Given I am on "/main/link/link.php?cid=1"
And I follow "Delete"
And I confirm the popup
Then I should see "The link has been deleted"
Scenario: Delete link category
Given I am on "/main/link/link.php?cidReq=TEMP"
Given I am on "/main/link/link.php?cid=1"
And I follow "Delete"
Then I should see "The category has been deleted."

@ -7,14 +7,14 @@ Feature: LP tool
And I am on course "TEMP" homepage
Scenario: Create a LP category
Given I am on "/main/lp/lp_controller.php?cidReq=TEMP&action=add_lp_category"
Given I am on "/main/lp/lp_controller.php?cid=1&action=add_lp_category"
When I fill in the following:
| name | LP category 1 |
And I press "submit"
Then I should see "Added"
Scenario: Create a LP
Given I am on "/main/lp/lp_controller.php?cidReq=TEMP&action=add_lp"
Given I am on "/main/lp/lp_controller.php?cid=1&action=add_lp"
When I fill in the following:
| lp_name | LP 1 |
# And I select "LP category 1" from "category_id"
@ -22,7 +22,7 @@ Feature: LP tool
Then I should see "Click on the [Learner view] button to see your learning path"
Scenario: Add document to LP
Given I am on "/main/lp/lp_controller.php?cidReq=TEMP&action=list"
Given I am on "/main/lp/lp_controller.php?cid=1&action=list"
And I follow "Edit learnpath"
And I follow "Create a new document"
When I fill in the following:
@ -32,7 +32,7 @@ Feature: LP tool
Then I should see "Document 1"
Scenario: Add an exercise to LP
Given I am on "/main/lp/lp_controller.php?cidReq=TEMP&action=list"
Given I am on "/main/lp/lp_controller.php?cid=1&action=list"
And I follow "Edit learnpath"
And I follow "Tests"
And I follow "Exercise 1"
@ -42,42 +42,42 @@ Feature: LP tool
And I should see "Exercise 1"
Scenario: Enter LP
Given I am on "/main/lp/lp_controller.php?cidReq=TEMP&action=list"
Given I am on "/main/lp/lp_controller.php?cid=1&action=list"
And I follow "LP 1"
And wait for the page to be loaded
Then I should see "LP 1"
And I should see "Document 1"
And I should see "Exercise 1"
And I am on "/main/lp/lp_controller.php?cidReq=TEMP&action=list"
And I am on "/main/lp/lp_controller.php?cid=1&action=list"
Then I should see "LP 1"
# Scenario: Check the PDF export in LP list if hide SCORM PDF link is false
# Given I am on "/main/admin/settings.php?category=Course"
# And I check the "hide_scorm_pdf_link" radio button with "false" value
# And I press "Save settings"
# And I am on "/main/lp/lp_controller.php?cidReq=TEMP&action=list&isStudentView=true"
# And I am on "/main/lp/lp_controller.php?cid=1&action=list&isStudentView=true"
# Then I should see an icon with title "Export to PDF"
#
# Scenario: Check the PDF export in LP list if hide SCORM PDF link is true
# Given I am on "/main/admin/settings.php?category=Course"
# And I check the "hide_scorm_pdf_link" radio button with "true" value
# And I press "Save settings"
# And I am on "/main/lp/lp_controller.php?cidReq=TEMP&action=list&isStudentView=true"
# And I am on "/main/lp/lp_controller.php?cid=1&action=list&isStudentView=true"
# Then I should not see an icon with title "Export to PDF"
Scenario: LP exists and LP category exists
And I am on "/main/lp/lp_controller.php?cidReq=TEMP&id_session=0&gidReq=0&gradebook=0&origin="
And I am on "/main/lp/lp_controller.php?cid=1&sid=0&gidReq=0&gradebook=0&origin="
Then I should see "LP 1"
And I should see "LP category 1"
Scenario: Delete a LP
Given I am on "/main/lp/lp_controller.php?cidReq=TEMP"
Given I am on "/main/lp/lp_controller.php?cid=1"
And I follow "Delete"
And I confirm the popup
Then I should not see "LP 1"
Scenario: Delete a LP category
Given I am on "/main/lp/lp_controller.php?cidReq=TEMP"
Given I am on "/main/lp/lp_controller.php?cid=1"
Then I should see "LP category 1"
And I follow "Delete"
Then I should see "Deleted"

@ -5,7 +5,7 @@ Feature: Work tool
Scenario: Create a work
Given I am a platform administrator
And I am on course "TEMP" homepage
And I am on "/main/work/work.php?action=create_dir&cidReq=TEMP"
And I am on "/main/work/work.php?action=create_dir&cid=1"
When I fill in the following:
| new_dir | Work 1 |
And I fill in ckeditor field "description" with "Work description"
@ -15,7 +15,7 @@ Feature: Work tool
Scenario: Edit a work
Given I am a platform administrator
And I am on course "TEMP" homepage
And I am on "/main/work/work.php?cidReq=TEMP"
And I am on "/main/work/work.php?cid=1"
And wait for the page to be loaded
And I follow "Work 1"
Then I should see "Work description"
@ -27,7 +27,7 @@ Feature: Work tool
Scenario: Send work as student
Given I am a student
And I am on "/main/work/work.php?cidReq=TEMP"
And I am on "/main/work/work.php?cid=1"
And wait for the page to be loaded
And I follow "Work 1"
Then I should see "Work 1"
@ -42,7 +42,7 @@ Feature: Work tool
Scenario: Check that work previously uploaded by student is available for the teacher.
Given I am a platform administrator
And I am on "/main/work/work.php?cidReq=TEMP"
And I am on "/main/work/work.php?cid=1"
And wait for the page to be loaded
And I follow "Work 1"
And wait for the page to be loaded
@ -52,7 +52,7 @@ Feature: Work tool
# Scenario: Add a comment and a attachment to the work previously uploaded by student
# Given I am a platform administrator
# And I am on "/main/work/work.php?cidReq=TEMP"
# And I am on "/main/work/work.php?cid=1"
# And wait for the page to be loaded
# And I follow "Work 1"
# Then I should see "Work description"

Loading…
Cancel
Save