From 759b323e0e3dd861ad1aeb159f6e6fd26c8b6a7c Mon Sep 17 00:00:00 2001 From: David Monllao Date: Fri, 21 Feb 2014 15:18:07 +0800 Subject: [PATCH] MDL-43236 behat: Updating references to deprecated methods --- admin/tests/behat/display_short_names.feature | 2 +- admin/tests/behat/filter_users.feature | 8 +-- admin/tests/behat/upload_users.feature | 4 +- .../behat/tests/behat/basic_actions.feature | 4 +- .../behat/tests/behat/data_generators.feature | 59 +++++++++--------- .../tests/behat/edit_permissions.feature | 6 +- .../tests/behat/get_and_set_fields.feature | 12 ++-- .../tests/behat/manipulate_forms.feature | 2 +- .../behat/tests/behat/nasty_strings.feature | 2 +- .../uploadcourse/tests/behat/create.feature | 2 +- .../uploadcourse/tests/behat/update.feature | 2 +- auth/tests/behat/login.feature | 4 +- .../ui/tests/behat/backup_courses.feature | 8 +-- .../tests/behat/duplicate_activities.feature | 6 +- .../util/ui/tests/behat/import_course.feature | 6 +- .../behat/restore_moodle2_courses.feature | 4 +- badges/tests/behat/award_badge.feature | 20 +++--- .../behat/block_activity_modules.feature | 6 +- .../comments/tests/behat/add_comment.feature | 6 +- .../tests/behat/delete_comment.feature | 6 +- .../tests/behat/view_my_courses.feature | 8 +-- blocks/tests/behat/add_blocks.feature | 6 +- .../configure_block_throughout_site.feature | 6 +- blocks/tests/behat/manage_blocks.feature | 6 +- .../behat/restrict_available_blocks.feature | 6 +- .../behat/return_block_original_state.feature | 6 +- blog/tests/behat/comment.feature | 2 +- calendar/tests/behat/calendar.feature | 6 +- cohort/tests/behat/add_cohort.feature | 2 +- .../tests/behat/upload_cohort_users.feature | 4 +- .../behat/enable_manual_complete_mark.feature | 6 +- .../behat/restrict_activity_by_date.feature | 6 +- .../behat/restrict_activity_by_grade.feature | 6 +- .../restrict_section_availability.feature | 6 +- .../activities_edit_with_block_dock.feature | 6 +- .../behat/activities_group_icons.feature | 30 ++++----- .../behat/activities_indentation.feature | 20 +++--- .../behat/activities_visibility_icons.feature | 18 +++--- course/tests/behat/add_activities.feature | 6 +- course/tests/behat/behat_course.php | 20 +++--- .../behat/category_change_visibility.feature | 20 +++--- .../tests/behat/category_management.feature | 32 +++++----- course/tests/behat/category_resort.feature | 12 ++-- ...course_category_management_listing.feature | 62 +++++++++---------- .../behat/course_change_visibility.feature | 8 +-- course/tests/behat/course_controls.feature | 24 +++---- course/tests/behat/course_resort.feature | 16 ++--- .../tests/behat/create_delete_course.feature | 10 +-- course/tests/behat/edit_settings.feature | 6 +- course/tests/behat/force_group_mode.feature | 18 +++--- .../behat/frontpage_display_modes.feature | 4 +- .../tests/behat/max_number_sections.feature | 4 +- course/tests/behat/move_activities.feature | 6 +- course/tests/behat/move_sections.feature | 14 ++--- .../behat/paged_course_navigation.feature | 4 +- course/tests/behat/rename_roles.feature | 6 +- .../restrict_available_activities.feature | 6 +- .../tests/behat/section_highlighting.feature | 6 +- course/tests/behat/section_visibility.feature | 6 +- enrol/guest/tests/behat/guest_access.feature | 6 +- enrol/self/tests/behat/self_enrolment.feature | 6 +- files/tests/behat/course_files.feature | 4 +- .../rubric/tests/behat/edit_rubric.feature | 8 +-- .../behat/publish_rubric_templates.feature | 12 ++-- .../tests/behat/reuse_own_rubrics.feature | 6 +- grade/tests/behat/grade_view.feature | 6 +- group/tests/behat/auto_creation.feature | 6 +- group/tests/behat/create_groups.feature | 12 ++-- group/tests/behat/delete_groups.feature | 6 +- group/tests/behat/groups_import.feature | 6 +- group/tests/behat/id_uniqueness.feature | 6 +- group/tests/behat/update_groups.feature | 6 +- .../tests/behat/edit_available_icons.feature | 16 ++--- lib/tests/behat/behat_general.php | 2 +- message/tests/behat/block_users.feature | 2 +- message/tests/behat/display_history.feature | 2 +- message/tests/behat/manage_contacts.feature | 2 +- .../tests/behat/message_participants.feature | 6 +- message/tests/behat/search_history.feature | 2 +- .../tests/behat/allow_another_attempt.feature | 6 +- mod/assign/tests/behat/comment_inline.feature | 6 +- .../behat/edit_previous_feedback.feature | 6 +- .../tests/behat/file_submission.feature | 6 +- .../tests/behat/group_submission.feature | 28 ++++----- .../tests/behat/online_submissions.feature | 6 +- .../behat/prevent_submission_changes.feature | 8 +-- mod/assign/tests/behat/quickgrading.feature | 6 +- mod/choice/tests/behat/add_choice.feature | 6 +- .../tests/behat/change_response.feature | 12 ++-- .../tests/behat/limit_responses.feature | 6 +- .../tests/behat/publish_results.feature | 6 +- .../behat/publish_results_anonymously.feature | 6 +- mod/forum/tests/behat/add_forum.feature | 6 +- ...etion_condition_number_discussions.feature | 6 +- .../tests/behat/discussion_display.feature | 6 +- .../tests/behat/edit_post_student.feature | 6 +- .../tests/behat/edit_post_teacher.feature | 6 +- .../behat/single_forum_discussion.feature | 6 +- .../tests/behat/track_read_posts.feature | 6 +- .../behat/entries_always_editable.feature | 14 ++--- .../behat/entries_require_approval.feature | 6 +- .../behat/prevent_duplicate_entries.feature | 6 +- .../behat/print_friendly_version.feature | 14 ++--- .../tests/behat/search_entries.feature | 6 +- .../tests/behat/date_availability.feature | 6 +- .../tests/behat/lesson_navigation.feature | 6 +- .../tests/behat/password_protection.feature | 6 +- mod/lesson/tests/behat/time_limit.feature | 6 +- mod/quiz/tests/behat/add_quiz.feature | 6 +- mod/scorm/tests/behat/add_scorm.feature | 6 +- mod/survey/tests/behat/survey_types.feature | 6 +- .../behat/collaborative_individual.feature | 6 +- mod/wiki/tests/behat/page_history.feature | 8 +-- mod/wiki/tests/behat/preview_page.feature | 6 +- mod/wiki/tests/behat/wiki_formats.feature | 14 ++--- .../tests/behat/workshop_assessment.feature | 20 +++--- my/tests/behat/add_blocks.feature | 6 +- my/tests/behat/reset_page.feature | 6 +- question/tests/behat/copy_questions.feature | 6 +- question/tests/behat/delete_questions.feature | 6 +- question/tests/behat/edit_questions.feature | 6 +- question/tests/behat/preview_question.feature | 6 +- .../tests/behat/question_categories.feature | 6 +- question/tests/behat/sort_questions.feature | 6 +- .../recent/tests/behat/add_recent.feature | 2 +- .../tests/behat/cancel_add_file.feature | 2 +- repository/tests/behat/create_folders.feature | 2 +- .../tests/behat/create_shortcut.feature | 12 ++-- repository/tests/behat/overwrite_file.feature | 6 +- repository/tests/behat/zip_and_unzip.feature | 2 +- .../upload/tests/behat/upload_file.feature | 2 +- user/tests/behat/add_blocks.feature | 6 +- user/tests/behat/reset_page.feature | 6 +- 133 files changed, 555 insertions(+), 556 deletions(-) diff --git a/admin/tests/behat/display_short_names.feature b/admin/tests/behat/display_short_names.feature index 1b41f65dec8..9bf758535ed 100644 --- a/admin/tests/behat/display_short_names.feature +++ b/admin/tests/behat/display_short_names.feature @@ -5,7 +5,7 @@ Feature: Display extended course names I need to display courses short names along with courses full names Background: - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course fullname | C_shortname | 0 | And I log in as "admin" diff --git a/admin/tests/behat/filter_users.feature b/admin/tests/behat/filter_users.feature index 1b7de06a3aa..253ec7c8911 100644 --- a/admin/tests/behat/filter_users.feature +++ b/admin/tests/behat/filter_users.feature @@ -5,19 +5,19 @@ Feature: An administrator can filter user accounts by role, cohort and other pro I need to filter the users account list using different filter Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | auth | confirmed | | user1 | User | One | one@asd.com | manual | 0 | | user2 | User | Two | two@asd.com | ldap | 1 | | user3 | User | Three | three@asd.com | manual | 1 | | user4 | User | Four | four@asd.com | ldap | 0 | - And the following "cohorts" exists: + And the following "cohorts" exist: | name | idnumber | | Cohort 1 | CH1 | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | user1 | C1 | student | | user2 | C1 | student | diff --git a/admin/tests/behat/upload_users.feature b/admin/tests/behat/upload_users.feature index d67085b329c..847a632642d 100644 --- a/admin/tests/behat/upload_users.feature +++ b/admin/tests/behat/upload_users.feature @@ -6,10 +6,10 @@ Feature: Upload users @javascript Scenario: Upload users enrolling them on courses and groups - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Maths | math102 | 0 | - And the following "groups" exists: + And the following "groups" exist: | name | course | idnumber | | Section 1 | math102 | S1 | | Section 3 | math102 | S3 | diff --git a/admin/tool/behat/tests/behat/basic_actions.feature b/admin/tool/behat/tests/behat/basic_actions.feature index 4f482dc6cb7..73d9a1aeb2b 100644 --- a/admin/tool/behat/tests/behat/basic_actions.feature +++ b/admin/tool/behat/tests/behat/basic_actions.feature @@ -34,7 +34,7 @@ Feature: Page contents assertions @javascript Scenario: Locators inside specific DOM nodes using CSS selectors - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And I log in as "admin" @@ -45,7 +45,7 @@ Feature: Page contents assertions @javascript Scenario: Locators inside specific DOM nodes using XPath - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And I log in as "admin" diff --git a/admin/tool/behat/tests/behat/data_generators.feature b/admin/tool/behat/tests/behat/data_generators.feature index 59e53396c39..35614194d06 100644 --- a/admin/tool/behat/tests/behat/data_generators.feature +++ b/admin/tool/behat/tests/behat/data_generators.feature @@ -5,7 +5,7 @@ Feature: Set up contextual data for tests I need to fill the database with fixtures Scenario: Add a bunch of users - Given the following "users" exists: + Given the following "users" exist: | username | password | firstname | lastname | | testuser | testuser | | | | testuser2 | testuser2 | TestFirstname | TestLastname | @@ -16,12 +16,12 @@ Feature: Set up contextual data for tests @javascript Scenario: Add a bunch of courses and categories - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | | Cat 2 | CAT1 | CAT2 | | Cat 3 | CAT1 | CAT3 | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | COURSE1 | CAT3 | | Course 2 | COURSE2 | CAT3 | @@ -44,14 +44,14 @@ Feature: Set up contextual data for tests @javascript Scenario: Add a bunch of groups and groupings - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | | Course 1 | C1 | - And the following "groups" exists: + And the following "groups" exist: | name | course | idnumber | | Group 1 | C1 | G1 | | Group 2 | C1 | G2 | - And the following "groupings" exists: + And the following "groupings" exist: | name | course | idnumber | | Grouping 1 | C1 | GG1 | | Grouping 2 | C1 | GG2 | @@ -67,21 +67,21 @@ Feature: Set up contextual data for tests @javascript Scenario: Role overrides - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "categories" exists: + And the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | | Course 1 | C1 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | student1 | C1 | student | | teacher1 | C1 | editingteacher | - And the following "permission overrides" exists: + And the following "permission overrides" exist: | capability | permission | role | contextlevel | reference | | mod/forum:editanypost | Allow | student | Course | C1 | | mod/forum:replynews | Prevent | editingteacher | Course | C1 | @@ -97,13 +97,13 @@ Feature: Set up contextual data for tests And I press "Cancel" Scenario: Add course enrolments - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | student1 | C1 | student | When I log in as "student1" @@ -111,27 +111,27 @@ Feature: Set up contextual data for tests Then I should see "Topic 1" Scenario: Add role assigns - Given the following "roles" exists: + Given the following "roles" exist: | name | shortname | description | archetype | | Custom editing teacher | custom1 | My custom role 1 | editingteacher | | Custom student | custom2 | | | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | user1 | User | 1 | user1@moodlemoodle.com | | user2 | User | 2 | user2@moodlemoodle.com | | user3 | User | 3 | user3@moodlemoodle.com | | user4 | User | 4 | user4@moodlemoodle.com | | user5 | User | 5 | user5@moodlemoodle.com | - And the following "categories" exists: + And the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | CAT1 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | user4 | C1 | custom1 | - And the following "role assigns" exists: + And the following "role assigns" exist: | user | role | contextlevel | reference | | user1 | manager | System | | | user2 | editingteacher | Category | CAT1 | @@ -157,12 +157,11 @@ Feature: Set up contextual data for tests And I follow "Course 1" And I should see "You can not enrol yourself in this course." - Scenario: Add modules - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | | Course 1 | C1 | - And the following "activities" exists: + And the following "activities" exist: | activity | name | intro | course | idnumber | | assign | Test assignment name | Test assignment description | C1 | assign1 | | assignment | Test assignment22 name | Test assignment22 description | C1 | assignment1 | @@ -218,29 +217,29 @@ Feature: Set up contextual data for tests @javascript Scenario: Add relations between users and groups - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | student1 | Student | 1 | student1@asd.com | | student2 | Student | 2 | student2@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | | Course 1 | C1 | - And the following "groups" exists: + And the following "groups" exist: | name | course | idnumber | | Group 1 | C1 | G1 | | Group 2 | C1 | G2 | - And the following "groupings" exists: + And the following "groupings" exist: | name | course | idnumber | | Grouping 1 | C1 | GG1 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | student1 | C1 | student | | student2 | C1 | student | - And the following "group members" exists: + And the following "group members" exist: | user | group | | student1 | G1 | | student2 | G2 | - And the following "grouping groups" exists: + And the following "grouping groups" exist: | grouping | group | | GG1 | G1 | When I log in as "admin" diff --git a/admin/tool/behat/tests/behat/edit_permissions.feature b/admin/tool/behat/tests/behat/edit_permissions.feature index c2111ec698b..d16e5435e21 100644 --- a/admin/tool/behat/tests/behat/edit_permissions.feature +++ b/admin/tool/behat/tests/behat/edit_permissions.feature @@ -5,13 +5,13 @@ Feature: Edit capabilities I need to allow/deny the existing capabilities at different levels Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | diff --git a/admin/tool/behat/tests/behat/get_and_set_fields.feature b/admin/tool/behat/tests/behat/get_and_set_fields.feature index 3857653a266..780a315f600 100644 --- a/admin/tool/behat/tests/behat/get_and_set_fields.feature +++ b/admin/tool/behat/tests/behat/get_and_set_fields.feature @@ -5,31 +5,31 @@ Feature: Verify that all form fields values can be get and set I need to verify it all works in real moodle forms Background: - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "users" exists: + And the following "users" exist: | username | email | firstname | lastname | | student1 | s1@asd.com | Student | 1 | | student2 | s2@asd.com | Student | 2 | | student3 | s3@asd.com | Student | 3 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | student1 | C1 | student | | student2 | C1 | student | | student3 | C1 | student | | admin | C1 | editingteacher | - And the following "groups" exists: + And the following "groups" exist: | name | description | course | idnumber | | Group 1 | G1 description | C1 | G1 | | Group 2 | G1 description | C1 | G2 | - And the following "group members" exists: + And the following "group members" exist: | user | group | | student1 | G1 | | student2 | G1 | | student2 | G2 | | student3 | G2 | - And the following "activities" exists: + And the following "activities" exist: | activity | course | idnumber | name | intro | firstpagetitle | wikimode | visible | | wiki | C1 | wiki1 | Test this one | Test this one | Test this one | collaborative | 0 | And I log in as "admin" diff --git a/admin/tool/behat/tests/behat/manipulate_forms.feature b/admin/tool/behat/tests/behat/manipulate_forms.feature index ce44fad1f34..fdde569e48c 100644 --- a/admin/tool/behat/tests/behat/manipulate_forms.feature +++ b/admin/tool/behat/tests/behat/manipulate_forms.feature @@ -21,7 +21,7 @@ Feature: Forms manipulation @javascript Scenario: Expand all fieldsets and advanced elements - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And I log in as "admin" diff --git a/admin/tool/behat/tests/behat/nasty_strings.feature b/admin/tool/behat/tests/behat/nasty_strings.feature index c67d6cd6c13..d713f8ad9d9 100644 --- a/admin/tool/behat/tests/behat/nasty_strings.feature +++ b/admin/tool/behat/tests/behat/nasty_strings.feature @@ -6,7 +6,7 @@ Feature: Transform steps arguments Background: Given I am on homepage - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And I log in as "admin" diff --git a/admin/tool/uploadcourse/tests/behat/create.feature b/admin/tool/uploadcourse/tests/behat/create.feature index 60688091aad..026fe92feac 100644 --- a/admin/tool/uploadcourse/tests/behat/create.feature +++ b/admin/tool/uploadcourse/tests/behat/create.feature @@ -5,7 +5,7 @@ Feature: An admin can create courses using a CSV file I need to be able to upload a CSV file and navigate through the import process Background: - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | First course | C1 | 0 | And I log in as "admin" diff --git a/admin/tool/uploadcourse/tests/behat/update.feature b/admin/tool/uploadcourse/tests/behat/update.feature index 4f115892406..b505af6c3bf 100644 --- a/admin/tool/uploadcourse/tests/behat/update.feature +++ b/admin/tool/uploadcourse/tests/behat/update.feature @@ -5,7 +5,7 @@ Feature: An admin can update courses using a CSV file I need to be able to upload a CSV file and navigate through the import process Background: - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Some random name | C1 | 0 | And I log in as "admin" diff --git a/auth/tests/behat/login.feature b/auth/tests/behat/login.feature index eff7f6fb6b4..a9d8e671bfd 100644 --- a/auth/tests/behat/login.feature +++ b/auth/tests/behat/login.feature @@ -14,7 +14,7 @@ Feature: Authentication Then I should see "You are logged in as Admin User" Scenario: Log in as an existing admin user filling the form - Given the following "users" exists: + Given the following "users" exist: | username | password | firstname | lastname | email | | testuser | testuser | Test | User | moodle@moodlemoodle.com | And I am on homepage @@ -25,7 +25,7 @@ Feature: Authentication Then I should see "You are logged in as" Scenario: Log in as an unexisting user filling the form - Given the following "users" exists: + Given the following "users" exist: | username | password | firstname | lastname | email | | testuser | testuser | Test | User | moodle@moodlemoodle.com | And I am on homepage diff --git a/backup/util/ui/tests/behat/backup_courses.feature b/backup/util/ui/tests/behat/backup_courses.feature index 60b187117fa..f8b2a7ab0fa 100644 --- a/backup/util/ui/tests/behat/backup_courses.feature +++ b/backup/util/ui/tests/behat/backup_courses.feature @@ -5,11 +5,11 @@ Feature: Backup Moodle courses I need to create backups of courses Background: - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | numsections | | Course 1 | C1 | 0 | 10 | | Course 2 | C2 | 0 | 2 | - And the following "activities" exists: + And the following "activities" exist: | activity | course | idnumber | name | intro | section | | assign | C2 | assign1 | Test assign | Assign description | 1 | | data | C2 | data1 | Test data | Database description | 2 | @@ -37,8 +37,8 @@ Feature: Backup Moodle courses And I should not see "Section 3" And I press "Continue" And I click on "Continue" "button" in the ".bcs-current-course" "css_element" - And "//div[contains(concat(' ', normalize-space(@class), ' '), ' fitem ')][contains(., 'Include calendar events')]/descendant::img" "xpath_element" should exists - And "Include course logs" "checkbox" should exists + And "//div[contains(concat(' ', normalize-space(@class), ' '), ' fitem ')][contains(., 'Include calendar events')]/descendant::img" "xpath_element" should exist + And "Include course logs" "checkbox" should exist And I press "Next" @javascript diff --git a/backup/util/ui/tests/behat/duplicate_activities.feature b/backup/util/ui/tests/behat/duplicate_activities.feature index 8bff1de93c5..d839bebf91b 100644 --- a/backup/util/ui/tests/behat/duplicate_activities.feature +++ b/backup/util/ui/tests/behat/duplicate_activities.feature @@ -6,13 +6,13 @@ Feature: Duplicate activities @javascript Scenario: Duplicate an activity - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" diff --git a/backup/util/ui/tests/behat/import_course.feature b/backup/util/ui/tests/behat/import_course.feature index 6953b713c91..274b04b1ee3 100644 --- a/backup/util/ui/tests/behat/import_course.feature +++ b/backup/util/ui/tests/behat/import_course.feature @@ -6,14 +6,14 @@ Feature: Import course's contents into another course @javascript Scenario: Import course's contents to another course - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | | Course 2 | C2 | 0 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | teacher1 | C2 | editingteacher | diff --git a/backup/util/ui/tests/behat/restore_moodle2_courses.feature b/backup/util/ui/tests/behat/restore_moodle2_courses.feature index eb190e4e8f3..e8712330894 100644 --- a/backup/util/ui/tests/behat/restore_moodle2_courses.feature +++ b/backup/util/ui/tests/behat/restore_moodle2_courses.feature @@ -5,12 +5,12 @@ Feature: Restore Moodle 2 course backups I need to restore them inside other Moodle courses or in new courses Background: - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | format | numsections | coursedisplay | | Course 1 | C1 | 0 | topics | 15 | 1 | | Course 2 | C2 | 0 | topics | 5 | 0 | | Course 3 | C3 | 0 | topics | 2 | 0 | - And the following "activities" exists: + And the following "activities" exist: | activity | course | idnumber | name | intro | section | | assign | C3 | assign1 | Test assign name | Assign description | 1 | | data | C3 | data1 | Test database name | Database description | 2 | diff --git a/badges/tests/behat/award_badge.feature b/badges/tests/behat/award_badge.feature index b6ac009ab00..38939da8435 100644 --- a/badges/tests/behat/award_badge.feature +++ b/badges/tests/behat/award_badge.feature @@ -39,7 +39,7 @@ Feature: Award badges @javascript Scenario: Award site badge - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher | teacher | 1 | teacher1@asd.com | | student | student | 1 | student1@asd.com | @@ -74,15 +74,15 @@ Feature: Award badges @javascript Scenario: Award course badge - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | | student2 | Student | 2 | student2@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | groupmode | | Course 1 | C1 | 0 | 1 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | @@ -119,14 +119,14 @@ Feature: Award badges @javascript Scenario: Award badge on activity completion - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | Frist | teacher1@asd.com | | student1 | Student | First | student1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | @@ -174,14 +174,14 @@ Feature: Award badges @javascript Scenario: Award badge on course completion - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | Frist | teacher1@asd.com | | student1 | Student | First | student1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/blocks/activity_modules/tests/behat/block_activity_modules.feature b/blocks/activity_modules/tests/behat/block_activity_modules.feature index 50df25fb6a6..b210f5a4a2b 100644 --- a/blocks/activity_modules/tests/behat/block_activity_modules.feature +++ b/blocks/activity_modules/tests/behat/block_activity_modules.feature @@ -13,7 +13,7 @@ Feature: Block activity modules And I click on "//a[@title=\"Show\"]" "xpath_element" in the "Feedback" "table_row" Scenario: Add activities block on the frontpage - Given the following "activities" exists: + Given the following "activities" exist: | activity | name | intro | course | idnumber | | assign | Frontpage assignment name | Frontpage assignment description | Acceptance test site | assign0 | | book | Frontpage book name | Frontpage book description | Acceptance test site | book0 | @@ -88,10 +88,10 @@ Feature: Block activity modules And I should see "Frontpage url name" Scenario: Add activities block in a course - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "activities" exists: + And the following "activities" exist: | activity | name | intro | course | idnumber | | assign | Test assignment name | Test assignment description | C1 | assign1 | | book | Test book name | Test book description | C1 | book1 | diff --git a/blocks/comments/tests/behat/add_comment.feature b/blocks/comments/tests/behat/add_comment.feature index ec70958ac27..1fd16c66309 100644 --- a/blocks/comments/tests/behat/add_comment.feature +++ b/blocks/comments/tests/behat/add_comment.feature @@ -5,14 +5,14 @@ Feature: Add a comment to the comments block In need to add comments to courses Background: - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | Frist | teacher1@asd.com | | student1 | Student | First | student1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/blocks/comments/tests/behat/delete_comment.feature b/blocks/comments/tests/behat/delete_comment.feature index 077a0c1e293..2c149824a18 100644 --- a/blocks/comments/tests/behat/delete_comment.feature +++ b/blocks/comments/tests/behat/delete_comment.feature @@ -6,14 +6,14 @@ Feature: Delete comment block messages @javascript Scenario: Delete comments with Javascript enabled - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | First | teacher1@asd.com | | student1 | Student | First | student1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/blocks/navigation/tests/behat/view_my_courses.feature b/blocks/navigation/tests/behat/view_my_courses.feature index d1670b40747..7c953c9eb22 100644 --- a/blocks/navigation/tests/behat/view_my_courses.feature +++ b/blocks/navigation/tests/behat/view_my_courses.feature @@ -5,10 +5,10 @@ Feature: View my courses in navigation block I need my courses displayed in the navigation block Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | student1 | Student | 1 | student1@asd.com | - And the following "categories" exists: + And the following "categories" exist: | name | category | idnumber | | cat1 | 0 | cat1 | | cat2 | 0 | cat2 | @@ -16,7 +16,7 @@ Feature: View my courses in navigation block | cat31 | cat3 | cat31 | | cat32 | cat3 | cat32 | | cat33 | cat3 | cat33 | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course1 | c1 | cat1 | | Course2 | c2 | cat2 | @@ -24,7 +24,7 @@ Feature: View my courses in navigation block | Course32 | c32 | cat32 | | Course331| c331 | cat33 | | Course332| c332 | cat33 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | student1 | c1 | student | | student1 | c31 | student | diff --git a/blocks/tests/behat/add_blocks.feature b/blocks/tests/behat/add_blocks.feature index 52c510865dd..0762cc8e14d 100644 --- a/blocks/tests/behat/add_blocks.feature +++ b/blocks/tests/behat/add_blocks.feature @@ -5,14 +5,14 @@ Feature: Add blocks I need to add blocks to pages Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | student1 | Student | 1 | student1@asd.com | | student2 | Student | 2 | student2@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | student1 | C1 | student | | student2 | C1 | student | diff --git a/blocks/tests/behat/configure_block_throughout_site.feature b/blocks/tests/behat/configure_block_throughout_site.feature index cf0a5c02b52..c326c64143d 100644 --- a/blocks/tests/behat/configure_block_throughout_site.feature +++ b/blocks/tests/behat/configure_block_throughout_site.feature @@ -6,13 +6,13 @@ Feature: Add and configure blocks throughout the site @javascript Scenario: Add and configure a block throughtout the site - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | manager1 | Manager | 1 | manager1@asd.com | - And the following "system role assigns" exists: + And the following "system role assigns" exist: | user | course | role | | manager1 | Acceptance test site | manager | And I log in as "manager1" diff --git a/blocks/tests/behat/manage_blocks.feature b/blocks/tests/behat/manage_blocks.feature index 13e23be1bed..c96d963fcc0 100644 --- a/blocks/tests/behat/manage_blocks.feature +++ b/blocks/tests/behat/manage_blocks.feature @@ -5,13 +5,13 @@ Feature: Block appearances I need to add and modify block configuration for the page Background: - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | teacher | 1 | teacher1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "admin" diff --git a/blocks/tests/behat/restrict_available_blocks.feature b/blocks/tests/behat/restrict_available_blocks.feature index 58656a59e76..1093de1e542 100644 --- a/blocks/tests/behat/restrict_available_blocks.feature +++ b/blocks/tests/behat/restrict_available_blocks.feature @@ -5,13 +5,13 @@ Feature: Allowed blocks controls I need to restrict some blocks to be used in courses Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | diff --git a/blocks/tests/behat/return_block_original_state.feature b/blocks/tests/behat/return_block_original_state.feature index 6a8dd03bf0b..6981d33dda3 100644 --- a/blocks/tests/behat/return_block_original_state.feature +++ b/blocks/tests/behat/return_block_original_state.feature @@ -6,7 +6,7 @@ Feature: The context of a block can always be returned to it's original state. @javascript Scenario: Add and configure a block to display on every page and revert back - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And I log in as "admin" @@ -32,9 +32,9 @@ Feature: The context of a block can always be returned to it's original state. And I press "Save changes" And I should see "Tags" in the "Tags" "block" And I follow "Course 1" - And "Tags" "block" should not exists + And "Tags" "block" should not exist And I click on "Participants" "link" in the "//li[p/span[contains(normalize-space(string(.)), 'Current course')]]" "xpath_element" - And "Tags" "block" should not exists + And "Tags" "block" should not exist And I follow "Course 1" And I add a "Assignment" to section "1" and I fill the form with: | Assignment name | Assignment2 | diff --git a/blog/tests/behat/comment.feature b/blog/tests/behat/comment.feature index 4567026f56e..d6c0a051553 100644 --- a/blog/tests/behat/comment.feature +++ b/blog/tests/behat/comment.feature @@ -5,7 +5,7 @@ Feature: Comment on a blog entry I need to be able to comment on a blog entry Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | testuser | Test | User | moodle@moodlemoodle.com | | testuser2 | Test2 | User2 | moodle2@moodlemoodle.com | diff --git a/calendar/tests/behat/calendar.feature b/calendar/tests/behat/calendar.feature index 858c82616f1..619590c64bc 100644 --- a/calendar/tests/behat/calendar.feature +++ b/calendar/tests/behat/calendar.feature @@ -5,14 +5,14 @@ Feature: Perform basic calendar functionality I need to create calendar data Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | student1 | Student | 1 | student1@asd.com | | student2 | Student | 2 | student2@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | student1 | C1 | student | When I log in as "admin" diff --git a/cohort/tests/behat/add_cohort.feature b/cohort/tests/behat/add_cohort.feature index b490ef5504f..ae54a010f00 100644 --- a/cohort/tests/behat/add_cohort.feature +++ b/cohort/tests/behat/add_cohort.feature @@ -5,7 +5,7 @@ Feature: Add cohorts of users I need to create cohorts and add users on them Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | user1 | First | User | first@user.com | | user2 | Second | User | second@user.com | diff --git a/cohort/tests/behat/upload_cohort_users.feature b/cohort/tests/behat/upload_cohort_users.feature index 22133290607..8f3341b48c9 100644 --- a/cohort/tests/behat/upload_cohort_users.feature +++ b/cohort/tests/behat/upload_cohort_users.feature @@ -6,11 +6,11 @@ Feature: Upload users to a cohort @javascript Scenario: Upload users and assign them to a course with cohort enrolment method enabled - Given the following "cohorts" exists: + Given the following "cohorts" exist: | name | idnumber | | Cohort 1 | ASD | | Cohort 2 | DSA | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | | Course 2 | C2 | 0 | diff --git a/completion/tests/behat/enable_manual_complete_mark.feature b/completion/tests/behat/enable_manual_complete_mark.feature index 4a240c3e05d..7c29e65874f 100644 --- a/completion/tests/behat/enable_manual_complete_mark.feature +++ b/completion/tests/behat/enable_manual_complete_mark.feature @@ -6,14 +6,14 @@ Feature: Allow students to manually mark an activity as complete @javascript Scenario: Mark an activity as completed - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | Frist | teacher1@asd.com | | student1 | Student | First | student1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/completion/tests/behat/restrict_activity_by_date.feature b/completion/tests/behat/restrict_activity_by_date.feature index fc32ad4fa8b..185097a17a0 100644 --- a/completion/tests/behat/restrict_activity_by_date.feature +++ b/completion/tests/behat/restrict_activity_by_date.feature @@ -5,14 +5,14 @@ Feature: Restrict activity availability through date conditions I need to set allow access dates to restrict activity access Background: - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | Frist | teacher1@asd.com | | student1 | Student | First | student1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/completion/tests/behat/restrict_activity_by_grade.feature b/completion/tests/behat/restrict_activity_by_grade.feature index ac2c410c55a..c8f38220f16 100644 --- a/completion/tests/behat/restrict_activity_by_grade.feature +++ b/completion/tests/behat/restrict_activity_by_grade.feature @@ -6,14 +6,14 @@ Feature: Restrict activity availability through grade conditions @javascript Scenario: Show activity greyed-out to students when grade condition is not satisfied - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | Frist | teacher1@asd.com | | student1 | Student | First | student1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/completion/tests/behat/restrict_section_availability.feature b/completion/tests/behat/restrict_section_availability.feature index 3bf2d7994f5..f18b6f567d6 100644 --- a/completion/tests/behat/restrict_section_availability.feature +++ b/completion/tests/behat/restrict_section_availability.feature @@ -5,14 +5,14 @@ Feature: Restrict sections availability through completion or grade conditions I need to restrict sections availability using different conditions Background: - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | Frist | teacher1@asd.com | | student1 | Student | First | student1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/course/tests/behat/activities_edit_with_block_dock.feature b/course/tests/behat/activities_edit_with_block_dock.feature index 89d1717b8cf..dc032a55b62 100644 --- a/course/tests/behat/activities_edit_with_block_dock.feature +++ b/course/tests/behat/activities_edit_with_block_dock.feature @@ -6,13 +6,13 @@ Feature: Open the edit menu when a block is docked @javascript Scenario: Open the action menu with a block docked - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | weeks | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" diff --git a/course/tests/behat/activities_group_icons.feature b/course/tests/behat/activities_group_icons.feature index 16b9d55f444..35dbee9162b 100644 --- a/course/tests/behat/activities_group_icons.feature +++ b/course/tests/behat/activities_group_icons.feature @@ -6,13 +6,13 @@ Feature: Toggle activities groups mode from the course page @javascript Scenario: Groups mode toggle with javascript enabled - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" @@ -26,20 +26,20 @@ Feature: Toggle activities groups mode from the course page | Group mode | No groups | | Force group mode | No | When I press "Save changes" - Then "No groups (Click to change)" "link" should exists - And "//a/child::img[contains(@src, 'groupn')]" "xpath_element" should exists + Then "No groups (Click to change)" "link" should exist + And "//a/child::img[contains(@src, 'groupn')]" "xpath_element" should exist And I click on "No groups (Click to change)" "link" in the "Test forum name" activity - And "Separate groups (Click to change)" "link" should exists - And "//a/child::img[contains(@src, 'groups')]" "xpath_element" should exists + And "Separate groups (Click to change)" "link" should exist + And "//a/child::img[contains(@src, 'groups')]" "xpath_element" should exist And I reload the page - And "Separate groups (Click to change)" "link" should exists - And "//a/child::img[contains(@src, 'groups')]" "xpath_element" should exists + And "Separate groups (Click to change)" "link" should exist + And "//a/child::img[contains(@src, 'groups')]" "xpath_element" should exist And I click on "Separate groups (Click to change)" "link" in the "Test forum name" activity - And "Visible groups (Click to change)" "link" should exists - And "//a/child::img[contains(@src, 'groupv')]" "xpath_element" should exists + And "Visible groups (Click to change)" "link" should exist + And "//a/child::img[contains(@src, 'groupv')]" "xpath_element" should exist And I reload the page - And "Visible groups (Click to change)" "link" should exists - And "//a/child::img[contains(@src, 'groupv')]" "xpath_element" should exists + And "Visible groups (Click to change)" "link" should exist + And "//a/child::img[contains(@src, 'groupv')]" "xpath_element" should exist And I click on "Visible groups (Click to change)" "link" in the "Test forum name" activity - And "No groups (Click to change)" "link" should exists - And "//a/child::img[contains(@src, 'groupn')]" "xpath_element" should exists + And "No groups (Click to change)" "link" should exist + And "//a/child::img[contains(@src, 'groupn')]" "xpath_element" should exist diff --git a/course/tests/behat/activities_indentation.feature b/course/tests/behat/activities_indentation.feature index 2937c17d341..7100a80eea4 100644 --- a/course/tests/behat/activities_indentation.feature +++ b/course/tests/behat/activities_indentation.feature @@ -6,14 +6,14 @@ Feature: Indent items on the course page @javascript Scenario: Indent course items with Javascript enabled - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | weeks | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | @@ -24,14 +24,14 @@ Feature: Indent items on the course page | Name | Test glossary name | | Description | Test glossary description | When I indent right "Test glossary name" activity - Then "#section-1 li.glossary div.mod-indent-1" "css_element" should exists + Then "#section-1 li.glossary div.mod-indent-1" "css_element" should exist And I indent right "Test glossary name" activity - And "//li[@id='section-1']/descendant::li[contains(concat(' ', @class, ' '), ' glossary ')]/descendant::a[not(contains(concat(' ', @class, ' '), ' hidden '))]/descendant::span[normalize-space(.)='Move left']" "xpath_element" should exists - And "#section-1 li.glossary div.mod-indent-2" "css_element" should exists + And "//li[@id='section-1']/descendant::li[contains(concat(' ', @class, ' '), ' glossary ')]/descendant::a[not(contains(concat(' ', @class, ' '), ' hidden '))]/descendant::span[normalize-space(.)='Move left']" "xpath_element" should exist + And "#section-1 li.glossary div.mod-indent-2" "css_element" should exist And I reload the page - And "#section-1 li.glossary div.mod-indent-2" "css_element" should exists + And "#section-1 li.glossary div.mod-indent-2" "css_element" should exist And I indent left "Test glossary name" activity And I indent left "Test glossary name" activity - And "#section-1 li.glossary div.mod-indent-2" "css_element" should not exists - And "#section-1 li.glossary div.mod-indent-1" "css_element" should not exists - And "//li[@id='section-1']/descendant::li[contains(concat(' ', @class, ' '), ' glossary ')]/descendant::a[not(contains(concat(' ', @class, ' '), ' hidden '))]/descendant::span[normalize-space(.)='Move left']" "xpath_element" should not exists + And "#section-1 li.glossary div.mod-indent-2" "css_element" should not exist + And "#section-1 li.glossary div.mod-indent-1" "css_element" should not exist + And "//li[@id='section-1']/descendant::li[contains(concat(' ', @class, ' '), ' glossary ')]/descendant::a[not(contains(concat(' ', @class, ' '), ' hidden '))]/descendant::span[normalize-space(.)='Move left']" "xpath_element" should not exist diff --git a/course/tests/behat/activities_visibility_icons.feature b/course/tests/behat/activities_visibility_icons.feature index 6330050b0d5..ef7195e1cb4 100644 --- a/course/tests/behat/activities_visibility_icons.feature +++ b/course/tests/behat/activities_visibility_icons.feature @@ -6,14 +6,14 @@ Feature: Toggle activities visibility from the course page @javascript Scenario: Hide/Show toggle with javascript enabled - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | @@ -42,13 +42,13 @@ Feature: Toggle activities visibility from the course page @javascript Scenario: Activities can be shown and hidden inside a hidden section - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | numsections | | Course 1 | C1 | topics | 2 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" @@ -69,13 +69,13 @@ Feature: Toggle activities visibility from the course page @javascript Scenario: Activities can be shown and hidden inside an orphaned section - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | numsections | | Course 1 | C1 | topics | 2 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" diff --git a/course/tests/behat/add_activities.feature b/course/tests/behat/add_activities.feature index a452a210d8d..1bde7538e74 100644 --- a/course/tests/behat/add_activities.feature +++ b/course/tests/behat/add_activities.feature @@ -5,14 +5,14 @@ Feature: Add activities to courses I need to add activites to a course Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | student1 | Student | 1 | student1@asd.com | | student2 | Student | 2 | student2@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | student1 | C1 | student | | student2 | C1 | student | diff --git a/course/tests/behat/behat_course.php b/course/tests/behat/behat_course.php index e1751e059a0..6e0b1afe0c1 100644 --- a/course/tests/behat/behat_course.php +++ b/course/tests/behat/behat_course.php @@ -498,7 +498,7 @@ class behat_course extends behat_base { if ($this->is_course_editor()) { - // The activity should exists. + // The activity should exist. $activitynode = $this->get_activity_node($activityname); // Should be hidden. @@ -511,7 +511,7 @@ class behat_course extends behat_base { } else { - // It should not exists at all. + // It should not exist at all. try { $this->find_link($activityname); throw new ExpectationException('The "' . $activityname . '" should not appear'); @@ -1440,20 +1440,20 @@ class behat_course extends behat_base { ); switch ($mode) { case "Courses": - $return[] = new Given('"#category-listing" "css_element" should not exists'); - $return[] = new Given('"#course-listing" "css_element" should exists'); + $return[] = new Given('"#category-listing" "css_element" should not exist'); + $return[] = new Given('"#course-listing" "css_element" should exist'); break; case "Course categories": - $return[] = new Given('"#category-listing" "css_element" should exists'); - $return[] = new Given('"#course-listing" "css_element" should not exists'); + $return[] = new Given('"#category-listing" "css_element" should exist'); + $return[] = new Given('"#course-listing" "css_element" should not exist'); break; case "Courses categories and courses": default: - $return[] = new Given('"#category-listing" "css_element" should exists'); - $return[] = new Given('"#course-listing" "css_element" should exists'); + $return[] = new Given('"#category-listing" "css_element" should exist'); + $return[] = new Given('"#course-listing" "css_element" should exist'); break; } - $return[] = new Given('"#course-detail" "css_element" should not exists'); + $return[] = new Given('"#course-detail" "css_element" should not exist'); return $return; } @@ -1467,7 +1467,7 @@ class behat_course extends behat_base { public function i_should_see_the_courses_management_page_with_a_course_selected($mode) { $return = $this->i_should_see_the_courses_management_page($mode); array_pop($return); - $return[] = new Given('"#course-detail" "css_element" should exists'); + $return[] = new Given('"#course-detail" "css_element" should exist'); return $return; } diff --git a/course/tests/behat/category_change_visibility.feature b/course/tests/behat/category_change_visibility.feature index 01d70ce6754..b4f13b21a04 100644 --- a/course/tests/behat/category_change_visibility.feature +++ b/course/tests/behat/category_change_visibility.feature @@ -9,7 +9,7 @@ Feature: We can change the visibility of categories in the management interface. # Tests hiding and then showing a single category. Scenario: Test making a category hidden and then visible again. - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | @@ -30,7 +30,7 @@ Feature: We can change the visibility of categories in the management interface. # Tests hiding and then showing a single category. @javascript Scenario: Test using AJAX to make a category hidden and then visible again. - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | @@ -48,7 +48,7 @@ Feature: We can change the visibility of categories in the management interface. # Tests hiding and then showing a subcategory. Scenario: Test making a subcategory hidden and then visible again. - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | | Cat 2 | CAT1 | CAT2 | @@ -84,7 +84,7 @@ Feature: We can change the visibility of categories in the management interface. # Tests hiding and then showing a subcategory. @javascript Scenario: Test using AJAX to make a subcategory hidden and then visible again. - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | | Cat 2 | CAT1 | CAT2 | @@ -110,13 +110,13 @@ Feature: We can change the visibility of categories in the management interface. # The test below this is identical except with JavaScript enabled. Scenario: Test relation between category and course when changing visibility. - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | | Cat 2 | 0 | CAT2 | | Cat 3 | CAT1 | CAT3 | | Cat 4 | CAT1 | CAT4 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | | CAT1 | Course 1 | Course 1 | C1 | | CAT1 | Course 2 | Course 2 | C2 | @@ -185,13 +185,13 @@ Feature: We can change the visibility of categories in the management interface. # The test above this is identical except without JavaScript enabled. @javascript @_cross_browser Scenario: Test the relation between category and course when changing visibility with AJAX - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | | Cat 2 | 0 | CAT2 | | Cat 3 | CAT1 | CAT3 | | Cat 4 | CAT1 | CAT4 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | | CAT1 | Course 1 | Course 1 | C1 | | CAT1 | Course 2 | Course 2 | C2 | @@ -253,12 +253,12 @@ Feature: We can change the visibility of categories in the management interface. @javascript @_cross_browser Scenario: Test courses are hidden when selected category parent is hidden. - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | | Cat 2 | CAT1 | CAT2 | | Cat 3 | CAT2 | CAT3 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | | CAT3 | Course 1 | Course 1 | C1 | diff --git a/course/tests/behat/category_management.feature b/course/tests/behat/category_management.feature index 18a0b09fa84..e624efc1078 100644 --- a/course/tests/behat/category_management.feature +++ b/course/tests/behat/category_management.feature @@ -12,10 +12,10 @@ Feature: Test category management actions Test we can manage filters for a category Scenario: Test editing a category through the management interface. - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | | CAT1 | Course 1 | Course 1 | C1 | @@ -43,13 +43,13 @@ Feature: Test category management actions And I should see "Category 1 (edited)" in the "#course-listing h3" "css_element" Scenario: Test deleting a categories through the management interface. - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | | Cat 2 | 0 | CAT2 | | Cat 3 | 0 | CAT3 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | | CAT3 | Course 1 | Course 1 | C1 | @@ -104,10 +104,10 @@ Feature: Test category management actions And I should see "Course 1" in the "#course-listing ul.ml" "css_element" Scenario: Test I can assign roles for a category through the management interface. - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | | CAT1 | Course 1 | Course 1 | C1 | @@ -124,10 +124,10 @@ Feature: Test category management actions And I should see "Cat 1" in the "#course-listing h3" "css_element" Scenario: Test I can set access permissions for a category through the management interface. - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | | CAT1 | Course 1 | Course 1 | C1 | @@ -143,10 +143,10 @@ Feature: Test category management actions And I should see "Cat 1" in the "#course-listing h3" "css_element" Scenario: Test clicking to manage cohorts for a category through the management interface. - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | | CAT1 | Course 1 | Course 1 | C1 | @@ -158,10 +158,10 @@ Feature: Test category management actions And I should see "Category: Cat 1: available cohorts" Scenario: Test configuring filters for a category - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | | CAT1 | Course 1 | Course 1 | C1 | @@ -178,7 +178,7 @@ Feature: Test category management actions @javascript Scenario: Test that I can create a category and view it in the management interface - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | And I log in as "admin" @@ -211,7 +211,7 @@ Feature: Test category management actions @javascript Scenario: Test moving a categories through the management interface. - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | | Cat 2 | 0 | CAT2 | @@ -238,12 +238,12 @@ Feature: Test category management actions @javascript Scenario: Test bulk action is shown only when some category/course is selected - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | | Cat 2 | 0 | CAT2 | | Cat 3 | 0 | CAT3 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | | CAT3 | Course 1 | Course 1 | C1 | | CAT3 | Course 2 | Course 2 | C2 | diff --git a/course/tests/behat/category_resort.feature b/course/tests/behat/category_resort.feature index 06deffd3e29..ddbb4236819 100644 --- a/course/tests/behat/category_resort.feature +++ b/course/tests/behat/category_resort.feature @@ -6,7 +6,7 @@ Feature: Test we can resort categories in the management interface. I need to test we can manually sort categories. Scenario Outline: Test bulk sorting all categories. - Given the following "categories" exists: + Given the following "categories" exist: | category | name | idnumber | sortorder | | 0 | Social studies | Ext003 | 1 | | 0 | Applied sciences | Sci001 | 2 | @@ -29,7 +29,7 @@ Feature: Test we can resort categories in the management interface. | "Sort categories by ID number" | "Extended social studies" | "Social studies" | "Applied sciences" | Scenario Outline: Test bulk sorting current category. - Given the following "categories" exists: + Given the following "categories" exist: | category | name | idnumber | sortorder | | 0 | Test category | Tes001 | 1 | | Tes001 | Social studies | Ext003 | 2 | @@ -56,7 +56,7 @@ Feature: Test we can resort categories in the management interface. | "Sort categories by ID number" | "Extended social studies" | "Social studies" | "Applied sciences" | Scenario Outline: Test resorting subcategories. - Given the following "categories" exists: + Given the following "categories" exist: | category | name | idnumber | sortorder | | 0 | Master cat | CAT1 | 1 | | CAT1 | Social studies | Ext003 | 1 | @@ -82,7 +82,7 @@ Feature: Test we can resort categories in the management interface. @javascript Scenario Outline: Test resorting subcategories with JS enabled. - Given the following "categories" exists: + Given the following "categories" exist: | category | name | idnumber | sortorder | | 0 | Master cat | CAT1 | 1 | | CAT1 | Social studies | Ext003 | 1 | @@ -108,7 +108,7 @@ Feature: Test we can resort categories in the management interface. # The scenario below this is the same but with JS enabled. Scenario: Test moving categories up and down by one. - Given the following "categories" exists: + Given the following "categories" exist: | category | idnumber | name | | 0 | CAT1 | Cat 1 | | 0 | CAT2 | Cat 2 | @@ -168,7 +168,7 @@ Feature: Test we can resort categories in the management interface. @javascript @_cross_browser Scenario: Test using AJAX to move categories up and down by one. - Given the following "categories" exists: + Given the following "categories" exist: | category | idnumber | name | | 0 | CAT1 | Cat 1 | | 0 | CAT2 | Cat 2 | diff --git a/course/tests/behat/course_category_management_listing.feature b/course/tests/behat/course_category_management_listing.feature index 2c9d842e369..295f4b3f010 100644 --- a/course/tests/behat/course_category_management_listing.feature +++ b/course/tests/behat/course_category_management_listing.feature @@ -6,7 +6,7 @@ Feature: Course category management interface performs as expected @javascript Scenario: Test general look of management interface - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | And I log in as "admin" @@ -18,10 +18,10 @@ Feature: Course category management interface performs as expected @javascript Scenario: Test view mode functionality - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | format | | Course 1 | C1 | CAT1 | topics | @@ -71,7 +71,7 @@ Feature: Course category management interface performs as expected And I should see "Cat 1" in the "#course-detail .category" "css_element" Scenario: Test displaying of sub categories - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | | Cat 2 | 0 | CAT2 | @@ -81,7 +81,7 @@ Feature: Course category management interface performs as expected | Cat 1-1-2 | CAT3 | CAT6 | | Cat 2-1 | CAT2 | CAT7 | | Cat 2-1-1 | CAT7 | CAT8 | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | CAT1 | | Course 2 | C2 | CAT1 | @@ -141,7 +141,7 @@ Feature: Course category management interface performs as expected # to load the categories. @javascript @_cross_browser Scenario: Test AJAX loading of sub categories - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | | Cat 2 | 0 | CAT2 | @@ -151,7 +151,7 @@ Feature: Course category management interface performs as expected | Cat 1-1-2 | CAT3 | CAT6 | | Cat 2-1 | CAT2 | CAT7 | | Cat 2-1-1 | CAT7 | CAT8 | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | CAT1 | | Course 2 | C2 | CAT1 | @@ -236,7 +236,7 @@ Feature: Course category management interface performs as expected @javascript Scenario Outline: Top level categories are displayed correctly when resorted - Given the following "categories" exists: + Given the following "categories" exist: | category | name | idnumber | sortorder | | 0 | Social studies | Ext003 | 1 | | 0 | Applied sciences | Sci001 | 2 | @@ -260,7 +260,7 @@ Feature: Course category management interface performs as expected @javascript Scenario Outline: Sub categories are displayed correctly when resorted - Given the following "categories" exists: + Given the following "categories" exist: | category | name | idnumber | sortorder | | 0 | Master cat | CAT1 | 1 | | CAT1 | Social studies | Ext003 | 1 | @@ -286,10 +286,10 @@ Feature: Course category management interface performs as expected @javascript Scenario Outline: Test courses are displayed correctly after being resorted. - Given the following "categories" exists: + Given the following "categories" exist: | name | category 0| idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | sortorder | | CAT1 | Social studies | Senior school | Ext003 | 1 | | CAT1 | Applied sciences | Middle school | Sci001 | 2 | @@ -319,10 +319,10 @@ Feature: Course category management interface performs as expected @javascript Scenario: Test course pagination - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | | CAT1 | Course 1 | Course 1 | C1 | | CAT1 | Course 2 | Course 2 | C2 | @@ -358,7 +358,7 @@ Feature: Course category management interface performs as expected And I should see course listing "Course 9" before "Course 10" And I should see course listing "Course 10" before "Course 11" And I should see course listing "Course 11" before "Course 12" - And "#course-listing .listing-pagination" "css_element" should not exists + And "#course-listing .listing-pagination" "css_element" should not exist And I click on "Per page: 20" "link" in the ".course-listing-actions" "css_element" And I should see "5" in the ".courses-per-page" "css_element" And I should see "10" in the ".courses-per-page" "css_element" @@ -379,7 +379,7 @@ Feature: Course category management interface performs as expected And I should not see "Course 10" And I should not see "Course 11" And I should not see "Course 12" - And "#course-listing .listing-pagination" "css_element" should exists + And "#course-listing .listing-pagination" "css_element" should exist And I should see "Showing courses 1 to 5 of 12 courses" And I should not see "First" in the "#course-listing .listing-pagination" "css_element" And I should not see "Prev" in the "#course-listing .listing-pagination" "css_element" @@ -403,7 +403,7 @@ Feature: Course category management interface performs as expected And I should see course listing "Course 9" before "Course 10" And I should not see "Course 11" And I should not see "Course 12" - And "#course-listing .listing-pagination" "css_element" should exists + And "#course-listing .listing-pagination" "css_element" should exist And I should see "Showing courses 6 to 10 of 12 courses" And I should see "First" in the "#course-listing .listing-pagination" "css_element" And I should see "Prev" in the "#course-listing .listing-pagination" "css_element" @@ -427,7 +427,7 @@ Feature: Course category management interface performs as expected And I should not see "Course 9" in the "#course-listing" "css_element" And I should not see "Course 10" in the "#course-listing" "css_element" And I should see course listing "Course 11" before "Course 12" - And "#course-listing .listing-pagination" "css_element" should exists + And "#course-listing .listing-pagination" "css_element" should exist And I should see "Showing courses 11 to 12 of 12 courses" And I should see "First" in the "#course-listing .listing-pagination" "css_element" And I should see "Prev" in the "#course-listing .listing-pagination" "css_element" @@ -451,7 +451,7 @@ Feature: Course category management interface performs as expected And I should not see "Course 10" in the "#course-listing" "css_element" And I should not see "Course 11" in the "#course-listing" "css_element" And I should not see "Course 12" in the "#course-listing" "css_element" - And "#course-listing .listing-pagination" "css_element" should exists + And "#course-listing .listing-pagination" "css_element" should exist And I should see "Showing courses 1 to 5 of 12 courses" And I should not see "First" in the "#course-listing .listing-pagination" "css_element" And I should not see "Prev" in the "#course-listing .listing-pagination" "css_element" @@ -475,7 +475,7 @@ Feature: Course category management interface performs as expected And I should not see "Course 9" in the "#course-listing" "css_element" And I should not see "Course 10" in the "#course-listing" "css_element" And I should see course listing "Course 11" before "Course 12" - And "#course-listing .listing-pagination" "css_element" should exists + And "#course-listing .listing-pagination" "css_element" should exist And I should see "Showing courses 11 to 12 of 12 courses" And I should see "First" in the "#course-listing .listing-pagination" "css_element" And I should see "Prev" in the "#course-listing .listing-pagination" "css_element" @@ -499,7 +499,7 @@ Feature: Course category management interface performs as expected And I should see course listing "Course 9" before "Course 10" And I should not see "Course 11" And I should not see "Course 12" - And "#course-listing .listing-pagination" "css_element" should exists + And "#course-listing .listing-pagination" "css_element" should exist And I should see "Showing courses 6 to 10 of 12 courses" And I should see "First" in the "#course-listing .listing-pagination" "css_element" And I should see "Prev" in the "#course-listing .listing-pagination" "css_element" @@ -510,10 +510,10 @@ Feature: Course category management interface performs as expected And I should see "Last" in the "#course-listing .listing-pagination" "css_element" Scenario: Test pagination is only shown when required - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | | CAT1 | Course 1 | Course 1 | C1 | | CAT1 | Course 2 | Course 2 | C2 | @@ -534,7 +534,7 @@ Feature: Course category management interface performs as expected And I should see course listing "Course 2" before "Course 3" And I should see course listing "Course 3" before "Course 4" And I should see course listing "Course 4" before "Course 5" - And "#course-listing .listing-pagination" "css_element" should not exists + And "#course-listing .listing-pagination" "css_element" should not exist And I click on "5" "link" in the ".course-listing-actions" "css_element" # Redirect And I should see "Per page: 5" in the ".course-listing-actions" "css_element" @@ -542,15 +542,15 @@ Feature: Course category management interface performs as expected And I should see course listing "Course 2" before "Course 3" And I should see course listing "Course 3" before "Course 4" And I should see course listing "Course 4" before "Course 5" - And "#course-listing .listing-pagination" "css_element" should not exists + And "#course-listing .listing-pagination" "css_element" should not exist # We need at least 30 courses for this next test. @javascript Scenario: Test many course pagination - Given the following "categories" exists: + Given the following "categories" exist: | name | category 0| idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | | CAT1 | Course 1 | Course 1 | C1 | | CAT1 | Course 2 | Course 2 | C2 | @@ -609,7 +609,7 @@ Feature: Course category management interface performs as expected And I should see course listing "Course 19" before "Course 20" And I should see course listing "Course 21" before "Course 22" And I should see course listing "Course 31" before "Course 32" - And "#course-listing .listing-pagination" "css_element" should not exists + And "#course-listing .listing-pagination" "css_element" should not exist And I click on "Per page: 100" "link" in the ".course-listing-actions" "css_element" And I click on "5" "link" in the ".courses-per-page" "css_element" # Redirect. @@ -672,10 +672,10 @@ Feature: Course category management interface performs as expected And I should see "Last" in the "#course-listing .listing-pagination" "css_element" Scenario: Test clicking to edit a course. - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | | CAT1 | Course 1 | Course 1 | C1 | @@ -690,7 +690,7 @@ Feature: Course category management interface performs as expected @javascript Scenario: Test AJAX expanded categories stay open. - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | | Cat 2 | 0 | CAT2 | @@ -754,7 +754,7 @@ Feature: Course category management interface performs as expected @javascript Scenario: Test category expansion after deletion - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat A (1) | 0 | CAT1 | | Cat B (2) | 0 | CAT2 | diff --git a/course/tests/behat/course_change_visibility.feature b/course/tests/behat/course_change_visibility.feature index fe8f2105848..2230ddea568 100644 --- a/course/tests/behat/course_change_visibility.feature +++ b/course/tests/behat/course_change_visibility.feature @@ -6,10 +6,10 @@ Feature: We can change the visibility of courses in the management interface. # Test hiding and showing a course. Scenario: Test toggling course visibility through the management interfaces. - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | | CAT1 | Course 1 | Course 1 | C1 | @@ -53,10 +53,10 @@ Feature: We can change the visibility of courses in the management interface. # Test hiding and showing a course with JS, same as the above test. @javascript Scenario: Test using AJAX to hide a course through the management interfaces. - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | | CAT1 | Course 1 | Course 1 | C1 | diff --git a/course/tests/behat/course_controls.feature b/course/tests/behat/course_controls.feature index 60cd9760fce..58fdbad16d3 100644 --- a/course/tests/behat/course_controls.feature +++ b/course/tests/behat/course_controls.feature @@ -17,13 +17,13 @@ Feature: Course activity controls works as expected @javascript @_cross_browser Scenario Outline: General activities course controls using topics and weeks formats, and paged mode and not paged mode works as expected - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | coursedisplay | numsections | | Course 1 | C1 | | | 5 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" @@ -32,12 +32,12 @@ Feature: Course activity controls works as expected And I press "Turn editing on" Then I should see "Turn editing off" And I press "Turn editing off" - And "Turn editing on" "button" should exists + And "Turn editing on" "button" should exist And I follow "Turn editing on" - And "Turn editing off" "button" should exists + And "Turn editing off" "button" should exist And I follow "Turn editing off" And I should see "Turn editing on" - And "Turn editing on" "button" should exists + And "Turn editing on" "button" should exist And I turn editing mode on And I click on "Actions" "link" in the "Recent activity" "block" And I click on "Delete Recent activity block" "link" @@ -98,13 +98,13 @@ Feature: Course activity controls works as expected | weeks | 1 | "Course 1" | should | should not | Scenario Outline: General activities course controls using topics and weeks formats, and paged mode and not paged mode works as expected - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | coursedisplay | numsections | | Course 1 | C1 | | | 5 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" @@ -113,12 +113,12 @@ Feature: Course activity controls works as expected And I press "Turn editing on" Then I should see "Turn editing off" And I press "Turn editing off" - And "Turn editing on" "button" should exists + And "Turn editing on" "button" should exist And I follow "Turn editing on" - And "Turn editing off" "button" should exists + And "Turn editing off" "button" should exist And I follow "Turn editing off" And I should see "Turn editing on" - And "Turn editing on" "button" should exists + And "Turn editing on" "button" should exist And I turn editing mode on And I click on "Actions" "link" in the "Recent activity" "block" And I click on "Delete Recent activity block" "link" diff --git a/course/tests/behat/course_resort.feature b/course/tests/behat/course_resort.feature index ad7532cae05..678bc4fb9a5 100644 --- a/course/tests/behat/course_resort.feature +++ b/course/tests/behat/course_resort.feature @@ -6,10 +6,10 @@ Feature: Test we can resort course in the management interface. # Test resorting courses with Scenario Outline: Resort courses. - Given the following "categories" exists: + Given the following "categories" exist: | name | category 0| idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | sortorder | | CAT1 | Social studies | Senior school | Ext003 | 1 | | CAT1 | Applied sciences | Middle school | Sci001 | 2 | @@ -39,10 +39,10 @@ Feature: Test we can resort course in the management interface. @javascript Scenario Outline: Resort courses with JavaScript enabled. - Given the following "categories" exists: + Given the following "categories" exist: | name | category 0| idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | sortorder | | CAT1 | Social studies | Senior school | Ext003 | 1 | | CAT1 | Applied sciences | Middle school | Sci001 | 2 | @@ -75,10 +75,10 @@ Feature: Test we can resort course in the management interface. | "By idnumber" | "Extended social studies" | "Social studies" | "Applied sciences" | Scenario: Test moving courses up and down by one. - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | | CAT1 | Course 1 | Course 1 | C1 | | CAT1 | Course 2 | Course 2 | C2 | @@ -112,10 +112,10 @@ Feature: Test we can resort course in the management interface. # Like the above test but with JavaScript enabled. @javascript Scenario: Test using AJAX to move courses up and down by one. - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | | CAT1 | Course 1 | Course 1 | C1 | | CAT1 | Course 2 | Course 2 | C2 | diff --git a/course/tests/behat/create_delete_course.feature b/course/tests/behat/create_delete_course.feature index f45ca9c5a9c..c12ae95afbb 100644 --- a/course/tests/behat/create_delete_course.feature +++ b/course/tests/behat/create_delete_course.feature @@ -5,7 +5,7 @@ Feature: Test we can both create and delete a course. I need to test I can delete a course Scenario: Create a course - Given the following "categories" exists: + Given the following "categories" exist: | name | category 0| idnumber | | Cat 1 | 0 | CAT1 | @@ -34,10 +34,10 @@ Feature: Test we can both create and delete a course. And I should see "Test course: create a course" in the "#course-listing" "css_element" Scenario: Delete a course via its management listing - Given the following "categories" exists: + Given the following "categories" exist: | name | category 0| idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | | CAT1 | Test course: create a course | TCCAC | TC3401 | | CAT1 | Test course 2: create another course | TC2CAC | TC3402 | @@ -66,10 +66,10 @@ Feature: Test we can both create and delete a course. And I should see "Test course 2: create another course" in the "#course-listing" "css_element" Scenario: Delete a course via its management details page - Given the following "categories" exists: + Given the following "categories" exist: | name | category 0| idnumber | | Cat 1 | 0 | CAT1 | - And the following "courses" exists: + And the following "courses" exist: | category | fullname | shortname | idnumber | | CAT1 | Test course: create a course | TCCAC | TC3401 | | CAT1 | Test course 2: create another course | TC2CAC | TC3402 | diff --git a/course/tests/behat/edit_settings.feature b/course/tests/behat/edit_settings.feature index 68e2ee8878e..11e0f09ff1a 100644 --- a/course/tests/behat/edit_settings.feature +++ b/course/tests/behat/edit_settings.feature @@ -6,13 +6,13 @@ Feature: Edit course settings @javascript Scenario: Edit course settings - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | summary | format | | Course 1 | C1 |

Course summary

| topics | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" diff --git a/course/tests/behat/force_group_mode.feature b/course/tests/behat/force_group_mode.feature index 70e3eac1044..73fe95e0bdd 100644 --- a/course/tests/behat/force_group_mode.feature +++ b/course/tests/behat/force_group_mode.feature @@ -5,13 +5,13 @@ Feature: Force group mode in a course I need to force the group mode of all course's activities Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" @@ -28,8 +28,8 @@ Feature: Force group mode in a course | Group mode | Separate groups | | Force group mode | Yes | When I press "Save changes" - Then "//a/child::img[contains(@alt, 'Separate groups (forced mode)')]" "xpath_element" should not exists - And "//img[contains(@alt, 'Separate groups (forced mode)')]" "xpath_element" should not exists + Then "//a/child::img[contains(@alt, 'Separate groups (forced mode)')]" "xpath_element" should not exist + And "//img[contains(@alt, 'Separate groups (forced mode)')]" "xpath_element" should not exist @javascript Scenario: Forced group mode using visible groups @@ -37,8 +37,8 @@ Feature: Force group mode in a course | Group mode | Visible groups | | Force group mode | Yes | And I press "Save changes" - Then "//a/child::img[contains(@alt, 'Visible groups (forced mode)')]" "xpath_element" should not exists - And "//img[contains(@alt, 'Visible groups (forced mode)')]" "xpath_element" should not exists + Then "//a/child::img[contains(@alt, 'Visible groups (forced mode)')]" "xpath_element" should not exist + And "//img[contains(@alt, 'Visible groups (forced mode)')]" "xpath_element" should not exist @javascript Scenario: Forced group mode without groups @@ -46,6 +46,6 @@ Feature: Force group mode in a course | Group mode | No groups | | Force group mode | Yes | And I press "Save changes" - Then "//a/child::img[contains(@alt, 'No groups (forced mode)')]" "xpath_element" should not exists - And "//img[contains(@alt, 'No groups (forced mode)')]" "xpath_element" should not exists + Then "//a/child::img[contains(@alt, 'No groups (forced mode)')]" "xpath_element" should not exist + And "//img[contains(@alt, 'No groups (forced mode)')]" "xpath_element" should not exist diff --git a/course/tests/behat/frontpage_display_modes.feature b/course/tests/behat/frontpage_display_modes.feature index e32d3450749..5fa431f4a2e 100644 --- a/course/tests/behat/frontpage_display_modes.feature +++ b/course/tests/behat/frontpage_display_modes.feature @@ -5,7 +5,7 @@ Feature: Front page displays items in different modes I need to set different frontpage display modes Background: - Given the following "categories" exists: + Given the following "categories" exist: | name | category | idnumber | | Category 1 | 0 | CAT1 | | Category 2 | 0 | CAT2 | @@ -13,7 +13,7 @@ Feature: Front page displays items in different modes | Category 2 child | CAT2 | CAT21 | | Category 1 child child | CAT11 | CAT111 | | Category 3 | 0 | CAT3 | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 1 | COURSE1_1 | CAT1 | | Course 2 1 | COURSE2_1 | CAT2 | diff --git a/course/tests/behat/max_number_sections.feature b/course/tests/behat/max_number_sections.feature index af4edb67b7d..c881ecd85a1 100644 --- a/course/tests/behat/max_number_sections.feature +++ b/course/tests/behat/max_number_sections.feature @@ -5,10 +5,10 @@ Feature: The maximum number of weeks/topics in a course can be configured I need to limit the number of weeks/topics a course can have Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | manager1 | Manager | 1 | manager1@asd.com | - And the following "system role assigns" exists: + And the following "system role assigns" exist: | user | course | role | | manager1 | Acceptance test site | manager | And I log in as "admin" diff --git a/course/tests/behat/move_activities.feature b/course/tests/behat/move_activities.feature index e5115392957..68abd0f0e40 100644 --- a/course/tests/behat/move_activities.feature +++ b/course/tests/behat/move_activities.feature @@ -5,13 +5,13 @@ Feature: Activities can be moved between sections I need to move activities between sections Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | coursedisplay | numsections | | Course 1 | C1 | topics | 0 | 5 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" diff --git a/course/tests/behat/move_sections.feature b/course/tests/behat/move_sections.feature index 8250bf4a077..b56a0b98352 100644 --- a/course/tests/behat/move_sections.feature +++ b/course/tests/behat/move_sections.feature @@ -5,13 +5,13 @@ Feature: Sections can be moved I need to move sections up and down Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | coursedisplay | numsections | | Course 1 | C1 | topics | 0 | 5 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" @@ -49,7 +49,7 @@ Feature: Sections can be moved | Forum name | Test forum name | | Description | Test forum description | When I follow "Topic 2" - Then "#section-1" "css_element" should not exists - And "#section-3" "css_element" should not exists - And "Move down" "link" should not exists - And "Move up" "link" should not exists + Then "#section-1" "css_element" should not exist + And "#section-3" "css_element" should not exist + And "Move down" "link" should not exist + And "Move up" "link" should not exist diff --git a/course/tests/behat/paged_course_navigation.feature b/course/tests/behat/paged_course_navigation.feature index 41ed09dd4a8..0371c122d33 100644 --- a/course/tests/behat/paged_course_navigation.feature +++ b/course/tests/behat/paged_course_navigation.feature @@ -6,7 +6,7 @@ Feature: Course paged mode @javascript @_cross_browser Scenario Outline: Weekly and topics course formats with Javascript enabled - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | format | coursedisplay | numsections | | Course 1 | C1 | 0 | | 1 | 3 | And I log in as "admin" @@ -39,7 +39,7 @@ Feature: Course paged mode | weeks | "1 January - 7 January" | "8 January - 14 January" | "15 January - 21 January" | "25 December - 31 December" | "22 January - 28 January" | Scenario Outline: Weekly and topics course formats with Javascript disabled - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | format | coursedisplay | numsections | | Course 1 | C1 | 0 | | 1 | 3 | And I log in as "admin" diff --git a/course/tests/behat/rename_roles.feature b/course/tests/behat/rename_roles.feature index 9ec9df894d9..082242cea0c 100644 --- a/course/tests/behat/rename_roles.feature +++ b/course/tests/behat/rename_roles.feature @@ -6,15 +6,15 @@ Feature: Rename roles within a course @javascript Scenario: Rename roles within a course - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | teacher2 | Teacher | 2 | teacher2@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | teacher2 | C1 | teacher | diff --git a/course/tests/behat/restrict_available_activities.feature b/course/tests/behat/restrict_available_activities.feature index 63c1b62ec5b..9a4f11b0b23 100644 --- a/course/tests/behat/restrict_available_activities.feature +++ b/course/tests/behat/restrict_available_activities.feature @@ -5,13 +5,13 @@ Feature: Restrict activities availability I need to control which activities can be used in courses Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | format | | Course 1 | C1 | 0 | topics | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | diff --git a/course/tests/behat/section_highlighting.feature b/course/tests/behat/section_highlighting.feature index 4db4538d1ad..82c35e6aed2 100644 --- a/course/tests/behat/section_highlighting.feature +++ b/course/tests/behat/section_highlighting.feature @@ -6,14 +6,14 @@ Feature: Topic's course sections highlighting @javascript Scenario Outline: Highlight a topic's course section with course paged mode and without it - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | coursedisplay | | Course 1 | C1 | topics | | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/course/tests/behat/section_visibility.feature b/course/tests/behat/section_visibility.feature index ef4308d6c05..333357fa5da 100644 --- a/course/tests/behat/section_visibility.feature +++ b/course/tests/behat/section_visibility.feature @@ -6,14 +6,14 @@ Feature: Show/hide course sections @javascript Scenario: Show / hide section icon functions correctly - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/enrol/guest/tests/behat/guest_access.feature b/enrol/guest/tests/behat/guest_access.feature index 67948db02b9..1b8488efa6f 100644 --- a/enrol/guest/tests/behat/guest_access.feature +++ b/enrol/guest/tests/behat/guest_access.feature @@ -5,14 +5,14 @@ Feature: Guest users can auto-enrol themself in courses where guest access is al I need to access courses as a guest Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" diff --git a/enrol/self/tests/behat/self_enrolment.feature b/enrol/self/tests/behat/self_enrolment.feature index 74d299b2120..a645544fbd1 100644 --- a/enrol/self/tests/behat/self_enrolment.feature +++ b/enrol/self/tests/behat/self_enrolment.feature @@ -5,14 +5,14 @@ Feature: Users can auto-enrol themself in courses where self enrolment is allowe I need to auto enrol me in courses Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | diff --git a/files/tests/behat/course_files.feature b/files/tests/behat/course_files.feature index 58e1fcd473a..6ae5577ea4e 100644 --- a/files/tests/behat/course_files.feature +++ b/files/tests/behat/course_files.feature @@ -6,7 +6,7 @@ Feature: Course files @javascript Scenario: Add legacy files - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | legacyfiles | | Course 1 | C1 | 0 | 2 | And I log in as "admin" @@ -23,7 +23,7 @@ Feature: Course files @javascript Scenario: Add legacy file disabled - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | legacyfiles | | Course 1 | C1 | 0 | 2 | And I log in as "admin" diff --git a/grade/grading/form/rubric/tests/behat/edit_rubric.feature b/grade/grading/form/rubric/tests/behat/edit_rubric.feature index 7963273ef61..208af15bd85 100644 --- a/grade/grading/form/rubric/tests/behat/edit_rubric.feature +++ b/grade/grading/form/rubric/tests/behat/edit_rubric.feature @@ -5,14 +5,14 @@ Feature: Rubrics can be created and edited I need to edit previously used rubrics Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | @@ -84,7 +84,7 @@ Feature: Rubrics can be created and edited And I follow "Course 1" # Editing a rubric definition without regrading students. And I go to "Test assignment 1 name" advanced grading definition page - And "Save as draft" "button" should not exists + And "Save as draft" "button" should not exist And I click on "Move up" "button" in the "Criterion 1" "table_row" And I replace "Level 11" rubric level with "Level 11 edited" in "Criterion 1" criterion And I press "Save" diff --git a/grade/grading/form/rubric/tests/behat/publish_rubric_templates.feature b/grade/grading/form/rubric/tests/behat/publish_rubric_templates.feature index 582d96f430d..070ebc00ce0 100644 --- a/grade/grading/form/rubric/tests/behat/publish_rubric_templates.feature +++ b/grade/grading/form/rubric/tests/behat/publish_rubric_templates.feature @@ -5,21 +5,21 @@ Feature: Publish rubrics as templates I need to publish rubrics and make them available to all teachers Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | manager1 | Manager | 1 | manager1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "activities" exists: + And the following "activities" exist: | activity | course | idnumber | name | intro | advancedgradingmethod_submissions | | assign | C1 | A1 | Test assignment 1 name | TA1 | rubric | | assign | C1 | A2 | Test assignment 2 name | TA2 | rubric | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | - And the following "system role assigns" exists: + And the following "system role assigns" exist: | user | role | contextlevel | reference | | manager1 | manager | System | | And I log in as "manager1" @@ -52,5 +52,5 @@ Feature: Publish rubrics as templates Scenario: Create a rubric template and reuse it as a teacher, with Javascript disabled Then the field "Description" matches value "Assignment 1 description" # Trying to avoid pointing by id or name as the code internals may change. - And "//table[@class='criteria']//textarea[text()='Criterion 1']" "xpath_element" should exists + And "//table[@class='criteria']//textarea[text()='Criterion 1']" "xpath_element" should exist And I press "Cancel" diff --git a/grade/grading/form/rubric/tests/behat/reuse_own_rubrics.feature b/grade/grading/form/rubric/tests/behat/reuse_own_rubrics.feature index 2769889398f..00a6419ac4a 100644 --- a/grade/grading/form/rubric/tests/behat/reuse_own_rubrics.feature +++ b/grade/grading/form/rubric/tests/behat/reuse_own_rubrics.feature @@ -5,13 +5,13 @@ Feature: Reuse my rubrics in other activities I need to reuse rubrics that I created previously Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" diff --git a/grade/tests/behat/grade_view.feature b/grade/tests/behat/grade_view.feature index 63364570fdb..1520026dbfa 100644 --- a/grade/tests/behat/grade_view.feature +++ b/grade/tests/behat/grade_view.feature @@ -6,14 +6,14 @@ Feature: We can enter in grades and view reports from the gradebook I need to enable grade weightings and check that they are displayed correctly. Background: - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/group/tests/behat/auto_creation.feature b/group/tests/behat/auto_creation.feature index 081620107e6..a49d13f76ad 100644 --- a/group/tests/behat/auto_creation.feature +++ b/group/tests/behat/auto_creation.feature @@ -5,10 +5,10 @@ Feature: Automatic creation of groups I need to create groups automatically and allocate them in groupings if necessary Background: - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student0 | Student | 0 | student0@asd.com | @@ -21,7 +21,7 @@ Feature: Automatic creation of groups | student7 | Student | 7 | student7@asd.com | | student8 | Student | 8 | student8@asd.com | | student9 | Student | 9 | student9@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student0 | C1 | student | diff --git a/group/tests/behat/create_groups.feature b/group/tests/behat/create_groups.feature index a9cb6a76f70..51970edc5ab 100644 --- a/group/tests/behat/create_groups.feature +++ b/group/tests/behat/create_groups.feature @@ -6,17 +6,17 @@ Feature: Organize students into groups @javascript Scenario: Assign students to groups - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | groupmode | | Course 1 | C1 | 0 | 1 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student0 | Student | 0 | student0@asd.com | | student1 | Student | 1 | student1@asd.com | | student2 | Student | 2 | student2@asd.com | | student3 | Student | 3 | student3@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student0 | C1 | student | @@ -59,13 +59,13 @@ Feature: Organize students into groups @javascript Scenario: Create groups and groupings without the 'moodle/course:changeidnumber' capability - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | groupmode | | Course 1 | C1 | 0 | 1 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "admin" diff --git a/group/tests/behat/delete_groups.feature b/group/tests/behat/delete_groups.feature index e4707839bf5..d2d9c17e3af 100644 --- a/group/tests/behat/delete_groups.feature +++ b/group/tests/behat/delete_groups.feature @@ -5,13 +5,13 @@ Feature: Automatic deletion of groups and groupings I need to create groups and groupings under different scenarios and check that the expected result occurs when attempting to delete them. Background: - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" diff --git a/group/tests/behat/groups_import.feature b/group/tests/behat/groups_import.feature index d4130bced72..08c0c5517d1 100644 --- a/group/tests/behat/groups_import.feature +++ b/group/tests/behat/groups_import.feature @@ -5,13 +5,13 @@ Feature: Importing of groups and groupings I need to upload a file and verify groups and groupings can be imported Background: - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | diff --git a/group/tests/behat/id_uniqueness.feature b/group/tests/behat/id_uniqueness.feature index ee4712430f9..21ae676a48f 100644 --- a/group/tests/behat/id_uniqueness.feature +++ b/group/tests/behat/id_uniqueness.feature @@ -5,13 +5,13 @@ Feature: Uniqueness of Group ID number I need to create groups with unique identificators Background: - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" diff --git a/group/tests/behat/update_groups.feature b/group/tests/behat/update_groups.feature index e3e072f4d5f..a363d2bb0a8 100644 --- a/group/tests/behat/update_groups.feature +++ b/group/tests/behat/update_groups.feature @@ -5,13 +5,13 @@ Feature: Automatic updating of groups and groupings I need to create groups and groupings under different scenarios and check that the expected result occurs when attempting to update them. Background: - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" diff --git a/lib/editor/tinymce/tests/behat/edit_available_icons.feature b/lib/editor/tinymce/tests/behat/edit_available_icons.feature index 582069080f3..fc8c7d64a81 100644 --- a/lib/editor/tinymce/tests/behat/edit_available_icons.feature +++ b/lib/editor/tinymce/tests/behat/edit_available_icons.feature @@ -5,7 +5,7 @@ Feature: Add or remove items from the TinyMCE editor toolbar I need to add and remove items from the toolbar Background: - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And I log in as "admin" @@ -18,8 +18,8 @@ Feature: Add or remove items from the TinyMCE editor toolbar And I follow "Course 1" And I turn editing mode on And I add a "Database" to section "1" - Then "#id_introeditor_tbl .mce_bold" "css_element" should not exists - And "#id_introeditor_tbl .mce_fullscreen" "css_element" should exists + Then "#id_introeditor_tbl .mce_bold" "css_element" should not exist + And "#id_introeditor_tbl .mce_fullscreen" "css_element" should exist And I press "Cancel" @javascript @@ -30,14 +30,14 @@ Feature: Add or remove items from the TinyMCE editor toolbar And I follow "Course 1" And I turn editing mode on And I add a "Database" to section "1" - Then "#id_introeditor_tbl .mce_bold" "css_element" should not exists - And "#id_introeditor_tbl .mce_anchor" "css_element" should exists + Then "#id_introeditor_tbl .mce_bold" "css_element" should not exist + And "#id_introeditor_tbl .mce_anchor" "css_element" should exist And I set the following administration settings values: | Editor toolbar | fontselect,fontsizeselect,formatselect,\|,undo,redo,\|,search,replace,\|,fullscreen | And I am on homepage And I follow "Course 1" And I add a "Database" to section "1" - And "#id_introeditor_tbl .mce_anchor" "css_element" should not exists + And "#id_introeditor_tbl .mce_anchor" "css_element" should not exist And I press "Cancel" @javascript @@ -46,6 +46,6 @@ Feature: Add or remove items from the TinyMCE editor toolbar And I turn editing mode on When I add a "Database" to section "1" And I wait until "#id_introeditor_tbl" "css_element" exists - Then "#id_introeditor_tbl .mce_bold" "css_element" should exists - And "#id_introeditor_tbl .mce_anchor" "css_element" should not exists + Then "#id_introeditor_tbl .mce_bold" "css_element" should exist + And "#id_introeditor_tbl .mce_anchor" "css_element" should not exist And I press "Cancel" diff --git a/lib/tests/behat/behat_general.php b/lib/tests/behat/behat_general.php index 057fa2242ee..17209ab7d8b 100644 --- a/lib/tests/behat/behat_general.php +++ b/lib/tests/behat/behat_general.php @@ -878,7 +878,7 @@ class behat_general extends behat_base { list($selector, $locator) = $this->transform_selector($selectortype, $element); // Will throw an ElementNotFoundException if it does not exist, but, actually - // it should not exists, so we try & catch it. + // it should not exist, so we try & catch it. try { // Would be better to use a 1 second sleep because the element should not be there, // but we would need to duplicate the whole find_all() logic to do it, the benefit of diff --git a/message/tests/behat/block_users.feature b/message/tests/behat/block_users.feature index 20acd282678..85bc317afa8 100644 --- a/message/tests/behat/block_users.feature +++ b/message/tests/behat/block_users.feature @@ -6,7 +6,7 @@ Feature: Block users from contacting me @javascript Scenario: Block users from contacting me with Javascript enabled - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | user1 | User | One | one@asd.com | | user2 | User | Two | two@asd.com | diff --git a/message/tests/behat/display_history.feature b/message/tests/behat/display_history.feature index 054fc84f420..bf97b300848 100644 --- a/message/tests/behat/display_history.feature +++ b/message/tests/behat/display_history.feature @@ -5,7 +5,7 @@ Feature: Message history displays correctly I need to view the conversation with another user Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | user1 | User | One | one@asd.com | | user2 | User | Two | two@asd.com | diff --git a/message/tests/behat/manage_contacts.feature b/message/tests/behat/manage_contacts.feature index d3c8ca3bc92..9bb073f84f7 100644 --- a/message/tests/behat/manage_contacts.feature +++ b/message/tests/behat/manage_contacts.feature @@ -5,7 +5,7 @@ Feature: Manage contacts I need to add and remove users to/from my contacts list Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | user1 | User | One | one@asd.com | | user2 | User | Two | two@asd.com | diff --git a/message/tests/behat/message_participants.feature b/message/tests/behat/message_participants.feature index 8c41d209100..3de5662ecc1 100644 --- a/message/tests/behat/message_participants.feature +++ b/message/tests/behat/message_participants.feature @@ -6,16 +6,16 @@ Feature: An user can message course participants @javascript Scenario: An user can message multiple course participants including him/her self - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | | student2 | Student | 2 | student2@asd.com | | student3 | Student | 3 | student3@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/message/tests/behat/search_history.feature b/message/tests/behat/search_history.feature index 49eeaf80b7b..d0c72b6352f 100644 --- a/message/tests/behat/search_history.feature +++ b/message/tests/behat/search_history.feature @@ -5,7 +5,7 @@ Feature: Users can search their message history I need to search in my messages history Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | user1 | User | One | one@asd.com | | user2 | User | Two | two@asd.com | diff --git a/mod/assign/tests/behat/allow_another_attempt.feature b/mod/assign/tests/behat/allow_another_attempt.feature index 3b611ccace3..3fef74f32e6 100644 --- a/mod/assign/tests/behat/allow_another_attempt.feature +++ b/mod/assign/tests/behat/allow_another_attempt.feature @@ -6,14 +6,14 @@ Feature: In an assignment, students start a new attempt based on their previous @javascript Scenario: Submit a text online and edit the submission - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | groupmode | | Course 1 | C1 | 0 | 1 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/assign/tests/behat/comment_inline.feature b/mod/assign/tests/behat/comment_inline.feature index 1c7ba3e5057..c348986f42d 100644 --- a/mod/assign/tests/behat/comment_inline.feature +++ b/mod/assign/tests/behat/comment_inline.feature @@ -6,14 +6,14 @@ Feature: In an assignment, teachers can edit a students submission inline @javascript Scenario: Submit a text online and edit the submission - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | groupmode | | Course 1 | C1 | 0 | 1 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/assign/tests/behat/edit_previous_feedback.feature b/mod/assign/tests/behat/edit_previous_feedback.feature index f86ffebb829..3019a712ef6 100644 --- a/mod/assign/tests/behat/edit_previous_feedback.feature +++ b/mod/assign/tests/behat/edit_previous_feedback.feature @@ -6,15 +6,15 @@ Feature: In an assignment, teachers can edit feedback for a students previous su @javascript Scenario: Edit feedback for a students previous attempt. - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | groupmode | | Course 1 | C1 | 0 | 1 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | | student2 | Student | 2 | student2@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/assign/tests/behat/file_submission.feature b/mod/assign/tests/behat/file_submission.feature index 0befe3399a6..87256bc2878 100644 --- a/mod/assign/tests/behat/file_submission.feature +++ b/mod/assign/tests/behat/file_submission.feature @@ -6,14 +6,14 @@ Feature: In an assignment, students can upload files for assessment @javascript Scenario: Submit a file and update the submission with another file - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | groupmode | | Course 1 | C1 | 0 | 1 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/assign/tests/behat/group_submission.feature b/mod/assign/tests/behat/group_submission.feature index 1313c3bb613..37ac509d588 100644 --- a/mod/assign/tests/behat/group_submission.feature +++ b/mod/assign/tests/behat/group_submission.feature @@ -6,24 +6,24 @@ Feature: Group assignment submissions @javascript Scenario: Switch between group modes - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | groupmode | | Course 1 | C1 | 0 | 1 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student0 | Student | 0 | student0@asd.com | | student1 | Student | 1 | student1@asd.com | | student2 | Student | 2 | student2@asd.com | | student3 | Student | 3 | student3@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student0 | C1 | student | | student1 | C1 | student | | student2 | C1 | student | | student3 | C1 | student | - And the following "groups" exists: + And the following "groups" exist: | name | course | idnumber | | Group 1 | C1 | G1 | And I log in as "teacher1" @@ -36,10 +36,10 @@ Feature: Group assignment submissions | Group mode | No groups | And I follow "Test assignment name" When I follow "View/grade all submissions" - Then "//tr[contains(., 'Student 0')][contains(., 'Default group')]" "xpath_element" should exists - And "//tr[contains(., 'Student 1')][contains(., 'Default group')]" "xpath_element" should exists - And "//tr[contains(., 'Student 2')][contains(., 'Default group')]" "xpath_element" should exists - And "//tr[contains(., 'Student 3')][contains(., 'Default group')]" "xpath_element" should exists + Then "//tr[contains(., 'Student 0')][contains(., 'Default group')]" "xpath_element" should exist + And "//tr[contains(., 'Student 1')][contains(., 'Default group')]" "xpath_element" should exist + And "//tr[contains(., 'Student 2')][contains(., 'Default group')]" "xpath_element" should exist + And "//tr[contains(., 'Student 3')][contains(., 'Default group')]" "xpath_element" should exist And I follow "Edit settings" And I set the following fields to these values: | Group mode | Separate groups | @@ -55,11 +55,11 @@ Feature: Group assignment submissions And I follow "Course 1" And I follow "Test assignment name" And I follow "View/grade all submissions" - And "//tr[contains(., 'Student 0')][contains(., 'Group 1')]" "xpath_element" should exists - And "//tr[contains(., 'Student 1')][contains(., 'Group 1')]" "xpath_element" should exists + And "//tr[contains(., 'Student 0')][contains(., 'Group 1')]" "xpath_element" should exist + And "//tr[contains(., 'Student 1')][contains(., 'Group 1')]" "xpath_element" should exist And I should not see "Student 2" And I set the field "Separate groups" to "All participants" - And "//tr[contains(., 'Student 0')][contains(., 'Group 1')]" "xpath_element" should exists - And "//tr[contains(., 'Student 1')][contains(., 'Group 1')]" "xpath_element" should exists - And "//tr[contains(., 'Student 2')][contains(., 'Default group')]" "xpath_element" should exists - And "//tr[contains(., 'Student 3')][contains(., 'Default group')]" "xpath_element" should exists + And "//tr[contains(., 'Student 0')][contains(., 'Group 1')]" "xpath_element" should exist + And "//tr[contains(., 'Student 1')][contains(., 'Group 1')]" "xpath_element" should exist + And "//tr[contains(., 'Student 2')][contains(., 'Default group')]" "xpath_element" should exist + And "//tr[contains(., 'Student 3')][contains(., 'Default group')]" "xpath_element" should exist diff --git a/mod/assign/tests/behat/online_submissions.feature b/mod/assign/tests/behat/online_submissions.feature index 87d587eed95..c8a21799e99 100644 --- a/mod/assign/tests/behat/online_submissions.feature +++ b/mod/assign/tests/behat/online_submissions.feature @@ -6,14 +6,14 @@ Feature: In an assignment, students can add and edit text online @javascript Scenario: Submit a text online and edit the submission - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | groupmode | | Course 1 | C1 | 0 | 1 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/assign/tests/behat/prevent_submission_changes.feature b/mod/assign/tests/behat/prevent_submission_changes.feature index 93fb4846f65..5a39f634039 100644 --- a/mod/assign/tests/behat/prevent_submission_changes.feature +++ b/mod/assign/tests/behat/prevent_submission_changes.feature @@ -6,14 +6,14 @@ Feature: Prevent or allow assignment submission changes @javascript Scenario: Preventing changes and allowing them again - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | groupmode | | Course 1 | C1 | 0 | 1 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | @@ -49,7 +49,7 @@ Feature: Prevent or allow assignment submission changes And I log in as "student1" And I follow "Course 1" And I follow "Test assignment name" - And "Edit submission" "button" should not exists + And "Edit submission" "button" should not exist And I should see "This assignment is not accepting submissions" And I log out And I log in as "teacher1" diff --git a/mod/assign/tests/behat/quickgrading.feature b/mod/assign/tests/behat/quickgrading.feature index 3208f457905..f9765c76d62 100644 --- a/mod/assign/tests/behat/quickgrading.feature +++ b/mod/assign/tests/behat/quickgrading.feature @@ -6,15 +6,15 @@ Feature: In an assignment, teachers grade multiple students on one page @javascript Scenario: Grade multiple students on one page - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | groupmode | | Course 1 | C1 | 0 | 1 | - And the following "users" exists: + And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | | student2 | Student | 2 | student2@asd.com | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/choice/tests/behat/add_choice.feature b/mod/choice/tests/behat/add_choice.feature index f08067c18a5..bd0dbab3801 100644 --- a/mod/choice/tests/behat/add_choice.feature +++ b/mod/choice/tests/behat/add_choice.feature @@ -6,14 +6,14 @@ Feature: Add choice activity @javascript Scenario: Add a choice activity and complete the activity as a student - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/choice/tests/behat/change_response.feature b/mod/choice/tests/behat/change_response.feature index c373f48c1ad..5a02fac804b 100644 --- a/mod/choice/tests/behat/change_response.feature +++ b/mod/choice/tests/behat/change_response.feature @@ -6,14 +6,14 @@ Feature: Teacher can choose whether to allow students to change their choice res @javascript Scenario: Add a choice activity and complete the activity as a student - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | @@ -32,7 +32,7 @@ Feature: Teacher can choose whether to allow students to change their choice res And I choose "Option 1" from "Choice name" choice activity Then I should see "Your selection: Option 1" And I should see "Your choice has been saved" - And "Save my choice" "button" should not exists + And "Save my choice" "button" should not exist And I log out And I log in as "teacher1" And I follow "Course 1" @@ -46,8 +46,8 @@ Feature: Teacher can choose whether to allow students to change their choice res And I follow "Course 1" And I follow "Choice name" And I should see "Your selection: Option 1" - And "Save my choice" "button" should exists - And "Remove my choice" "link" should exists + And "Save my choice" "button" should exist + And "Remove my choice" "link" should exist And I set the field "Option 2" to "1" And I press "Save my choice" And I should see "Your choice has been saved" diff --git a/mod/choice/tests/behat/limit_responses.feature b/mod/choice/tests/behat/limit_responses.feature index 43c1a793ec7..83167eadf5b 100644 --- a/mod/choice/tests/behat/limit_responses.feature +++ b/mod/choice/tests/behat/limit_responses.feature @@ -6,15 +6,15 @@ Feature: Limit choice responses @javascript Scenario: Limit the number of responses allowed for a choice activity and verify the result as students - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | | student2 | Student | 2 | student2@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/choice/tests/behat/publish_results.feature b/mod/choice/tests/behat/publish_results.feature index 4faf35f2887..57603804368 100644 --- a/mod/choice/tests/behat/publish_results.feature +++ b/mod/choice/tests/behat/publish_results.feature @@ -5,14 +5,14 @@ Feature: A teacher can choose one of 4 options for publishing choice results I need to publish the choice activity results in different ways Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/choice/tests/behat/publish_results_anonymously.feature b/mod/choice/tests/behat/publish_results_anonymously.feature index 7d1cc335798..b7e55b787e4 100644 --- a/mod/choice/tests/behat/publish_results_anonymously.feature +++ b/mod/choice/tests/behat/publish_results_anonymously.feature @@ -5,15 +5,15 @@ Feature: A teacher can choose whether to publish choice activity results anonymo I need to select whether I want other students to know who selected what option Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | | student2 | Student | 2 | student2@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/forum/tests/behat/add_forum.feature b/mod/forum/tests/behat/add_forum.feature index 135a3e53ce6..c8515f0b1a5 100644 --- a/mod/forum/tests/behat/add_forum.feature +++ b/mod/forum/tests/behat/add_forum.feature @@ -6,13 +6,13 @@ Feature: Add forum activities and discussions @javascript Scenario: Add a forum and a discussion - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" diff --git a/mod/forum/tests/behat/completion_condition_number_discussions.feature b/mod/forum/tests/behat/completion_condition_number_discussions.feature index edca4a55866..6d1bbeceef0 100644 --- a/mod/forum/tests/behat/completion_condition_number_discussions.feature +++ b/mod/forum/tests/behat/completion_condition_number_discussions.feature @@ -6,14 +6,14 @@ Feature: Set a certain number of discussions as a completion condition for a for @javascript Scenario: Set X number of discussions as a condition - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | student1 | Student | 1 | student1@asd.com | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/forum/tests/behat/discussion_display.feature b/mod/forum/tests/behat/discussion_display.feature index c0178dc5d32..7b7f2b80488 100644 --- a/mod/forum/tests/behat/discussion_display.feature +++ b/mod/forum/tests/behat/discussion_display.feature @@ -5,13 +5,13 @@ Feature: Students can choose from 4 discussion display options and their choice I need to select which display method I want to use Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | student1 | C1 | student | And I log in as "admin" diff --git a/mod/forum/tests/behat/edit_post_student.feature b/mod/forum/tests/behat/edit_post_student.feature index 0d1ce9b9ea2..29f269bfa6a 100644 --- a/mod/forum/tests/behat/edit_post_student.feature +++ b/mod/forum/tests/behat/edit_post_student.feature @@ -5,13 +5,13 @@ Feature: Students can edit or delete their forum posts within a set time limit I need to edit or delete my forum posts within a certain period of time after posting Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | student1 | C1 | student | And I log in as "admin" diff --git a/mod/forum/tests/behat/edit_post_teacher.feature b/mod/forum/tests/behat/edit_post_teacher.feature index d9f98bcb537..85f906933c7 100644 --- a/mod/forum/tests/behat/edit_post_teacher.feature +++ b/mod/forum/tests/behat/edit_post_teacher.feature @@ -5,14 +5,14 @@ Feature: Teachers can edit or delete any forum post I need to edit or delete any user's forum posts Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/forum/tests/behat/single_forum_discussion.feature b/mod/forum/tests/behat/single_forum_discussion.feature index 72ed9287117..ddd724685da 100644 --- a/mod/forum/tests/behat/single_forum_discussion.feature +++ b/mod/forum/tests/behat/single_forum_discussion.feature @@ -5,14 +5,14 @@ Feature: Single simple forum discussion type I need to create a forum with a single simple discussion Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/forum/tests/behat/track_read_posts.feature b/mod/forum/tests/behat/track_read_posts.feature index da92f8605e3..9fae0c8798a 100644 --- a/mod/forum/tests/behat/track_read_posts.feature +++ b/mod/forum/tests/behat/track_read_posts.feature @@ -5,14 +5,14 @@ Feature: A teacher can set one of 3 possible options for tracking read forum pos I need to distinct the unread posts from the read ones Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | trackforums | | student1 | Student | 1 | student1@asd.com | 1 | | student2 | Student | 2 | student2@asd.com | 0 | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | student1 | C1 | student | | student2 | C1 | student | diff --git a/mod/glossary/tests/behat/entries_always_editable.feature b/mod/glossary/tests/behat/entries_always_editable.feature index 80a14de1093..bc1633311e7 100644 --- a/mod/glossary/tests/behat/entries_always_editable.feature +++ b/mod/glossary/tests/behat/entries_always_editable.feature @@ -6,14 +6,14 @@ Feature: A teacher can set whether glossary entries are always editable or not @javascript Scenario: Glossary entries are not always editable - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | @@ -35,9 +35,9 @@ Feature: A teacher can set whether glossary entries are always editable or not When I add a glossary entry with the following data: | Concept | Test concept name | | Definition | Test concept description | - Then "Delete: Test concept name" "link" should exists - And "Edit: Test concept name" "link" should exists + Then "Delete: Test concept name" "link" should exist + And "Edit: Test concept name" "link" should exist And I wait "65" seconds And I reload the page - Then "Delete: Test concept name" "link" should not exists - And "Edit: Test concept name" "link" should not exists + Then "Delete: Test concept name" "link" should not exist + And "Edit: Test concept name" "link" should not exist diff --git a/mod/glossary/tests/behat/entries_require_approval.feature b/mod/glossary/tests/behat/entries_require_approval.feature index c3d2b5e034b..eb35bb110c2 100644 --- a/mod/glossary/tests/behat/entries_require_approval.feature +++ b/mod/glossary/tests/behat/entries_require_approval.feature @@ -5,15 +5,15 @@ Feature: A teacher can choose whether glossary entries require approval I need to enable entries requiring approval Scenario: Approve and undo approve glossary entries - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | | student2 | Student | 2 | student2@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/glossary/tests/behat/prevent_duplicate_entries.feature b/mod/glossary/tests/behat/prevent_duplicate_entries.feature index 1eea3a9cdc5..55d9b1a7642 100644 --- a/mod/glossary/tests/behat/prevent_duplicate_entries.feature +++ b/mod/glossary/tests/behat/prevent_duplicate_entries.feature @@ -6,13 +6,13 @@ Feature: A teacher can choose whether to allow duplicate entries in a glossary @javascript Scenario: Prevent duplicate entries - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" diff --git a/mod/glossary/tests/behat/print_friendly_version.feature b/mod/glossary/tests/behat/print_friendly_version.feature index 3edad498e19..5b2cb8d3e86 100644 --- a/mod/glossary/tests/behat/print_friendly_version.feature +++ b/mod/glossary/tests/behat/print_friendly_version.feature @@ -5,14 +5,14 @@ Feature: A teacher can choose whether to provide a printer-friendly glossary ent I need to provide users a different view to print the glossary contents Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | @@ -33,8 +33,8 @@ Feature: A teacher can choose whether to provide a printer-friendly glossary ent When I add a glossary entry with the following data: | Concept | Just a test concept | | Definition | Concept definition | - Then "Printer-friendly version" "link" should exists - And "//*[contains(concat(' ', normalize-space(@class), ' '), ' printicon ')][contains(@href, 'print.php')]" "xpath_element" should exists + Then "Printer-friendly version" "link" should exist + And "//*[contains(concat(' ', normalize-space(@class), ' '), ' printicon ')][contains(@href, 'print.php')]" "xpath_element" should exist And I follow "Printer-friendly version" And I should see "Just a test concept" @@ -51,5 +51,5 @@ Feature: A teacher can choose whether to provide a printer-friendly glossary ent When I add a glossary entry with the following data: | Concept | Just a test concept | | Definition | Concept definition | - Then "Printer-friendly version" "link" should not exists - And "//*[contains(concat(' ', normalize-space(@class), ' '), ' printicon ')][contains(@href, 'print.php')]" "xpath_element" should not exists + Then "Printer-friendly version" "link" should not exist + And "//*[contains(concat(' ', normalize-space(@class), ' '), ' printicon ')][contains(@href, 'print.php')]" "xpath_element" should not exist diff --git a/mod/glossary/tests/behat/search_entries.feature b/mod/glossary/tests/behat/search_entries.feature index 42d81601ce7..3e0ceaa50c4 100644 --- a/mod/glossary/tests/behat/search_entries.feature +++ b/mod/glossary/tests/behat/search_entries.feature @@ -5,14 +5,14 @@ Feature: Glossary entries can be searched or browsed by alphabet, category, date I need to search the entries list by keyword, alphabet, category, date and author Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/lesson/tests/behat/date_availability.feature b/mod/lesson/tests/behat/date_availability.feature index 345520aa95d..9d75adc15b4 100644 --- a/mod/lesson/tests/behat/date_availability.feature +++ b/mod/lesson/tests/behat/date_availability.feature @@ -5,14 +5,14 @@ Feature: A teacher can set available from and deadline dates to access a lesson I need to set available from and deadline dates Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/lesson/tests/behat/lesson_navigation.feature b/mod/lesson/tests/behat/lesson_navigation.feature index 66e2208fe8c..200f3136413 100644 --- a/mod/lesson/tests/behat/lesson_navigation.feature +++ b/mod/lesson/tests/behat/lesson_navigation.feature @@ -6,14 +6,14 @@ Feature: In a lesson activity, students can navigate through a series of pages i @javascript Scenario: Student navigation with pages and questions - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/lesson/tests/behat/password_protection.feature b/mod/lesson/tests/behat/password_protection.feature index 5bf65a278de..74548e27072 100644 --- a/mod/lesson/tests/behat/password_protection.feature +++ b/mod/lesson/tests/behat/password_protection.feature @@ -6,14 +6,14 @@ Feature: A teacher can password protect a lesson @javascript Scenario: Accessing as student to a protected lesson - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/lesson/tests/behat/time_limit.feature b/mod/lesson/tests/behat/time_limit.feature index 77853ec704c..9089bae6edd 100644 --- a/mod/lesson/tests/behat/time_limit.feature +++ b/mod/lesson/tests/behat/time_limit.feature @@ -6,14 +6,14 @@ Feature: A teacher can set a time limit for a lesson @javascript Scenario: Accessing as student to a lesson with time limit - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/quiz/tests/behat/add_quiz.feature b/mod/quiz/tests/behat/add_quiz.feature index ffb481f326b..a06bde60711 100644 --- a/mod/quiz/tests/behat/add_quiz.feature +++ b/mod/quiz/tests/behat/add_quiz.feature @@ -5,14 +5,14 @@ Feature: Add a quiz I need to create a quiz Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Terry1 | Teacher1 | teacher1@moodle.com | | student1 | Sam1 | Student1 | student1@moodle.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/scorm/tests/behat/add_scorm.feature b/mod/scorm/tests/behat/add_scorm.feature index 46df99340c3..85a72495ece 100644 --- a/mod/scorm/tests/behat/add_scorm.feature +++ b/mod/scorm/tests/behat/add_scorm.feature @@ -6,14 +6,14 @@ Feature: Add scorm activity @javascript Scenario: Add a scorm activity to a course - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/survey/tests/behat/survey_types.feature b/mod/survey/tests/behat/survey_types.feature index 6e4b4d6f642..a062efd852b 100644 --- a/mod/survey/tests/behat/survey_types.feature +++ b/mod/survey/tests/behat/survey_types.feature @@ -5,13 +5,13 @@ Feature: A teacher can set three types of survey activity I need to set survey activities and select which survey type suits my needs Scenario: Switching between the three survey types - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" diff --git a/mod/wiki/tests/behat/collaborative_individual.feature b/mod/wiki/tests/behat/collaborative_individual.feature index d0d133f1316..b64d6d94356 100644 --- a/mod/wiki/tests/behat/collaborative_individual.feature +++ b/mod/wiki/tests/behat/collaborative_individual.feature @@ -6,15 +6,15 @@ Feature: A teacher can set a wiki to be collaborative or individual @javascript Scenario: Collaborative and individual wikis - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | | student2 | Student | 2 | student2@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/wiki/tests/behat/page_history.feature b/mod/wiki/tests/behat/page_history.feature index a15bc565fdb..c120de1c98c 100644 --- a/mod/wiki/tests/behat/page_history.feature +++ b/mod/wiki/tests/behat/page_history.feature @@ -6,15 +6,15 @@ Feature: A history of each wiki page is available @javascript Scenario: Wiki page edition history changes list - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | | student2 | Student | 2 | student2@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | @@ -50,7 +50,7 @@ Feature: A history of each wiki page is available And I press "Save" And I follow "History" # Checking that there are 3 history items (the first one is are th) - And "//*[@id='region-main']/descendant::table/descendant::tr[4]" "xpath_element" should exists + And "//*[@id='region-main']/descendant::table/descendant::tr[4]" "xpath_element" should exist And I click on "1" "link" in the "Teacher 1" "table_row" And I should see "First edition" And I should see "Teacher 1" diff --git a/mod/wiki/tests/behat/preview_page.feature b/mod/wiki/tests/behat/preview_page.feature index 0dfec42c908..56a455590b5 100644 --- a/mod/wiki/tests/behat/preview_page.feature +++ b/mod/wiki/tests/behat/preview_page.feature @@ -5,14 +5,14 @@ Feature: Edited wiki pages may be previewed before saving I need to preview pages before saving changes Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | | student1 | Student | 1 | student1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | diff --git a/mod/wiki/tests/behat/wiki_formats.feature b/mod/wiki/tests/behat/wiki_formats.feature index 035865130fd..7a7732af3d2 100644 --- a/mod/wiki/tests/behat/wiki_formats.feature +++ b/mod/wiki/tests/behat/wiki_formats.feature @@ -5,13 +5,13 @@ Feature: There is a choice of formats for editing a wiki page I need to choose which wiki format do I want to use Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" @@ -28,7 +28,7 @@ Feature: There is a choice of formats for editing a wiki page When I set the following fields to these values: | Creole format | 1 | And I press "Create page" - Then "div.wikieditor-toolbar" "css_element" should exists + Then "div.wikieditor-toolbar" "css_element" should exist # Click on bold, italic, interal link and H1 And I click on "//div[@class='wikieditor-toolbar']/descendant::a[1]" "xpath_element" And I click on "//div[@class='wikieditor-toolbar']/descendant::a[2]" "xpath_element" @@ -48,7 +48,7 @@ Feature: There is a choice of formats for editing a wiki page When I set the following fields to these values: | NWiki format | 1 | And I press "Create page" - Then "div.wikieditor-toolbar" "css_element" should exists + Then "div.wikieditor-toolbar" "css_element" should exist # Click on italic, interal link and H1 And I click on "//div[@class='wikieditor-toolbar']/descendant::a[2]" "xpath_element" And I click on "//div[@class='wikieditor-toolbar']/descendant::a[4]" "xpath_element" @@ -67,8 +67,8 @@ Feature: There is a choice of formats for editing a wiki page When I set the following fields to these values: | HTML format | 1 | And I press "Create page" - Then "#id_newcontent_editor_tbl" "css_element" should exists - And ".mce_bold" "css_element" should exists + Then "#id_newcontent_editor_tbl" "css_element" should exist + And ".mce_bold" "css_element" should exist And I set the following fields to these values: | HTML format | I'm a text | And I press "Save" diff --git a/mod/workshop/tests/behat/workshop_assessment.feature b/mod/workshop/tests/behat/workshop_assessment.feature index 5546a3eb559..7f02512f426 100644 --- a/mod/workshop/tests/behat/workshop_assessment.feature +++ b/mod/workshop/tests/behat/workshop_assessment.feature @@ -5,24 +5,24 @@ Feature: Workshop submission and assessment I need to be able to add a submission and assess those of my peers Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | student1 | Sam1 | Student1 | student1@asd.com | | student2 | Sam2 | Student2 | student2@asd.com | | student3 | Sam3 | Student3 | student3@asd.com | | student4 | Sam4 | Student4 | student3@asd.com | | teacher1 | Terry1 | Teacher1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | | Course1 | c1 | - And the following "course enrolments" exists: + And the following "course enrolment" exist: | user | course | role | | student1 | c1 | student | | student2 | c1 | student | | student3 | c1 | student | | student4 | c1 | student | | teacher1 | c1 | editingteacher | - And the following "activities" exists: + And the following "activities" exist: | activity | name | intro | course | idnumber | | workshop | TestWorkshop | Test workshop description | c1 | workshop1 | # teacher1 sets up assessment form and changes the phase to submission @@ -42,7 +42,7 @@ Feature: Workshop submission and assessment And I add a submission in workshop "TestWorkshop" as:" | Title | Submission1 | | Submission content | Some content | - And "//div[@class='submission-full' and contains(.,'Submission1') and contains(.,'submitted on')]" "xpath_element" should exists + And "//div[@class='submission-full' and contains(.,'Submission1') and contains(.,'submitted on')]" "xpath_element" should exist And I log out # student2 submits And I log in as "student2" @@ -82,14 +82,14 @@ Feature: Workshop submission and assessment And I log in as "student1" And I follow "Course1" And I follow "TestWorkshop" - And "//ul[@class='tasks']/li[div[@class='title' and contains(.,'Assess peers')]]/div[@class='details' and contains(.,'pending: 2') and contains(.,'total: 2')]" "xpath_element" should exists + And "//ul[@class='tasks']/li[div[@class='title' and contains(.,'Assess peers')]]/div[@class='details' and contains(.,'pending: 2') and contains(.,'total: 2')]" "xpath_element" should exist And I assess submission "Sam2" in workshop "TestWorkshop" as:" | grade__idx_0 | 5 / 10 | | peercomment__idx_0 | You can do better | | grade__idx_1 | 10 / 10 | | peercomment__idx_1 | Amazing | | Feedback for the author | Good work | - And "//ul[@class='tasks']/li[div[@class='title' and contains(.,'Assess peers')]]/div[@class='details' and contains(.,'pending: 1') and contains(.,'total: 2')]" "xpath_element" should exists + And "//ul[@class='tasks']/li[div[@class='title' and contains(.,'Assess peers')]]/div[@class='details' and contains(.,'pending: 1') and contains(.,'total: 2')]" "xpath_element" should exist And I follow "Course1" And I assess submission "Sam3" in workshop "TestWorkshop" as:" | grade__idx_0 | 9 / 10 | @@ -97,20 +97,20 @@ Feature: Workshop submission and assessment | grade__idx_1 | 8 / 10 | | peercomment__idx_1 | Very good | | Feedback for the author | No comments | - And "//ul[@class='tasks']/li[div[@class='title' and contains(.,'Assess peers')]]/div[@class='details' and contains(.,'pending: 0') and contains(.,'total: 2')]" "xpath_element" should exists + And "//ul[@class='tasks']/li[div[@class='title' and contains(.,'Assess peers')]]/div[@class='details' and contains(.,'pending: 0') and contains(.,'total: 2')]" "xpath_element" should exist And I log out # student2 assesses work of student1 And I log in as "student2" And I follow "Course1" And I follow "TestWorkshop" - And "//ul[@class='tasks']/li[div[@class='title' and contains(.,'Assess peers')]]/div[@class='details' and contains(.,'pending: 1') and contains(.,'total: 1')]" "xpath_element" should exists + And "//ul[@class='tasks']/li[div[@class='title' and contains(.,'Assess peers')]]/div[@class='details' and contains(.,'pending: 1') and contains(.,'total: 1')]" "xpath_element" should exist And I assess submission "Sam1" in workshop "TestWorkshop" as:" | grade__idx_0 | 6 / 10 | | peercomment__idx_0 | | | grade__idx_1 | 7 / 10 | | peercomment__idx_1 | | | Feedback for the author | Keep it up | - And "//ul[@class='tasks']/li[div[@class='title' and contains(.,'Assess peers')]]/div[@class='details' and contains(.,'pending: 0') and contains(.,'total: 1')]" "xpath_element" should exists + And "//ul[@class='tasks']/li[div[@class='title' and contains(.,'Assess peers')]]/div[@class='details' and contains(.,'pending: 0') and contains(.,'total: 1')]" "xpath_element" should exist And I log out # teacher1 makes sure he can see all peer grades And I log in as "teacher1" diff --git a/my/tests/behat/add_blocks.feature b/my/tests/behat/add_blocks.feature index 8cf8f8266b2..740febfdd4c 100644 --- a/my/tests/behat/add_blocks.feature +++ b/my/tests/behat/add_blocks.feature @@ -5,14 +5,14 @@ Feature: Add blocks to my home page I need to add blocks to my home page Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | student1 | Student | 1 | student1@asd.com | | student2 | Student | 2 | student2@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | student1 | C1 | student | | student2 | C1 | student | diff --git a/my/tests/behat/reset_page.feature b/my/tests/behat/reset_page.feature index e317368df81..0f1b1491793 100644 --- a/my/tests/behat/reset_page.feature +++ b/my/tests/behat/reset_page.feature @@ -5,14 +5,14 @@ Feature: Reset my home page to default I need to reset my home page Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | student1 | Student | 1 | student1@asd.com | | student2 | Student | 2 | student2@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | student1 | C1 | student | | student2 | C1 | student | diff --git a/question/tests/behat/copy_questions.feature b/question/tests/behat/copy_questions.feature index e529566114a..658396f4f2f 100644 --- a/question/tests/behat/copy_questions.feature +++ b/question/tests/behat/copy_questions.feature @@ -6,13 +6,13 @@ Feature: A teacher can duplicate questions in the question bank @javascript Scenario: copy a previously created question - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | weeks | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "admin" diff --git a/question/tests/behat/delete_questions.feature b/question/tests/behat/delete_questions.feature index ad6ed86e57d..61537f0fda8 100644 --- a/question/tests/behat/delete_questions.feature +++ b/question/tests/behat/delete_questions.feature @@ -5,13 +5,13 @@ Feature: A teacher can delete questions in the question bank I need to delete questions Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | weeks | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" diff --git a/question/tests/behat/edit_questions.feature b/question/tests/behat/edit_questions.feature index 702ed90cfd1..1e4c0fb57d7 100644 --- a/question/tests/behat/edit_questions.feature +++ b/question/tests/behat/edit_questions.feature @@ -6,13 +6,13 @@ Feature: A teacher can edit questions in the question bank @javascript @_switch_window Scenario: Edit a previously created question - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | weeks | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "admin" diff --git a/question/tests/behat/preview_question.feature b/question/tests/behat/preview_question.feature index 0923ce4dc7d..45ad854fb09 100644 --- a/question/tests/behat/preview_question.feature +++ b/question/tests/behat/preview_question.feature @@ -6,13 +6,13 @@ Feature: A teacher can preview questions in the question bank @javascript Scenario: Preview a previously created question - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | weeks | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" diff --git a/question/tests/behat/question_categories.feature b/question/tests/behat/question_categories.feature index 3517ecd2a09..816bd5b1488 100644 --- a/question/tests/behat/question_categories.feature +++ b/question/tests/behat/question_categories.feature @@ -5,13 +5,13 @@ Feature: A teacher can put questions in categories in the question bank I need to put questions in categories Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | weeks | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" diff --git a/question/tests/behat/sort_questions.feature b/question/tests/behat/sort_questions.feature index 27afd481090..bbecb555a9d 100644 --- a/question/tests/behat/sort_questions.feature +++ b/question/tests/behat/sort_questions.feature @@ -6,13 +6,13 @@ Feature: A teacher can sort questions in the question bank @javascript Scenario: Sort using question name, question type and created by sort order links - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | weeks | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "admin" diff --git a/repository/recent/tests/behat/add_recent.feature b/repository/recent/tests/behat/add_recent.feature index e11ca44f708..e8c756e18c7 100644 --- a/repository/recent/tests/behat/add_recent.feature +++ b/repository/recent/tests/behat/add_recent.feature @@ -6,7 +6,7 @@ Feature: Recent files repository lists the recently used files @javascript Scenario: Add files recently uploaded - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And I log in as "admin" diff --git a/repository/tests/behat/cancel_add_file.feature b/repository/tests/behat/cancel_add_file.feature index bb2160307f3..8f7292cb170 100644 --- a/repository/tests/behat/cancel_add_file.feature +++ b/repository/tests/behat/cancel_add_file.feature @@ -6,7 +6,7 @@ Feature: A selected file can be cancelled @javascript @_bug_phantomjs Scenario: Cancel a selected recent file from being added to a folder - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And I log in as "admin" diff --git a/repository/tests/behat/create_folders.feature b/repository/tests/behat/create_folders.feature index 6f03db2a0fa..0efecb17449 100644 --- a/repository/tests/behat/create_folders.feature +++ b/repository/tests/behat/create_folders.feature @@ -6,7 +6,7 @@ Feature: Create folders in the file manager @javascript @_bug_phantomjs Scenario: Create folders and subfolders - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And I log in as "admin" diff --git a/repository/tests/behat/create_shortcut.feature b/repository/tests/behat/create_shortcut.feature index e7b2961f70a..988b49d2f0b 100644 --- a/repository/tests/behat/create_shortcut.feature +++ b/repository/tests/behat/create_shortcut.feature @@ -6,13 +6,13 @@ Feature: Create shortcuts @javascript @_bug_phantomjs Scenario: Upload a file as a copy and as a shortcut in filemanager - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Terry | Teacher | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | When I log in as "teacher1" @@ -31,7 +31,7 @@ Feature: Create shortcuts And I add "empty.txt" file from "Private files" to "Files" filemanager And I should see "1" elements in "Files" filemanager And I should see "empty.txt" in the ".fp-content .fp-file" "css_element" - And ".fp-content .fp-file.fp-isreference" "css_element" should not exists + And ".fp-content .fp-file.fp-isreference" "css_element" should not exist And I add "empty.txt" file from "Private files" to "Files" filemanager as: | Save as | empty_ref.txt | | Create an alias/shortcut to the file | 1 | @@ -47,13 +47,13 @@ Feature: Create shortcuts And I add and overwrite "empty.txt" file from "Private files" to "Files" filemanager as: | Save as | empty_ref.txt | And I should see "2" elements in "Files" filemanager - And ".fp-content .fp-file.fp-isreference" "css_element" should not exists + And ".fp-content .fp-file.fp-isreference" "css_element" should not exist And I press "Save changes" And I should see "empty.txt" And I should see "empty_ref.txt" And I press "Edit" And I should see "2" elements in "Files" filemanager - And ".fp-content .fp-file.fp-isreference" "css_element" should not exists + And ".fp-content .fp-file.fp-isreference" "css_element" should not exist # ------ Overwriting non-reference with a reference --------- And I add and overwrite "empty.txt" file from "Private files" to "Files" filemanager as: | Save as | empty_ref.txt | diff --git a/repository/tests/behat/overwrite_file.feature b/repository/tests/behat/overwrite_file.feature index 9e528c8a3f7..cebfc334ab4 100644 --- a/repository/tests/behat/overwrite_file.feature +++ b/repository/tests/behat/overwrite_file.feature @@ -6,13 +6,13 @@ Feature: Overwrite file feature @javascript @_bug_phantomjs Scenario: Upload a file in filemanager and overwrite it - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Terry | Teacher | teacher1@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | When I log in as "teacher1" diff --git a/repository/tests/behat/zip_and_unzip.feature b/repository/tests/behat/zip_and_unzip.feature index b3963c6a112..20c1a974a5b 100644 --- a/repository/tests/behat/zip_and_unzip.feature +++ b/repository/tests/behat/zip_and_unzip.feature @@ -6,7 +6,7 @@ Feature: Zip folders and unzip compressed files @javascript @_bug_phantomjs Scenario: Zip and unzip folders and files - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And I log in as "admin" diff --git a/repository/upload/tests/behat/upload_file.feature b/repository/upload/tests/behat/upload_file.feature index 4a932635b5f..9a46088f68a 100644 --- a/repository/upload/tests/behat/upload_file.feature +++ b/repository/upload/tests/behat/upload_file.feature @@ -6,7 +6,7 @@ Feature: Upload files @javascript Scenario: Upload a file in a multiple file filemanager - Given the following "courses" exists: + Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And I log in as "admin" diff --git a/user/tests/behat/add_blocks.feature b/user/tests/behat/add_blocks.feature index 3245d272e2e..48219a0f52b 100644 --- a/user/tests/behat/add_blocks.feature +++ b/user/tests/behat/add_blocks.feature @@ -5,14 +5,14 @@ Feature: Add blocks to my profile page I need to add blocks to my profile page Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | student1 | Student | 1 | student1@asd.com | | student2 | Student | 2 | student2@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | student1 | C1 | student | | student2 | C1 | student | diff --git a/user/tests/behat/reset_page.feature b/user/tests/behat/reset_page.feature index 9752f55b514..b713f9f7301 100644 --- a/user/tests/behat/reset_page.feature +++ b/user/tests/behat/reset_page.feature @@ -5,14 +5,14 @@ Feature: Reset my profile page to default I need to reset my profile page Background: - Given the following "users" exists: + Given the following "users" exist: | username | firstname | lastname | email | | student1 | Student | 1 | student1@asd.com | | student2 | Student | 2 | student2@asd.com | - And the following "courses" exists: + And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | - And the following "course enrolments" exists: + And the following "course enrolments" exist: | user | course | role | | student1 | C1 | student | | student2 | C1 | student |