MDL-58265 core_test: replace I turn editing on steps
authorSimey Lameze <simey@moodle.com>
Wed, 15 Mar 2017 07:13:09 +0000 (15:13 +0800)
committerDamyon Wiese <damyon@moodle.com>
Mon, 3 Apr 2017 03:37:07 +0000 (11:37 +0800)
Also remove few more unnecessary steps that redirects behat to
site home page to actually get to the course.

Part of MDL-55611 epic.

458 files changed:
admin/roles/tests/behat/override_roles_highlighting.feature
admin/tool/availabilityconditions/tests/behat/manage_conditions.feature
admin/tool/behat/tests/behat/data_generators.feature
admin/tool/behat/tests/behat/datetime_strings.feature
admin/tool/behat/tests/behat/edit_permissions.feature
admin/tool/behat/tests/behat/get_and_set_fields.feature
admin/tool/behat/tests/behat/manipulate_forms.feature
admin/tool/filetypes/tests/behat/add_filetypes.feature
admin/tool/monitor/tests/behat/rule.feature
admin/tool/monitor/tests/behat/subscription.feature
admin/tool/recyclebin/tests/behat/backup_user_data.feature
admin/tool/recyclebin/tests/behat/basic_functionality.feature
admin/tool/uploaduser/tests/behat/upload_users.feature
admin/tool/usertours/tests/behat/create_tour.feature
admin/tool/usertours/tests/behat/tour_filter.feature
availability/condition/completion/tests/behat/availability_completion.feature
availability/condition/completion/tests/behat/conditional_bug.feature
availability/condition/date/tests/behat/availability_date.feature
availability/condition/grade/tests/behat/availability_grade.feature
availability/condition/group/tests/behat/availability_group.feature
availability/condition/grouping/tests/behat/availability_grouping.feature
availability/condition/profile/tests/behat/availability_profile.feature
availability/tests/behat/display_availability.feature
availability/tests/behat/edit_availability.feature
backup/util/ui/tests/behat/duplicate_activities.feature
backup/util/ui/tests/behat/import_course.feature
backup/util/ui/tests/behat/import_groups.feature
backup/util/ui/tests/behat/restore_moodle2_courses.feature
badges/tests/behat/award_badge.feature
blocks/activity_modules/tests/behat/block_activity_modules.feature
blocks/activity_results/tests/behat/addblockinactivity.feature
blocks/activity_results/tests/behat/addunconfiguredblock.feature
blocks/activity_results/tests/behat/addunsupportedactivity.feature
blocks/activity_results/tests/behat/defaultsettings.feature
blocks/activity_results/tests/behat/highscoreswithoutgroups.feature
blocks/activity_results/tests/behat/highscoreswithscales.feature
blocks/activity_results/tests/behat/highscoreswithscalesandgroups.feature
blocks/activity_results/tests/behat/highscoreswithseperategroups.feature
blocks/activity_results/tests/behat/highscoreswithvisiblegroups.feature
blocks/activity_results/tests/behat/lowscoreswithoutgroups.feature
blocks/activity_results/tests/behat/lowscoreswithscales.feature
blocks/activity_results/tests/behat/lowscoreswithscalesandgroups.feature
blocks/activity_results/tests/behat/lowscoreswithseperategroups.feature
blocks/activity_results/tests/behat/lowscoreswithvisiblegroups.feature
blocks/badges/tests/behat/block_badges.feature
blocks/badges/tests/behat/block_badges_course.feature
blocks/badges/tests/behat/block_badges_dashboard.feature
blocks/badges/tests/behat/block_badges_frontpage.feature
blocks/blog_menu/tests/behat/block_blog_menu.feature
blocks/blog_menu/tests/behat/block_blog_menu_activity.feature
blocks/blog_menu/tests/behat/block_blog_menu_course.feature
blocks/blog_recent/tests/behat/block_blog_recent.feature
blocks/blog_recent/tests/behat/block_blog_recent_activity.feature
blocks/blog_recent/tests/behat/block_blog_recent_course.feature
blocks/blog_tags/tests/behat/blogtag.feature
blocks/calendar_month/tests/behat/block_calendar_month.feature
blocks/calendar_month/tests/behat/block_calendar_month_course.feature
blocks/comments/tests/behat/add_comment.feature
blocks/comments/tests/behat/block_comment_activity.feature
blocks/comments/tests/behat/block_comment_course.feature
blocks/comments/tests/behat/delete_comment.feature
blocks/completionstatus/tests/behat/block_completionstatus.feature
blocks/completionstatus/tests/behat/block_completionstatus_activity_completion.feature
blocks/completionstatus/tests/behat/block_completionstatus_manual_other.feature
blocks/completionstatus/tests/behat/block_completionstatus_manual_self.feature
blocks/course_list/tests/behat/block_course_list_category.feature
blocks/course_list/tests/behat/block_course_list_course.feature
blocks/course_list/tests/behat/block_course_list_dashboard.feature
blocks/course_list/tests/behat/block_course_list_frontpage.feature
blocks/course_summary/tests/behat/block_course_summary_course.feature
blocks/glossary_random/tests/behat/glossary_random.feature
blocks/glossary_random/tests/behat/glossary_random_global.feature
blocks/html/tests/behat/course_block.feature
blocks/messages/tests/behat/block_messages_course.feature
blocks/myprofile/tests/behat/block_myprofile_activity.feature
blocks/myprofile/tests/behat/block_myprofile_course.feature
blocks/navigation/tests/behat/expand_courses_node.feature
blocks/news_items/tests/behat/display_news.feature
blocks/online_users/tests/behat/block_online_users_course.feature
blocks/participants/tests/behat/block_participants_course.feature
blocks/private_files/tests/behat/block_private_files_activity.feature
blocks/private_files/tests/behat/block_private_files_course.feature
blocks/recent_activity/tests/behat/structural_changes.feature
blocks/search_forums/tests/behat/block_search_forums_course.feature
blocks/section_links/tests/behat/block_section_links_course.feature
blocks/social_activities/tests/behat/edit_activities.feature
blocks/tags/tests/behat/tagcloud.feature
blocks/tests/behat/add_blocks.feature
blocks/tests/behat/configure_block_throughout_site.feature
blocks/tests/behat/hidden_block_region.feature
blocks/tests/behat/hide_blocks.feature
blocks/tests/behat/manage_blocks.feature
blocks/tests/behat/move_blocks.feature
blocks/tests/behat/restrict_available_blocks.feature
blocks/tests/behat/return_block_original_state.feature
blog/tests/behat/blog_visibility.feature
calendar/tests/behat/calendar.feature
calendar/tests/behat/calendar_lookahead.feature
cohort/tests/behat/access_visible_cohorts.feature
cohort/tests/behat/upload_cohort_users.feature
completion/tests/behat/enable_manual_complete_mark.feature
completion/tests/behat/restrict_activity_by_date.feature
completion/tests/behat/restrict_activity_by_grade.feature
completion/tests/behat/restrict_section_availability.feature
completion/tests/behat/teacher_manual_completion.feature
course/format/social/tests/behat/social_adjust_discussion_count.feature
course/format/topics/tests/behat/edit_delete_sections.feature
course/format/weeks/tests/behat/edit_delete_sections.feature
course/tests/behat/activities_edit_completion.feature
course/tests/behat/activities_edit_name.feature
course/tests/behat/activities_edit_with_block_dock.feature
course/tests/behat/activities_group_icons.feature
course/tests/behat/activities_indentation.feature
course/tests/behat/activities_visibility_icons.feature
course/tests/behat/add_activities.feature
course/tests/behat/course_controls.feature
course/tests/behat/course_creation.feature
course/tests/behat/coursetags.feature
course/tests/behat/edit_settings.feature
course/tests/behat/force_group_mode.feature
course/tests/behat/move_activities.feature
course/tests/behat/move_sections.feature
course/tests/behat/navigate_course_list.feature
course/tests/behat/paged_course_navigation.feature
course/tests/behat/rename_roles.feature
course/tests/behat/restrict_available_activities.feature
course/tests/behat/role_renaming.feature
course/tests/behat/section_highlighting.feature
course/tests/behat/section_visibility.feature
course/tests/behat/view_subfolders_inline.feature
enrol/guest/tests/behat/guest_access.feature
enrol/lti/tests/behat/basic_settings.feature
enrol/lti/tests/behat/index_page.feature
enrol/meta/tests/behat/enrol_meta.feature
enrol/self/tests/behat/key_holder.feature
enrol/self/tests/behat/self_enrolment.feature
enrol/tests/behat/add_to_group.feature
enrol/tests/behat/enrol_user.feature
enrol/tests/behat/filter_enrolled_users.feature
enrol/tests/behat/manage_enrolments_from_participants.feature
files/tests/behat/add_custom_file_type.feature
files/tests/behat/course_files.feature
grade/export/txt/tests/behat/export.feature
grade/export/xml/tests/behat/export.feature
grade/grading/form/guide/tests/behat/edit_guide.feature
grade/grading/form/rubric/tests/behat/edit_rubric.feature
grade/grading/form/rubric/tests/behat/grade_calculation.feature
grade/grading/form/rubric/tests/behat/negative_points.feature
grade/grading/form/rubric/tests/behat/publish_rubric_templates.feature
grade/grading/form/rubric/tests/behat/reuse_own_rubrics.feature
grade/report/grader/tests/behat/ajax_grader.feature
grade/report/grader/tests/behat/switch_views.feature
grade/report/history/tests/behat/basic_functionality.feature
grade/report/singleview/tests/behat/bulk_insert_grades.feature
grade/report/singleview/tests/behat/singleview.feature
grade/report/user/tests/behat/user_view.feature
grade/report/user/tests/behat/view_usereport.feature
grade/tests/behat/grade_UI_settings.feature
grade/tests/behat/grade_aggregation.feature
grade/tests/behat/grade_aggregation_changes.feature
grade/tests/behat/grade_average.feature
grade/tests/behat/grade_calculated_grade_items.feature
grade/tests/behat/grade_calculated_grade_items_20150627.feature
grade/tests/behat/grade_calculated_weights.feature
grade/tests/behat/grade_category_validation.feature
grade/tests/behat/grade_contribution_with_extra_credit.feature
grade/tests/behat/grade_grade_minmax_change.feature
grade/tests/behat/grade_hidden_items.feature
grade/tests/behat/grade_item_validation.feature
grade/tests/behat/grade_letter_boundary.feature
grade/tests/behat/grade_letter_boundary_20160518.feature
grade/tests/behat/grade_mingrade.feature
grade/tests/behat/grade_natural_exclude_empty.feature
grade/tests/behat/grade_natural_exclude_empty_20150619.feature
grade/tests/behat/grade_natural_normalisation.feature
grade/tests/behat/grade_natural_normalisation_20150619.feature
grade/tests/behat/grade_override_letter.feature
grade/tests/behat/grade_point_maximum.feature
grade/tests/behat/grade_scales.feature
grade/tests/behat/grade_scales_aggregation.feature
grade/tests/behat/grade_single_item_scales.feature
grade/tests/behat/grade_to_pass.feature
grade/tests/behat/grade_view.feature
group/tests/behat/auto_creation.feature
group/tests/behat/create_groups.feature
group/tests/behat/delete_groups.feature
group/tests/behat/groups_import.feature
group/tests/behat/id_uniqueness.feature
group/tests/behat/overview.feature
group/tests/behat/update_groups.feature
lib/editor/atto/tests/behat/autosave.feature
lib/editor/atto/tests/behat/customtoolbar.feature
lib/editor/tinymce/tests/behat/edit_available_icons.feature
lib/form/tests/behat/modgrade_validation.feature
lib/form/tests/behat/multi_select_dependencies.feature
lib/tests/behat/largeforms.feature
login/tests/behat/change_password.feature
message/output/popup/tests/behat/notification_popover_unread.feature
mod/assign/feedback/editpdf/tests/behat/annotate_pdf.feature
mod/assign/feedback/editpdf/tests/behat/group_annotations.feature
mod/assign/feedback/editpdf/tests/behat/view_previous_annotations.feature
mod/assign/feedback/file/tests/behat/feedback_file.feature
mod/assign/tests/behat/allow_another_attempt.feature
mod/assign/tests/behat/assign_course_reset.feature
mod/assign/tests/behat/assign_group_override.feature
mod/assign/tests/behat/assign_user_override.feature
mod/assign/tests/behat/comment_inline.feature
mod/assign/tests/behat/display_error_message_onbadformat.feature
mod/assign/tests/behat/display_grade.feature
mod/assign/tests/behat/edit_previous_feedback.feature
mod/assign/tests/behat/edit_student_submission.feature
mod/assign/tests/behat/file_submission.feature
mod/assign/tests/behat/filter_by_marker.feature
mod/assign/tests/behat/grading_status.feature
mod/assign/tests/behat/grant_extension.feature
mod/assign/tests/behat/group_submission.feature
mod/assign/tests/behat/online_submissions.feature
mod/assign/tests/behat/outcome_grading.feature
mod/assign/tests/behat/prevent_submission_changes.feature
mod/assign/tests/behat/quickgrading.feature
mod/assign/tests/behat/reopen_locked_submission.feature
mod/assign/tests/behat/rescale_grades.feature
mod/assign/tests/behat/steps_blind_marking.feature
mod/assign/tests/behat/submission_comments.feature
mod/assign/tests/behat/submit_without_group.feature
mod/book/tests/behat/create_chapters.feature
mod/book/tests/behat/edit_navigation_options.feature
mod/book/tests/behat/log_entries.feature
mod/book/tests/behat/show_hide_chapters.feature
mod/chat/tests/behat/chat_calendar_events.feature
mod/chat/tests/behat/chat_course_reset.feature
mod/choice/tests/behat/add_choice.feature
mod/choice/tests/behat/allow_preview.feature
mod/choice/tests/behat/block_editing.feature
mod/choice/tests/behat/change_response.feature
mod/choice/tests/behat/choice_availability.feature
mod/choice/tests/behat/include_inactive.feature
mod/choice/tests/behat/limit_responses.feature
mod/choice/tests/behat/modify_choice.feature
mod/choice/tests/behat/multiple_options.feature
mod/choice/tests/behat/my_home.feature
mod/choice/tests/behat/publish_results.feature
mod/choice/tests/behat/publish_results_anonymously.feature
mod/choice/tests/behat/remove_choice_options.feature
mod/data/tests/behat/add_entries.feature
mod/data/tests/behat/manageapproved.feature
mod/data/tests/behat/required_entries.feature
mod/data/tests/behat/view_entries.feature
mod/feedback/tests/behat/anonymous.feature
mod/feedback/tests/behat/coursemapping.feature
mod/feedback/tests/behat/export_import.feature
mod/feedback/tests/behat/groups.feature
mod/feedback/tests/behat/multichoice.feature
mod/feedback/tests/behat/non_anonymous.feature
mod/feedback/tests/behat/question_types.feature
mod/feedback/tests/behat/question_types_non_anon.feature
mod/feedback/tests/behat/show_nonrespondents.feature
mod/feedback/tests/behat/templates.feature
mod/forum/tests/behat/add_forum.feature
mod/forum/tests/behat/advanced_search.feature
mod/forum/tests/behat/completion_condition_number_discussions.feature
mod/forum/tests/behat/discussion_display.feature
mod/forum/tests/behat/discussion_navigation.feature
mod/forum/tests/behat/discussion_subscriptions.feature
mod/forum/tests/behat/edit_post_student.feature
mod/forum/tests/behat/edit_post_teacher.feature
mod/forum/tests/behat/forum_subscriptions.feature
mod/forum/tests/behat/forum_subscriptions_availability.feature
mod/forum/tests/behat/forum_subscriptions_default.feature
mod/forum/tests/behat/forum_subscriptions_management.feature
mod/forum/tests/behat/groups_in_course_no_groups_in_forum.feature
mod/forum/tests/behat/move_discussion.feature
mod/forum/tests/behat/my_forum_posts.feature
mod/forum/tests/behat/no_groups_in_course.feature
mod/forum/tests/behat/post_to_multiple_groups.feature
mod/forum/tests/behat/posts_ordering_blog.feature
mod/forum/tests/behat/posts_ordering_general.feature
mod/forum/tests/behat/separate_group_discussions.feature
mod/forum/tests/behat/separate_group_single_group_discussions.feature
mod/forum/tests/behat/single_forum_discussion.feature
mod/forum/tests/behat/split_forum_discussion.feature
mod/forum/tests/behat/timed_discussions.feature
mod/forum/tests/behat/track_read_posts.feature
mod/forum/tests/behat/visible_group_discussions.feature
mod/glossary/tests/behat/categories.feature
mod/glossary/tests/behat/entries_always_editable.feature
mod/glossary/tests/behat/entries_require_approval.feature
mod/glossary/tests/behat/prevent_duplicate_entries.feature
mod/glossary/tests/behat/print_friendly_version.feature
mod/glossary/tests/behat/search_entries.feature
mod/label/tests/behat/label_visibility.feature
mod/lesson/tests/behat/completion_condition_end_reached.feature
mod/lesson/tests/behat/completion_condition_time_spent.feature
mod/lesson/tests/behat/date_availability.feature
mod/lesson/tests/behat/duplicate_lesson_page.feature
mod/lesson/tests/behat/import_fillintheblank_question.feature
mod/lesson/tests/behat/import_images.feature
mod/lesson/tests/behat/lesson_complete_report.feature
mod/lesson/tests/behat/lesson_course_reset.feature
mod/lesson/tests/behat/lesson_delete_answers.feature
mod/lesson/tests/behat/lesson_edit_cluster.feature
mod/lesson/tests/behat/lesson_edit_pages.feature
mod/lesson/tests/behat/lesson_essay_question.feature
mod/lesson/tests/behat/lesson_group_override.feature
mod/lesson/tests/behat/lesson_informations_at_end.feature
mod/lesson/tests/behat/lesson_navigation.feature
mod/lesson/tests/behat/lesson_number_of_student_attempts.feature
mod/lesson/tests/behat/lesson_outline_report.feature
mod/lesson/tests/behat/lesson_practice.feature
mod/lesson/tests/behat/lesson_progress_bar.feature
mod/lesson/tests/behat/lesson_question_attempts.feature
mod/lesson/tests/behat/lesson_report.feature
mod/lesson/tests/behat/lesson_review.feature
mod/lesson/tests/behat/lesson_student_dashboard.feature
mod/lesson/tests/behat/lesson_student_resume.feature
mod/lesson/tests/behat/lesson_user_override.feature
mod/lesson/tests/behat/lesson_with_clusters.feature
mod/lesson/tests/behat/lesson_with_subcluster.feature
mod/lesson/tests/behat/link_to_gradebook.feature
mod/lesson/tests/behat/password_protection.feature
mod/lesson/tests/behat/questions_images.feature
mod/lesson/tests/behat/teacher_grade_essays.feature
mod/lesson/tests/behat/time_limit.feature
mod/lti/tests/behat/addtool.feature
mod/lti/tests/behat/addtype.feature
mod/lti/tests/behat/contentitem.feature
mod/quiz/report/grading/tests/behat/grading.feature
mod/quiz/report/overview/tests/behat/basic.feature
mod/quiz/tests/behat/add_quiz.feature
mod/quiz/tests/behat/attempt_basic.feature
mod/quiz/tests/behat/attempt_begin.feature
mod/quiz/tests/behat/attempt_redo_questions.feature
mod/quiz/tests/behat/attempt_require_previous.feature
mod/quiz/tests/behat/backup.feature
mod/quiz/tests/behat/completion_condition_attempts_used.feature
mod/quiz/tests/behat/completion_condition_passing_grade.feature
mod/quiz/tests/behat/editing_add.feature
mod/quiz/tests/behat/editing_move_by_click.feature
mod/quiz/tests/behat/editing_remove_question.feature
mod/quiz/tests/behat/editing_repaginate.feature
mod/quiz/tests/behat/editing_require_previous.feature
mod/quiz/tests/behat/editing_section_headings.feature
mod/quiz/tests/behat/editing_set_marks_no_attempts.feature
mod/quiz/tests/behat/editing_set_marks_with_attempts.feature
mod/quiz/tests/behat/manually_mark_question.feature
mod/quiz/tests/behat/preview.feature
mod/quiz/tests/behat/quiz_reset.feature
mod/quiz/tests/behat/settings_form_fields_disableif.feature
mod/resource/tests/behat/display_resource.feature
mod/scorm/tests/behat/add_scorm.feature
mod/scorm/tests/behat/completion_condition_require_status.feature
mod/scorm/tests/behat/missing_org.feature
mod/scorm/tests/behat/multisco_review_mode.feature
mod/survey/tests/behat/survey_completion.feature
mod/survey/tests/behat/survey_types.feature
mod/wiki/tests/behat/collaborative_individual.feature
mod/wiki/tests/behat/edit_tags.feature
mod/wiki/tests/behat/page_history.feature
mod/wiki/tests/behat/preview_page.feature
mod/wiki/tests/behat/reset_wiki_comments_tags_files.feature
mod/wiki/tests/behat/wiki_comments.feature
mod/wiki/tests/behat/wiki_formats.feature
mod/wiki/tests/behat/wiki_search.feature
mod/workshop/tests/behat/delete_submission.feature
mod/workshop/tests/behat/embedded_images.feature
mod/workshop/tests/behat/example_submission.feature
mod/workshop/tests/behat/export_submission.feature
mod/workshop/tests/behat/grade_to_pass.feature
mod/workshop/tests/behat/workshop_assessment.feature
notes/tests/behat/participants_notes.feature
question/format/gift/tests/behat/import_export.feature
question/format/webct/tests/behat/import.feature
question/format/webct/tests/behat/importcalculated.feature
question/format/xml/tests/behat/import_export.feature
question/tests/behat/copy_questions.feature
question/tests/behat/delete_questions.feature
question/tests/behat/edit_questions.feature
question/tests/behat/preview_question.feature
question/tests/behat/question_categories.feature
question/tests/behat/sort_questions.feature
question/type/ddimageortext/tests/behat/add.feature
question/type/ddimageortext/tests/behat/backup_and_restore.feature
question/type/ddimageortext/tests/behat/edit.feature
question/type/ddimageortext/tests/behat/export.feature
question/type/ddimageortext/tests/behat/import.feature
question/type/ddimageortext/tests/behat/preview.feature
question/type/ddmarker/tests/behat/add.feature
question/type/ddmarker/tests/behat/backup_and_restore.feature
question/type/ddmarker/tests/behat/edit.feature
question/type/ddmarker/tests/behat/export.feature
question/type/ddmarker/tests/behat/import.feature
question/type/ddmarker/tests/behat/preview.feature
question/type/ddwtos/tests/behat/add.feature
question/type/ddwtos/tests/behat/backup_and_restore.feature
question/type/ddwtos/tests/behat/edit.feature
question/type/ddwtos/tests/behat/export.feature
question/type/ddwtos/tests/behat/import.feature
question/type/ddwtos/tests/behat/preview.feature
question/type/description/tests/behat/add.feature
question/type/description/tests/behat/backup_and_restore.feature
question/type/description/tests/behat/edit.feature
question/type/description/tests/behat/export.feature
question/type/description/tests/behat/import.feature
question/type/description/tests/behat/preview.feature
question/type/essay/tests/behat/add.feature
question/type/essay/tests/behat/backup_and_restore.feature
question/type/essay/tests/behat/edit.feature
question/type/essay/tests/behat/export.feature
question/type/essay/tests/behat/import.feature
question/type/essay/tests/behat/preview.feature
question/type/gapselect/tests/behat/basic_test.feature
question/type/gapselect/tests/behat/import_test.feature
question/type/match/tests/behat/add.feature
question/type/match/tests/behat/backup_and_restore.feature
question/type/match/tests/behat/edit.feature
question/type/match/tests/behat/export.feature
question/type/match/tests/behat/import.feature
question/type/match/tests/behat/preview.feature
question/type/multichoice/tests/behat/add.feature
question/type/multichoice/tests/behat/backup_and_restore.feature
question/type/multichoice/tests/behat/edit.feature
question/type/multichoice/tests/behat/export.feature
question/type/multichoice/tests/behat/import.feature
question/type/multichoice/tests/behat/preview.feature
question/type/shortanswer/tests/behat/add.feature
question/type/shortanswer/tests/behat/backup_and_restore.feature
question/type/shortanswer/tests/behat/edit.feature
question/type/shortanswer/tests/behat/export.feature
question/type/shortanswer/tests/behat/import.feature
question/type/shortanswer/tests/behat/preview.feature
question/type/truefalse/tests/behat/add.feature
question/type/truefalse/tests/behat/backup_and_restore.feature
question/type/truefalse/tests/behat/edit.feature
question/type/truefalse/tests/behat/export.feature
question/type/truefalse/tests/behat/import.feature
question/type/truefalse/tests/behat/preview.feature
report/log/tests/behat/filter_log.feature
report/log/tests/behat/filter_log_actions.feature
report/log/tests/behat/user_log.feature
report/loglive/tests/behat/loglive_report.feature
report/outline/tests/behat/outline.feature
report/outline/tests/behat/user.feature
report/participation/tests/behat/filter_participation.feature
report/participation/tests/behat/message_participants.feature
repository/recent/tests/behat/add_recent.feature
repository/tests/behat/cancel_add_file.feature
repository/tests/behat/create_folders.feature
repository/tests/behat/create_shortcut.feature
repository/tests/behat/overwrite_file.feature
repository/tests/behat/zip_and_unzip.feature
theme/boost/tests/behat/contextmenu.feature
theme/boost/tests/behat/regionmainsettingsmenu.feature
user/tests/behat/course_preference.feature
user/tests/behat/set_default_homepage.feature
user/tests/behat/user_grade_navigation.feature
user/tests/behat/view_full_profile.feature
user/tests/behat/view_participants.feature
user/tests/behat/view_preferences_page.feature

index f2eac7b..8fa6f0f 100644 (file)
@@ -9,11 +9,10 @@ Feature: Highlight non-inherited permissions
       | fullname        | shortname   |
       | Course fullname | C_shortname |
     And I log in as "admin"
-    And I am on site homepage
 
   @javascript
   Scenario: Override a permission
-    Given I am on course page "Course fullname"
+    Given I am on "Course fullname" course homepage
     And I navigate to "Users > Permissions" in current page administration
     And I select "Manager (0)" from the "roleid" singleselect
     And I click on "Prohibit" "radio" in the "View added and updated modules in recent activity block" "table_row"
index a7f3e5a..97b5b20 100644 (file)
@@ -49,9 +49,7 @@ Feature: Manage availability conditions
 
     # OK, toggling works. Set the grade one to Hide and we'll go see if it actually worked.
     And I click on "Hide" "icon" in the "Restriction by grade" "table_row"
-    And I am on site homepage
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Page" to section "1"
     And I expand all fieldsets
     And I click on "Add restriction..." "button"
index 6929748..d8a325b 100644 (file)
@@ -57,7 +57,7 @@ Feature: Set up contextual data for tests
       | Grouping 1 | C1 | GG1 |
       | Grouping 2 | C1 | GG2 |
     When I log in as "admin"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Users > Groups" in current page administration
     Then I should see "Group 1"
     And I should see "Group 2"
@@ -86,7 +86,7 @@ Feature: Set up contextual data for tests
       | mod/forum:editanypost | Allow | student | Course | C1 |
       | mod/forum:replynews | Prevent | editingteacher | Course | C1 |
     When I log in as "admin"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Users > Permissions" in current page administration
     And I set the field "Advanced role override" to "Student (1)"
     Then "mod/forum:editanypost" capability has "Allow" permission
@@ -106,7 +106,7 @@ Feature: Set up contextual data for tests
       | user | course | role |
       | student1 | C1 | student |
     When I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     Then I should see "Topic 1"
 
   Scenario: Add role assigns
@@ -142,20 +142,20 @@ Feature: Set up contextual data for tests
     Then "Edit settings" "link" should exist in current page administration
     And I log out
     And I log in as "user2"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And "Turn editing on" "link" should exist in current page administration
     And I log out
     And I log in as "user3"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And "Turn editing on" "link" should exist in current page administration
     And I log out
     And I log in as "user4"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And "Turn editing on" "link" should exist in current page administration
     And I log out
     And I log in as "user5"
     And I should see "You are logged in as"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "You can not enrol yourself in this course."
 
   Scenario: Add modules
@@ -193,7 +193,7 @@ Feature: Set up contextual data for tests
       | activity   | name                            | intro                         | course | idnumber    | grade |
       | assign     | Test assignment name with scale | Test assignment description   | C1     | assign1     | Test Scale 1 |
     When I log in as "admin"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     Then I should see "Test assignment name"
     # Assignment 2.2 module type is disabled by default
     # And I should see "Test assignment22 name"
@@ -254,7 +254,7 @@ Feature: Set up contextual data for tests
       | grouping | group |
       | GG1 | G1 |
     When I log in as "admin"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Users > Groups" in current page administration
     Then the "groups" select box should contain "Group 1 (1)"
     And the "groups" select box should contain "Group 2 (1)"
@@ -313,7 +313,7 @@ Feature: Set up contextual data for tests
       | Grade sub category 2 | C1 | Grade category 1 |
     When I log in as "admin"
     And I am on course index
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "View > Grader report" in the course gradebook
     Then I should see "Grade category 1"
     And I should see "Grade sub category 2"
@@ -336,7 +336,7 @@ Feature: Set up contextual data for tests
       | Test Grade Item 2 | C1 | Grade category 1 |
       | Test Grade Item 3 | C1 | Grade sub category 2 |
     When I log in as "admin"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Setup > Gradebook setup" in the course gradebook
     Then I should see "Test Grade Item 1"
     And I follow "Edit   Test Grade Item 1"
@@ -364,7 +364,7 @@ Feature: Set up contextual data for tests
       | name | scale |
       | Test Scale 1 | Disappointing, Good, Very good, Excellent |
     When I log in as "admin"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Scales" in the course gradebook
     Then I should see "Test Scale 1"
     And I should see "Disappointing,  Good,  Very good,  Excellent"
@@ -385,7 +385,7 @@ Feature: Set up contextual data for tests
     And the following config values are set as admin:
       | enableoutcomes | 1 |
     When I log in as "admin"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Outcomes"
     Then I should see "Grade outcome 1" in the "#addoutcomes" "css_element"
     And I should see "Grade outcome 2" in the "#removeoutcomes" "css_element"
@@ -413,7 +413,7 @@ Feature: Set up contextual data for tests
     And the following config values are set as admin:
       | enableoutcomes | 1 |
     When I log in as "admin"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Setup > Gradebook setup" in the course gradebook
     Then I should see "Test Outcome Grade Item 1"
     And I follow "Edit   Test Outcome Grade Item 1"
@@ -430,5 +430,5 @@ Feature: Set up contextual data for tests
       | blockname    | contextlevel | reference | pagetypepattern | defaultregion |
       | online_users | Course       | C1        | course-view-*   | site-pre      |
     When I log in as "admin"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     Then I should see "Online users"
index fcc2e2d..1e15acc 100644 (file)
@@ -19,7 +19,7 @@ Feature: Transform date time string arguments
       | user     | course | role    |
       | teacher1 | C1     | editingteacher |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment name"
     And I should see "##yesterday##l, j F Y##"
     And I log out
index bba0d7a..5de8e0a 100644 (file)
@@ -31,7 +31,7 @@ Feature: Edit capabilities
 
   Scenario: Course capabilities overrides
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Users > Permissions" in current page administration
     And I override the system permissions of "Student" role with:
       | mod/forum:deleteanypost | Prohibit |
@@ -45,8 +45,7 @@ Feature: Edit capabilities
 
   Scenario: Module capabilities overrides
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Forum" to section "1" and I fill the form with:
       | Forum name | I'm the name |
       | Description | I'm the introduction |
index 1096700..151a59d 100644 (file)
@@ -33,7 +33,7 @@ Feature: Verify that all form fields values can be get and set
       | 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"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Reset" node in "Course administration"
     # Select (multi-select) - Checking "the select box should contain".
     And I expand all fieldsets
@@ -47,8 +47,7 @@ Feature: Verify that all form fields values can be get and set
     And the "Unenrol users" select box should not contain "President"
     And the "Unenrol users" select box should not contain "Baker"
     And the "Unenrol users" select box should not contain "President, Baker"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I follow "Test this one"
     And I press "Create page"
     # Text (textarea & editor) & Select (multi-select) - Checking "I set the following fields to these values".
@@ -98,7 +97,7 @@ Feature: Verify that all form fields values can be get and set
       | Default format | HTML |
       | Force format | 1 |
     And I press "Cancel"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     # Radio - Checking "I set the field" and "the field matches value".
     And I add a "Choice" to section "1" and I fill the form with:
       | Choice name | Test choice name |
@@ -113,7 +112,7 @@ Feature: Verify that all form fields values can be get and set
     And the field "one" matches value "1"
     And the field "two" matches value ""
     # Check if field xpath set/match works.
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Edit settings" node in "Course administration"
     And I set the field with xpath "//input[@id='id_idnumber']" to "Course id number"
     And the field with xpath "//input[@name='idnumber']" matches value "Course id number"
@@ -126,7 +125,7 @@ Feature: Verify that all form fields values can be get and set
 
   @javascript
   Scenario: with JS enabled all form fields getters and setters works as expected
-    Then I am on course page "Course 1"
+    Then I am on "Course 1" course homepage
     And I navigate to "Users > Groups" in current page administration
     # Select (multi-select & AJAX) - Checking "I set the field" and "select box should contain".
     And I set the field "groups" to "Group 2"
@@ -138,7 +137,7 @@ Feature: Verify that all form fields values can be get and set
     And the "members" select box should contain "Student 2"
     And the "members" select box should not contain "Student 3"
     # Checkbox (AJAX) - Checking "I set the field" and "I set the following fields to these values".
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I add a "Lesson" to section "1"
     And I set the following fields to these values:
       | Name | Test lesson |
index 163eb4d..85f52de 100644 (file)
@@ -23,9 +23,7 @@ Feature: Forms manipulation
       | fullname | shortname | category |
       | Course 1 | C1 | 0 |
     And I log in as "admin"
-    And I am on site homepage
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Quiz" to section "1"
     When I expand all fieldsets
     Then I should see "Close the quiz"
index 94de7ae..5c464ba 100644 (file)
@@ -120,9 +120,7 @@ Feature: Add customised file types
       | Custom description | Froggy file                               |
     And I press "Save changes"
     # Create a resource activity and add it to a course
-    And I am on site homepage
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     When I add a "File" to section "1"
     And I set the following fields to these values:
       | Name        | An example of customised file type |
index a85dee7..a38a75d 100644 (file)
@@ -18,7 +18,7 @@ Feature: tool_monitor_rule
     And I navigate to "Event monitoring rules" node in "Site administration > Reports"
     And I click on "Enable" "link"
     And I am on site homepage
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Event monitoring rules" node in "Course administration > Reports"
     And I press "Add a new rule"
     And I set the following fields to these values:
@@ -45,8 +45,7 @@ Feature: tool_monitor_rule
 
   Scenario: Add a rule on course level
     Given I log in as "teacher1"
-    And I am on site homepage
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Event monitoring rules" node in "Course administration > Reports"
     When I press "Add a new rule"
     And I set the following fields to these values:
@@ -66,7 +65,7 @@ Feature: tool_monitor_rule
 
   Scenario: Delete a rule on course level
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Event monitoring rules" node in "Course administration > Reports"
     When I click on "Delete rule" "link"
     Then I should see "Are you sure you want to delete the rule \"New rule course level\"?"
@@ -76,7 +75,7 @@ Feature: tool_monitor_rule
 
   Scenario: Edit a rule on course level
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Event monitoring rules" node in "Course administration > Reports"
     When I click on "Edit rule" "link"
     And I set the following fields to these values:
@@ -95,7 +94,7 @@ Feature: tool_monitor_rule
 
   Scenario: Duplicate a rule on course level
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Event monitoring rules" node in "Course administration > Reports"
     When I click on "Duplicate rule" "link" in the "New rule course level" "table_row"
     Then I should see "Rule successfully duplicated"
@@ -154,7 +153,7 @@ Feature: tool_monitor_rule
 
   Scenario: Duplicate a rule on site level
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Event monitoring rules" node in "Course administration > Reports"
     When I click on "Duplicate rule" "link" in the "New rule site level" "table_row"
     Then I should see "Rule successfully duplicated"
index 4277fdd..2766705 100644 (file)
@@ -22,7 +22,7 @@ Feature: tool_monitor_subscriptions
     And I log in as "admin"
     And I navigate to "Event monitoring rules" node in "Site administration > Reports"
     And I click on "Enable" "link"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Event monitoring rules" node in "Course administration > Reports"
     And I press "Add a new rule"
     And I set the following fields to these values:
@@ -131,7 +131,7 @@ Feature: tool_monitor_subscriptions
     And I follow "Subscribe to rule \"New rule course level\""
     And I should see "Subscription successfully created"
     And "#toolmonitorsubs_r0" "css_element" should exist
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I trigger cron
     And I am on site homepage
     When I click on ".popover-region-notifications" "css_element"
index 9066468..7df1cb2 100644 (file)
@@ -23,8 +23,7 @@ Feature: Backup user data
   @javascript
   Scenario: Delete and restore a quiz with user data
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Quiz" to section "1" and I fill the form with:
       | Name        | Quiz 1                |
       | Description | Test quiz description |
@@ -44,7 +43,7 @@ Feature: Backup user data
       | Feedback for the response 'False'. | So you think it is false                |
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Quiz 1"
     And I press "Attempt quiz now"
     And I click on "True" "radio" in the "First question" "question"
@@ -55,8 +54,7 @@ Feature: Backup user data
     And I should see "5.00 out of 10.00"
     And I log out
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I delete "Quiz 1" activity
     And I run all adhoc tasks
     And I navigate to "Recycle bin" node in "Course administration"
@@ -64,7 +62,7 @@ Feature: Backup user data
     And I click on "Restore" "link" in the "region-main" "region"
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     When I navigate to "User report" in the course gradebook
     Then "Quiz 1" row "Grade" column of "user-grade" table should contain "5"
     And "Quiz 1" row "Percentage" column of "user-grade" table should contain "50"
index 877a249..26a0096 100644 (file)
@@ -25,8 +25,7 @@ Feature: Basic recycle bin functionality
 
   Scenario: Restore a deleted assignment
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assign |
       | Description | Test |
@@ -37,8 +36,7 @@ Feature: Basic recycle bin functionality
     And I click on "Restore" "link" in the "region-main" "region"
     And I should see "'Test assign' has been restored"
     And I wait to be redirected
-    And I am on homepage
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Test assign" in the "Topic 1" "section"
 
   Scenario: Restore a deleted course
@@ -64,8 +62,7 @@ Feature: Basic recycle bin functionality
   @javascript
   Scenario: Deleting a single item from the recycle bin
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assign |
       | Description | Test |
@@ -84,8 +81,7 @@ Feature: Basic recycle bin functionality
   @javascript
   Scenario: Deleting all the items from the recycle bin
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assign 1 |
       | Description | Test 1 |
index f90acd2..e217cf1 100644 (file)
@@ -33,7 +33,7 @@ Feature: Upload users
     And I should see "Tom Jones"
     And I should see "Trent Reznor"
     And I should see "reznor@example.com"
-    And I am on course page "Maths"
+    And I am on "Maths" course homepage
     And I navigate to "Users > Groups" in current page administration
     And I set the field "groups" to "Section 1 (1)"
     And the "members" select box should contain "Tom Jones"
index 33c7db7..6a5f152 100644 (file)
@@ -20,7 +20,7 @@ Feature: Add a new user tour
       | Display in middle of page   | Welcome           | Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful |
     And I add steps to the "First tour" tour:
       | targettype                  | targetvalue_block | Title             | Content |
-      | Block                       | Course overview   | Course overview   | This area shows you what's happening in some of your courses  |
+      | Block                       | My overview       | My overview   | This area shows you what's happening in some of your courses  |
       | Block                       | Calendar          | Calendar          | This is the Calendar. All of your assignments and due dates can be found here |
     And I add steps to the "First tour" tour:
       | targettype                  | targetvalue_selector | Title             | Content |
index ff33cad..46f226a 100644 (file)
@@ -46,17 +46,14 @@ Feature: Apply tour filters to a tour
       | Display in middle of page   | Welcome           | Welcome to your course tour.|
     And I log out
     And I log in as "editor1"
-    And I am on site homepage
-    When I am on course page "Course 1"
+    When I am on "Course 1" course homepage
     Then I should not see "Welcome to your course tour."
     And I log out
     And I log in as "student1"
-    And I am on site homepage
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Welcome to your course tour."
     And I click on "End tour" "button"
     And I log out
     And I log in as "teacher1"
-    And I am on site homepage
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Welcome to your course tour."
index 8f78271..a57094f 100644 (file)
@@ -21,8 +21,7 @@ Feature: availability_completion
   Scenario: Test condition
     # Basic setup.
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
 
     # Add a Page with a completion tickbox.
     And I add a "Page" to section "1" and I fill the form with:
@@ -47,7 +46,7 @@ Feature: availability_completion
     # Log back in as student.
     When I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
     # Page 2 should not appear yet.
     Then I should not see "Page 2" in the "region-main" "region"
index b780de4..f0b8094 100644 (file)
@@ -19,7 +19,7 @@ Feature: Confirm that conditions on completion no longer cause a bug
   Scenario: Multiple completion conditions on glossary
     # Set up course.
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Edit settings" node in "Course administration"
     And I expand all fieldsets
     And I set the field "Enable completion tracking" to "Yes"
index 505e73d..b4ba147 100644 (file)
@@ -21,8 +21,7 @@ Feature: availability_date
   Scenario: Test condition
     # Basic setup.
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
 
     # Add a Page with a date condition that does match (from the past).
     And I add a "Page" to section "1"
@@ -54,7 +53,7 @@ Feature: availability_date
     # Log back in as student.
     When I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
     # Page 1 should appear, but page 2 does not.
     Then I should see "Page 1" in the "region-main" "region"
index 39f9304..a984525 100644 (file)
@@ -21,8 +21,7 @@ Feature: availability_grade
   Scenario: Test condition
     # Basic setup.
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
 
     # Add an assignment.
     And I add a "Assignment" to section "1" and I fill the form with:
@@ -70,7 +69,7 @@ Feature: availability_grade
     And I click on "Edit settings" "link" in the "P3" activity
     And I expand all fieldsets
     And the field "Maximum grade percentage (exclusive)" matches value ""
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
     # Add a Page with a grade condition for 10%.
     And I add a "Page" to section "4"
@@ -90,7 +89,7 @@ Feature: availability_grade
     # Log in as student without a grade yet.
     When I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
     # Do the assignment.
     And I follow "A1"
@@ -108,7 +107,7 @@ Feature: availability_grade
     # Log back in as teacher.
     When I log out
     And I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
     # Give the assignment 40%.
     And I follow "A1"
@@ -123,7 +122,7 @@ Feature: availability_grade
     # Log back in as student.
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
     # Check pages are visible.
     Then I should see "P2" in the "region-main" "region"
index 40d78de..ceae232 100644 (file)
@@ -21,8 +21,7 @@ Feature: availability_group
   Scenario: Test condition
     # Basic setup.
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
 
     # Start to add a Page. If there aren't any groups, there's no Group option.
     And I add a "Page" to section "1"
@@ -38,7 +37,7 @@ Feature: availability_group
       | G2       | C1     | GI2      |
     # This step used to be 'And I follow "C1"', but Chrome thinks the breadcrumb
     # is not clickable, so we'll go via the home page instead.
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I add a "Page" to section "1"
     And I expand all fieldsets
     And I click on "Add restriction..." "button"
@@ -83,7 +82,7 @@ Feature: availability_group
     # Log back in as student.
     When I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
     # No pages should appear yet.
     Then I should not see "P1" in the "region-main" "region"
@@ -96,7 +95,7 @@ Feature: availability_group
       | student1 | GI1   |
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
     # P1 (any groups) and P2 should show but not P3.
     Then I should see "P1" in the "region-main" "region"
index a17ecb0..91f4d04 100644 (file)
@@ -27,8 +27,7 @@ Feature: availability_grouping
   Scenario: Test condition
     # Basic setup.
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
 
     # Start to add a Page. If there aren't any groupings, there's no Grouping option.
     And I add a "Page" to section "1"
@@ -40,7 +39,7 @@ Feature: availability_grouping
     # Back to course page but add groups.
     # This step used to be 'And I follow "C1"', but Chrome thinks the breadcrumb
     # is not clickable, so we'll go via the home page instead.
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And the following "groupings" exist:
       | name | course | idnumber |
       | GX1  | C1     | GXI1     |
@@ -76,7 +75,7 @@ Feature: availability_grouping
     # Log back in as student.
     When I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
     # No pages should appear yet.
     Then I should not see "P1" in the "region-main" "region"
@@ -88,7 +87,7 @@ Feature: availability_grouping
       | grouping | group  |
       | GXI1     | GI1    |
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
     # P1 should show but not B2.
     Then I should see "P1" in the "region-main" "region"
index f4c1e0a..682f59f 100644 (file)
@@ -21,8 +21,7 @@ Feature: availability_profile
   Scenario: Test condition
     # Basic setup.
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
 
     # Add
     And I add a "Page" to section "1"
@@ -55,7 +54,7 @@ Feature: availability_profile
     # Log back in as student.
     When I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
     # I see P1 but not P2.
     Then I should see "P1" in the "region-main" "region"
@@ -80,8 +79,7 @@ Feature: availability_profile
     And I click on "Update profile" "button"
 
     # Set Page activity which has requirement on this field.
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Page" to section "1"
     And I set the following fields to these values:
       | Name         | P1 |
@@ -106,5 +104,5 @@ Feature: availability_profile
     # Log out and back in as student. Should be able to see activity.
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     Then I should see "P1" in the "region-main" "region"
index 808d428..60e7150 100644 (file)
@@ -39,8 +39,7 @@ Feature: display_availability
   Scenario: Activity availability display
     # Set up.
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
 
     # Add a Page with 1 restriction.
     When I add a "Page" to section "1"
@@ -101,7 +100,7 @@ Feature: display_availability
     # Change to student view.
     Given I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
     # Page 1 display still there but should be dimmed and not a link.
     Then I should see "Page 1" in the "#section-1 .dimmed_text" "css_element"
@@ -121,8 +120,7 @@ Feature: display_availability
   Scenario: Section availability display
     # Set up.
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
 
     # Add a restriction to section 1 (visible to students).
     When I edit the section "1"
@@ -144,7 +142,7 @@ Feature: display_availability
     And I press "Save changes"
 
     # This is necessary because otherwise it fails in Chrome, see MDL-44959
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
     # Add Pages to each section.
     And I add a "Page" to section "1" and I fill the form with:
@@ -168,7 +166,7 @@ Feature: display_availability
     # Change to student view.
     Given I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
     # The contents of both sections should be hidden.
     Then I should not see "Page 1" in the "region-main" "region"
index fdc4cd6..ce0392e 100644 (file)
@@ -32,8 +32,7 @@ Feature: edit_availability
     Given the following config values are set as admin:
       | enableavailability | 0 |
     When I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Page" to section "1"
     Then "Restrict access" "fieldset" should not exist
 
@@ -44,7 +43,7 @@ Feature: edit_availability
     And the following config values are set as admin:
       | enableavailability | 1 |
 
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I add a "Page" to section "1"
     Then "Restrict access" "fieldset" should exist
 
@@ -56,10 +55,7 @@ Feature: edit_availability
   Scenario: Edit availability using settings in activity form
     # Set up.
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-
-    # Add a Page and check it has None in so far.
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Page" to section "1"
     And I expand all fieldsets
     Then I should see "None" in the "Restrict access" "fieldset"
@@ -147,8 +143,7 @@ Feature: edit_availability
   Scenario: Edit availability using settings in section form
     # Set up.
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
 
     # Edit a section
     When I edit the section "1"
@@ -168,8 +163,7 @@ Feature: edit_availability
     Given the following config values are set as admin:
       | enableavailability | 0 |
     And I log in as "admin"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Forum" to section "1"
     When I expand all fieldsets
     Then "Add group/grouping access restriction" "button" should not exist
@@ -181,8 +175,7 @@ Feature: edit_availability
       | name | course | idnumber |
       | GX1  | C1     | GXI1     |
     And I log in as "admin"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Forum" to section "1"
     And I set the following fields to these values:
       | Forum name  | MyForum |
index 6b2cb8b..1207eb7 100644 (file)
@@ -15,8 +15,7 @@ Feature: Duplicate activities
       | user | course | role |
       | teacher1 | C1 | editingteacher |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Database" to section "1" and I fill the form with:
       | Name | Test database name |
       | Description | Test database description |
index ef28571..5adde7f 100644 (file)
@@ -17,8 +17,7 @@ Feature: Import course's contents into another course
       | teacher1 | C1 | editingteacher |
       | teacher1 | C2 | editingteacher |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Database" to section "1" and I fill the form with:
       | Name | Test database name |
       | Description | Test database description |
index 5bed8bc..32ff5d1 100644 (file)
@@ -25,7 +25,7 @@ Feature: Option to include groups and groupings when importing a course to anoth
       | Grouping 1 | C1 | GROUPING1 |
       | Grouping 2 | C1 | GROUPING2 |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
   Scenario: Include groups and groupings when importing a course to another course
     Given I import "Course 1" course into "Course 2" course using this options:
index 2db95c7..b02e25b 100644 (file)
@@ -15,8 +15,7 @@ Feature: Restore Moodle 2 course backups
       | assign | C3 | assign1 | Test assign name | Assign description | 1 |
       | data | C3 | data1 | Test database name | Database description | 2 |
     And I log in as "admin"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Forum" to section "1" and I fill the form with:
       | Forum name | Test forum name |
       | Description | Test forum description |
@@ -62,7 +61,7 @@ Feature: Restore Moodle 2 course backups
   Scenario: Restore a backup into the same course removing it's contents before that
     When I backup "Course 1" course using this options:
       | Confirmation | Filename | test_backup.mbz |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I add a "Forum" to section "1" and I fill the form with:
       | Forum name | Test forum post backup name |
       | Description | Test forum post backup description |
index 17791c2..a14040a 100644 (file)
@@ -86,7 +86,7 @@ Feature: Award badges
       | student1 | C1 | student |
       | student2 | C1 | student |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Add a new badge" node in "Course administration > Badges"
     And I follow "Add a new badge"
     And I set the following fields to these values:
@@ -106,7 +106,7 @@ Feature: Award badges
     And I press "Award badge"
     And I set the field "potentialrecipients[]" to "Student 1 (student1@example.com)"
     When I press "Award badge"
-    And I am on course page "Course Badge"
+    And I follow "Course Badge"
     Then I should see "Recipients (2)"
     And I log out
     And I log in as "student1"
@@ -128,7 +128,7 @@ Feature: Award badges
       | teacher1 | C1 | editingteacher |
       | student1 | C1 | student |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Edit settings" node in "Course administration"
     And I set the following fields to these values:
       | Enable completion tracking | Yes |
@@ -137,7 +137,7 @@ Feature: Award badges
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assignment name |
       | Description | Submit your online text |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Add a new badge" node in "Course administration > Badges"
     And I follow "Add a new badge"
     And I set the following fields to these values:
@@ -156,8 +156,7 @@ Feature: Award badges
     And I follow "Profile" in the user menu
     And I click on "Course 1" "link" in the "region-main" "region"
     Then I should not see "badges"
-    And I am on homepage
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I press "Mark as complete: Test assignment name"
     And I follow "Profile" in the user menu
     And I click on "Course 1" "link" in the "region-main" "region"
@@ -177,7 +176,7 @@ Feature: Award badges
       | teacher1 | C1 | editingteacher |
       | student1 | C1 | student |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Edit settings" node in "Course administration"
     And I set the following fields to these values:
       | Enable completion tracking | Yes |
@@ -192,7 +191,7 @@ Feature: Award badges
     And I click on "Condition: Activity completion" "link"
     And I set the field "Assignment - Test assignment name" to "1"
     And I press "Save changes"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Add a new badge" node in "Course administration > Badges"
     And I follow "Add a new badge"
     And I set the following fields to these values:
@@ -211,8 +210,7 @@ Feature: Award badges
     And I follow "Profile" in the user menu
     And I click on "Course 1" "link" in the "region-main" "region"
     Then I should not see "badges"
-    And I am on homepage
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I click on "Not completed: Test assignment name. Select to mark as complete." "icon"
     And I log out
     # Completion cron won't mark the whole course completed unless the
@@ -242,7 +240,7 @@ Feature: Award badges
       | student1 | C1 | student |
       | student2 | C1 | student |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     # Create course badge 1.
     And I navigate to "Add a new badge" node in "Course administration > Badges"
     And I follow "Add a new badge"
@@ -325,7 +323,7 @@ Feature: Award badges
       | student1 | C1 | student |
       | student2 | C1 | student |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Add a new badge" node in "Course administration > Badges"
     And I follow "Add a new badge"
     And I set the following fields to these values:
@@ -345,7 +343,7 @@ Feature: Award badges
     And I press "Award badge"
     And I set the field "potentialrecipients[]" to "Student 1 (student1@example.com)"
     When I press "Award badge"
-    And I am on course page "Course Badge"
+    And I follow "Course Badge"
     Then I should see "Recipients (2)"
     And I follow "Recipients (2)"
     And I press "Award badge"
@@ -353,5 +351,5 @@ Feature: Award badges
     And I press "Revoke badge"
     And I set the field "existingrecipients[]" to "Student 1 (student1@example.com)"
     When I press "Revoke badge"
-    And I am on course page "Course Badge"
+    And I follow "Course Badge"
     Then I should see "Recipients (0)"
index 5dd47ae..2f24252 100644 (file)
@@ -110,48 +110,47 @@ Feature: Block activity modules
 
     When I log in as "admin"
     And I am on course index
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add the "Activities" block
     And I click on "Assignments" "link" in the "Activities" "block"
     Then I should see "Test assignment name"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I click on "Chats" "link" in the "Activities" "block"
     And I should see "Test chat name"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I click on "Choices" "link" in the "Activities" "block"
     And I should see "Test choice name"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I click on "Databases" "link" in the "Activities" "block"
     And I should see "Test database name"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I click on "Feedback" "link" in the "Activities" "block"
     And I should see "Test feedback name"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I click on "Forums" "link" in the "Activities" "block"
     And I should see "Test forum name"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I click on "External tools" "link" in the "Activities" "block"
     And I should see "Test lti name"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I click on "Quizzes" "link" in the "Activities" "block"
     And I should see "Test quiz name"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I click on "Glossaries" "link" in the "Activities" "block"
     And I should see "Test glossary name"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I click on "SCORM packages" "link" in the "Activities" "block"
     And I should see "Test scorm name"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I click on "Lessons" "link" in the "Activities" "block"
     And I should see "Test lesson name"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I click on "Wikis" "link" in the "Activities" "block"
     And I should see "Test wiki name"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I click on "Workshop" "link" in the "Activities" "block"
     And I should see "Test workshop name"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I click on "Resources" "link" in the "Activities" "block"
     And I should see "Test book name"
     And I should see "Test page name"
index 4e917d7..3191e13 100644 (file)
@@ -25,30 +25,29 @@ Feature: The activity results block displays student scores
       | student4 | C1 | student |
       | student5 | C1 | student |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assignment 1 |
       | Description | Offline text |
       | assignsubmission_file_enabled | 0 |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assignment 2 |
       | Description | Offline text |
       | assignsubmission_file_enabled | 0 |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assignment 3 |
       | Description | Offline text |
       | assignsubmission_file_enabled | 0 |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I add a "Page" to section "1"
     And I set the following fields to these values:
       | Name | Test page name |
       | Description | Test page description |
       | Page content | This is a page |
     And I press "Save and return to course"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Test page name"
     And I navigate to "View > Grader report" in the course gradebook
     And I turn editing mode on
@@ -58,7 +57,7 @@ Feature: The activity results block displays student scores
     And I give the grade "60.00" to the user "Student 4" for the grade item "Test assignment 1"
     And I give the grade "50.00" to the user "Student 5" for the grade item "Test assignment 1"
     And I press "Save changes"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
   Scenario: Configure the block on a non-graded activity to show 3 high scores
     Given I follow "Test page name"
@@ -84,19 +83,19 @@ Feature: The activity results block displays student scores
     And I configure the "Activity results" block
     Then the field "id_config_activitygradeitemid" matches value "Test assignment 1"
     And I press "Cancel"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 2"
     And I add the "Activity results" block
     And I configure the "Activity results" block
     And the field "id_config_activitygradeitemid" matches value "Test assignment 2"
     And I press "Cancel"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 3"
     And I add the "Activity results" block
     And I configure the "Activity results" block
     And the field "id_config_activitygradeitemid" matches value "Test assignment 3"
     And I press "Cancel"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test page name"
     And I add the "Activity results" block
     And I configure the "Activity results" block
index d28476d..0570dbd 100644 (file)
@@ -15,8 +15,7 @@ Feature: The activity results block doesn't displays student scores for unconfig
       | user | course | role |
       | teacher1 | C1 | editingteacher |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
 
   Scenario: Add the block to a the course
     Given I add the "Activity results" block
index 14d7784..5103f23 100644 (file)
@@ -15,8 +15,7 @@ Feature: The activity results block doesn't display student scores for unsupport
       | user | course | role |
       | teacher1 | C1 | editingteacher |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
 
   Scenario: Try to configure the block to use an activity without grades
     Given I add a "Assignment" to section "1" and I fill the form with:
index f7d0a44..3af9d0e 100644 (file)
@@ -24,13 +24,12 @@ Feature: The activity results block can have administrator set defaults
       | config_gradeformat | 2 | block_activity_results |
       | config_nameformat  | 2 | block_activity_results |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assignment |
       | Description | Offline text |
       | assignsubmission_file_enabled | 0 |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I add the "Activity results" block
     When I configure the "Activity results" block
     And the following fields match these values:
@@ -48,13 +47,12 @@ Feature: The activity results block can have administrator set defaults
       | config_showworst        | 0 | block_activity_results |
       | config_showworst_locked | 1 | block_activity_results |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assignment |
       | Description | Offline text |
       | assignsubmission_file_enabled | 0 |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I add the "Activity results" block
     When I configure the "Activity results" block
     And the following fields match these values:
index 81511ce..eb750a0 100644 (file)
@@ -25,13 +25,12 @@ Feature: The activity results block displays student high scores
       | student4 | C1 | student |
       | student5 | C1 | student |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assignment |
       | Description | Offline text |
       | assignsubmission_file_enabled | 0 |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "View > Grader report" in the course gradebook
     And I turn editing mode on
     And I give the grade "90.00" to the user "Student 1" for the grade item "Test assignment"
@@ -40,7 +39,7 @@ Feature: The activity results block displays student high scores
     And I give the grade "60.00" to the user "Student 4" for the grade item "Test assignment"
     And I give the grade "50.00" to the user "Student 5" for the grade item "Test assignment"
     And I press "Save changes"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
   Scenario: Configure the block on the course page to show 0 high scores
     Given I add the "Activity results" block
index 191933e..2a8bcf9 100644 (file)
@@ -25,22 +25,21 @@ Feature: The activity results block displays students high scores in group as sc
       | student4 | C1 | student |
       | student5 | C1 | student |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Scales" in the course gradebook
     And I press "Add a new scale"
     And I set the following fields to these values:
       | Name | My Scale |
       | Scale | Disappointing, Not good enough, Average, Good, Very good, Excellent! |
     And I press "Save changes"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assignment |
       | Description | Offline text |
       | assignsubmission_file_enabled | 0 |
       | id_grade_modgrade_type | Scale |
       | id_grade_modgrade_scale | My Scale |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "View > Grader report" in the course gradebook
     And I turn editing mode on
     And I give the grade "Excellent!" to the user "Student 1" for the grade item "Test assignment"
@@ -49,7 +48,7 @@ Feature: The activity results block displays students high scores in group as sc
     And I give the grade "Average" to the user "Student 4" for the grade item "Test assignment"
     And I give the grade "Not good enough" to the user "Student 5" for the grade item "Test assignment"
     And I press "Save changes"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
   Scenario: Configure the block on the course page to show 1 high score
     Given I add the "Activity results" block
index c295748..9500862 100644 (file)
@@ -42,15 +42,14 @@ Feature: The activity results block displays student in group high scores as sca
       | student5 | G3 |
       | student6 | G3 |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Scales" in the course gradebook
     And I press "Add a new scale"
     And I set the following fields to these values:
       | Name | My Scale |
       | Scale | Disappointing, Not good enough, Average, Good, Very good, Excellent! |
     And I press "Save changes"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assignment |
       | Description | Offline text |
@@ -58,7 +57,7 @@ Feature: The activity results block displays student in group high scores as sca
       | id_grade_modgrade_type | Scale |
       | id_grade_modgrade_scale | My Scale |
       | Group mode | Separate groups |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "View > Grader report" in the course gradebook
     And I turn editing mode on
     And I give the grade "Excellent!" to the user "Student 1" for the grade item "Test assignment"
@@ -68,7 +67,7 @@ Feature: The activity results block displays student in group high scores as sca
     And I give the grade "Good" to the user "Student 5" for the grade item "Test assignment"
     And I give the grade "Average" to the user "Student 6" for the grade item "Test assignment"
     And I press "Save changes"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
   Scenario: Try to configure the block on the course page to show 1 high score
     Given I add the "Activity results" block
@@ -83,7 +82,7 @@ Feature: The activity results block displays student in group high scores as sca
     And I should see "Excellent!" in the "Activity results" "block"
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Student 1" in the "Activity results" "block"
     And I should see "Excellent!" in the "Activity results" "block"
 
@@ -104,7 +103,7 @@ Feature: The activity results block displays student in group high scores as sca
     And I should see "Good" in the "Activity results" "block"
     And I log out
     And I log in as "student3"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Student 3" in the "Activity results" "block"
     And I should see "Very good" in the "Activity results" "block"
     And I should see "Student 4" in the "Activity results" "block"
@@ -125,7 +124,7 @@ Feature: The activity results block displays student in group high scores as sca
     And I should see "Good" in the "Activity results" "block"
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "User S1" in the "Activity results" "block"
     And I should see "Excellent!" in the "Activity results" "block"
     And I should see "User S2" in the "Activity results" "block"
@@ -146,7 +145,7 @@ Feature: The activity results block displays student in group high scores as sca
     And I should see "Good" in the "Activity results" "block"
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "User" in the "Activity results" "block"
     And I should see "Excellent!" in the "Activity results" "block"
     And I should see "Very good" in the "Activity results" "block"
index bb53eb6..ccc223d 100644 (file)
@@ -42,14 +42,13 @@ Feature: The activity results block displays student in separate groups scores
       | student5 | G3 |
       | student6 | G3 |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assignment |
       | Description | Offline text |
       | assignsubmission_file_enabled | 0 |
       | Group mode | Separate groups |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "View > Grader report" in the course gradebook
     And I turn editing mode on
     And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
@@ -59,7 +58,7 @@ Feature: The activity results block displays student in separate groups scores
     And I give the grade "80.00" to the user "Student 5" for the grade item "Test assignment"
     And I give the grade "70.00" to the user "Student 6" for the grade item "Test assignment"
     And I press "Save changes"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
   Scenario: Configure the block on the course page to show 1 high score
     Given I add the "Activity results" block
@@ -89,7 +88,7 @@ Feature: The activity results block displays student in separate groups scores
     And I should see "95.00/100.00" in the "Activity results" "block"
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Student 1" in the "Activity results" "block"
     And I should see "100.00/100.00" in the "Activity results" "block"
 
@@ -107,7 +106,7 @@ Feature: The activity results block displays student in separate groups scores
     And I should see "95.00" in the "Activity results" "block"
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Student 1" in the "Activity results" "block"
     And I should see "100.00" in the "Activity results" "block"
 
@@ -130,7 +129,7 @@ Feature: The activity results block displays student in separate groups scores
     And I should see "75%" in the "Activity results" "block"
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Student 1" in the "Activity results" "block"
     And I should see "100%" in the "Activity results" "block"
     And I should see "Student 2" in the "Activity results" "block"
@@ -154,7 +153,7 @@ Feature: The activity results block displays student in separate groups scores
     And I should see "75.00/100.00" in the "Activity results" "block"
     And I log out
     And I log in as "student3"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Student 3" in the "Activity results" "block"
     And I should see "90.00/100.00" in the "Activity results" "block"
     And I should see "Student 4" in the "Activity results" "block"
@@ -178,7 +177,7 @@ Feature: The activity results block displays student in separate groups scores
     And I should see "75.00" in the "Activity results" "block"
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Student 1" in the "Activity results" "block"
     And I should see "100.00" in the "Activity results" "block"
     And I should see "Student 2" in the "Activity results" "block"
@@ -200,7 +199,7 @@ Feature: The activity results block displays student in separate groups scores
     And I should see "75.00%" in the "Activity results" "block"
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "User S1" in the "Activity results" "block"
     And I should see "100.00%" in the "Activity results" "block"
     And I should see "User S2" in the "Activity results" "block"
@@ -222,7 +221,7 @@ Feature: The activity results block displays student in separate groups scores
     And I should see "75.00%" in the "Activity results" "block"
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "User" in the "Activity results" "block"
     And I should see "100.00%" in the "Activity results" "block"
     And I should see "90.00%" in the "Activity results" "block"
index 576b8ff..11ee5a5 100644 (file)
@@ -42,14 +42,13 @@ Feature: The activity results block displays student in visible groups scores
       | student5 | G3 |
       | student6 | G3 |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assignment |
       | Description | Offline text |
       | assignsubmission_file_enabled | 0 |
       | Group mode | Visible groups |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "View > Grader report" in the course gradebook
     And I turn editing mode on
     And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
@@ -59,7 +58,7 @@ Feature: The activity results block displays student in visible groups scores
     And I give the grade "80.00" to the user "Student 5" for the grade item "Test assignment"
     And I give the grade "70.00" to the user "Student 6" for the grade item "Test assignment"
     And I press "Save changes"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
   Scenario: Configure the block on the course page to show 1 high score
     Given I add the "Activity results" block
@@ -87,7 +86,7 @@ Feature: The activity results block displays student in visible groups scores
     And I press "Save changes"
     And I log out
     Then I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Group 1" in the "Activity results" "block"
     And I should see "95.00/100.00" in the "Activity results" "block"
 
@@ -103,7 +102,7 @@ Feature: The activity results block displays student in visible groups scores
     And I press "Save changes"
     And I log out
     Then I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Group 1" in the "Activity results" "block"
     And I should see "95.00" in the "Activity results" "block"
 
@@ -120,7 +119,7 @@ Feature: The activity results block displays student in visible groups scores
     And I press "Save changes"
     And I log out
     Then I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Group 1" in the "Activity results" "block"
     And I should see "95%" in the "Activity results" "block"
     And I should see "Group 2" in the "Activity results" "block"
@@ -140,7 +139,7 @@ Feature: The activity results block displays student in visible groups scores
     And I press "Save changes"
     And I log out
     Then I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Group 1" in the "Activity results" "block"
     And I should see "95.00/100.00" in the "Activity results" "block"
     And I should see "Group 2" in the "Activity results" "block"
@@ -160,7 +159,7 @@ Feature: The activity results block displays student in visible groups scores
     And I press "Save changes"
     And I log out
     Then I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Group 1" in the "Activity results" "block"
     And I should see "95.00" in the "Activity results" "block"
     And I should see "Group 2" in the "Activity results" "block"
@@ -180,7 +179,7 @@ Feature: The activity results block displays student in visible groups scores
     And I press "Save changes"
     And I log out
     Then I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Group" in the "Activity results" "block"
     And I should see "95.00%" in the "Activity results" "block"
     And I should see "85.00%" in the "Activity results" "block"
@@ -198,7 +197,7 @@ Feature: The activity results block displays student in visible groups scores
     And I press "Save changes"
     And I log out
     Then I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Group" in the "Activity results" "block"
     And I should see "95.00%" in the "Activity results" "block"
     And I should see "85.00%" in the "Activity results" "block"
index 5dfa377..f632d95 100644 (file)
@@ -25,13 +25,12 @@ Feature: The activity results block displays student low scores
       | student4 | C1 | student |
       | student5 | C1 | student |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assignment |
       | Description | Offline text |
       | assignsubmission_file_enabled | 0 |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "View > Grader report" in the course gradebook
     And I turn editing mode on
     And I give the grade "90.00" to the user "Student 1" for the grade item "Test assignment"
@@ -40,7 +39,7 @@ Feature: The activity results block displays student low scores
     And I give the grade "60.00" to the user "Student 4" for the grade item "Test assignment"
     And I give the grade "50.00" to the user "Student 5" for the grade item "Test assignment"
     And I press "Save changes"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
   Scenario: Configure the block on the course page to show 1 low score
     Given I add the "Activity results" block
index dadd855..8885d70 100644 (file)
@@ -25,22 +25,21 @@ Feature: The activity results block displays student low scores as scales
       | student4 | C1 | student |
       | student5 | C1 | student |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Scales" in the course gradebook
     And I press "Add a new scale"
     And I set the following fields to these values:
       | Name | My Scale |
       | Scale | Disappointing, Not good enough, Average, Good, Very good, Excellent! |
     And I press "Save changes"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assignment |
       | Description | Offline text |
       | assignsubmission_file_enabled | 0 |
       | id_grade_modgrade_type | Scale |
       | id_grade_modgrade_scale | My Scale |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "View > Grader report" in the course gradebook
     And I turn editing mode on
     And I give the grade "Excellent!" to the user "Student 1" for the grade item "Test assignment"
@@ -49,7 +48,7 @@ Feature: The activity results block displays student low scores as scales
     And I give the grade "Average" to the user "Student 4" for the grade item "Test assignment"
     And I give the grade "Not good enough" to the user "Student 5" for the grade item "Test assignment"
     And I press "Save changes"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
   Scenario: Configure the block on the course page to show 1 low score
     Given I add the "Activity results" block
index 64a59a7..a896714 100644 (file)
@@ -42,15 +42,14 @@ Feature: The activity results block displays students in groups low scores as sc
       | student5 | G3 |
       | student6 | G3 |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Scales" in the course gradebook
     And I press "Add a new scale"
     And I set the following fields to these values:
       | Name | My Scale |
       | Scale | Disappointing, Not good enough, Average, Good, Very good, Excellent! |
     And I press "Save changes"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assignment |
       | Description | Offline text |
@@ -58,7 +57,7 @@ Feature: The activity results block displays students in groups low scores as sc
       | id_grade_modgrade_type | Scale |
       | id_grade_modgrade_scale | My Scale |
       | Group mode | Separate groups |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "View > Grader report" in the course gradebook
     And I turn editing mode on
     And I give the grade "Excellent!" to the user "Student 1" for the grade item "Test assignment"
@@ -68,7 +67,7 @@ Feature: The activity results block displays students in groups low scores as sc
     And I give the grade "Good" to the user "Student 5" for the grade item "Test assignment"
     And I give the grade "Average" to the user "Student 6" for the grade item "Test assignment"
     And I press "Save changes"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
   Scenario: Try to configure the block on the course page to show 1 low score
     Given I add the "Activity results" block
@@ -83,7 +82,7 @@ Feature: The activity results block displays students in groups low scores as sc
     And I should see "Good" in the "Activity results" "block"
     And I log out
     And I log in as "student5"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Student 6" in the "Activity results" "block"
     And I should see "Average" in the "Activity results" "block"
 
@@ -102,7 +101,7 @@ Feature: The activity results block displays students in groups low scores as sc
     And I should see "Good" in the "Activity results" "block"
     And I log out
     And I log in as "student3"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Student 3" in the "Activity results" "block"
     And I should see "Very good" in the "Activity results" "block"
     And I should see "Student 4" in the "Activity results" "block"
@@ -122,7 +121,7 @@ Feature: The activity results block displays students in groups low scores as sc
     And I should see "Good" in the "Activity results" "block"
     And I log out
     And I log in as "student5"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "User S5" in the "Activity results" "block"
     And I should see "Good" in the "Activity results" "block"
     And I should see "User S6" in the "Activity results" "block"
@@ -142,7 +141,7 @@ Feature: The activity results block displays students in groups low scores as sc
     And I should see "Good" in the "Activity results" "block"
     And I log out
     And I log in as "student5"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "User" in the "Activity results" "block"
     And I should see "Good" in the "Activity results" "block"
     And I should see "Average" in the "Activity results" "block"
index 71500e4..264eb8f 100644 (file)
@@ -42,14 +42,13 @@ Feature: The activity results block displays students in separate groups scores
       | student5 | G3 |
       | student6 | G3 |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assignment |
       | Description | Offline text |
       | assignsubmission_file_enabled | 0 |
       | Group mode | Separate groups |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "View > Grader report" in the course gradebook
     And I turn editing mode on
     And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
@@ -59,7 +58,7 @@ Feature: The activity results block displays students in separate groups scores
     And I give the grade "80.00" to the user "Student 5" for the grade item "Test assignment"
     And I give the grade "70.00" to the user "Student 6" for the grade item "Test assignment"
     And I press "Save changes"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
   Scenario: Configure the block on the course page to show 1 low score
     Given I add the "Activity results" block
@@ -89,7 +88,7 @@ Feature: The activity results block displays students in separate groups scores
     And I should see "75.00/100.00" in the "Activity results" "block"
     And I log out
     And I log in as "student5"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Student 6" in the "Activity results" "block"
     And I should see "70.00/100.00" in the "Activity results" "block"
 
@@ -107,7 +106,7 @@ Feature: The activity results block displays students in separate groups scores
     And I should see "75.00" in the "Activity results" "block"
     And I log out
     And I log in as "student5"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Student 6" in the "Activity results" "block"
     And I should see "70.00" in the "Activity results" "block"
 
@@ -128,7 +127,7 @@ Feature: The activity results block displays students in separate groups scores
     And I should see "75%" in the "Activity results" "block"
     And I log out
     And I log in as "student5"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Student 6" in the "Activity results" "block"
     And I should see "70%" in the "Activity results" "block"
     And I should see "Student 5" in the "Activity results" "block"
@@ -150,7 +149,7 @@ Feature: The activity results block displays students in separate groups scores
     And I should see "75.00/100.00" in the "Activity results" "block"
     And I log out
     And I log in as "student3"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Student 3" in the "Activity results" "block"
     And I should see "90.00/100.00" in the "Activity results" "block"
     And I should see "Student 4" in the "Activity results" "block"
@@ -172,7 +171,7 @@ Feature: The activity results block displays students in separate groups scores
     And I should see "75.00" in the "Activity results" "block"
     And I log out
     And I log in as "student5"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Student 5" in the "Activity results" "block"
     And I should see "80.00" in the "Activity results" "block"
     And I should see "Student 6" in the "Activity results" "block"
@@ -193,7 +192,7 @@ Feature: The activity results block displays students in separate groups scores
     And I should see "75.00%" in the "Activity results" "block"
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "User S1" in the "Activity results" "block"
     And I should see "100.00%" in the "Activity results" "block"
     And I should see "User S2" in the "Activity results" "block"
@@ -214,7 +213,7 @@ Feature: The activity results block displays students in separate groups scores
     And I should see "75.00%" in the "Activity results" "block"
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "User" in the "Activity results" "block"
     And I should see "100.00%" in the "Activity results" "block"
     And I should see "90.00%" in the "Activity results" "block"
index b8488ca..4652500 100644 (file)
@@ -42,14 +42,13 @@ Feature: The activity results block displays student in visible groups low score
       | student5 | G3 |
       | student6 | G3 |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assignment |
       | Description | Offline text |
       | assignsubmission_file_enabled | 0 |
       | Group mode | Visible groups |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "View > Grader report" in the course gradebook
     And I turn editing mode on
     And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
@@ -59,7 +58,7 @@ Feature: The activity results block displays student in visible groups low score
     And I give the grade "80.00" to the user "Student 5" for the grade item "Test assignment"
     And I give the grade "70.00" to the user "Student 6" for the grade item "Test assignment"
     And I press "Save changes"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
   Scenario: Configure the block on the course page to show 1 low score
     Given I add the "Activity results" block
@@ -87,7 +86,7 @@ Feature: The activity results block displays student in visible groups low score
     And I press "Save changes"
     And I log out
     Then I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Group 3" in the "Activity results" "block"
     And I should see "75.00/100.00" in the "Activity results" "block"
 
@@ -103,7 +102,7 @@ Feature: The activity results block displays student in visible groups low score
     And I press "Save changes"
     And I log out
     Then I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Group 3" in the "Activity results" "block"
     And I should see "75.00" in the "Activity results" "block"
 
@@ -124,7 +123,7 @@ Feature: The activity results block displays student in visible groups low score
     And I should see "75%" in the "Activity results" "block"
     And I log out
     And I log in as "student5"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     Then I should see "Group 2" in the "Activity results" "block"
     And I should see "85%" in the "Activity results" "block"
     And I should see "Group 3" in the "Activity results" "block"
@@ -142,7 +141,7 @@ Feature: The activity results block displays student in visible groups low score
     And I press "Save changes"
     And I log out
     Then I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Group 2" in the "Activity results" "block"
     And I should see "85.00/100.00" in the "Activity results" "block"
     And I should see "Group 3" in the "Activity results" "block"
@@ -160,7 +159,7 @@ Feature: The activity results block displays student in visible groups low score
     And I press "Save changes"
     And I log out
     Then I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Group 2" in the "Activity results" "block"
     And I should see "85.00" in the "Activity results" "block"
     And I should see "Group 3" in the "Activity results" "block"
@@ -178,7 +177,7 @@ Feature: The activity results block displays student in visible groups low score
     And I press "Save changes"
     And I log out
     Then I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Group" in the "Activity results" "block"
     And I should see "85.00%" in the "Activity results" "block"
     And I should see "75.00%" in the "Activity results" "block"
@@ -195,7 +194,7 @@ Feature: The activity results block displays student in visible groups low score
     And I press "Save changes"
     And I log out
     Then I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Group" in the "Activity results" "block"
     And I should see "85.00%" in the "Activity results" "block"
     And I should see "75.00%" in the "Activity results" "block"
index 5c8a233..6586d5f 100644 (file)
@@ -21,14 +21,12 @@ Feature: Enable Block Badges in a course without badges
       | enablebadges | 0 |
     And I log out
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     When I add the "Latest badges" block
     Then I should see "Badges are not enabled on this site." in the "Latest badges" "block"
 
   Scenario: Add the block to a the course when badges are enabled
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     When I add the "Latest badges" block
     Then I should see "You have no badges to display" in the "Latest badges" "block"
index 88415ab..33fe576 100644 (file)
@@ -15,7 +15,7 @@ Feature: Enable Block Badges in a course
       | user | course | role |
       | teacher1 | C1 | editingteacher |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     # Issue badge 1 of 2
     And I navigate to "Add a new badge" node in "Course administration > Badges"
     And I set the following fields to these values:
@@ -54,16 +54,14 @@ Feature: Enable Block Badges in a course
 
   Scenario: Add the recent badges block to a course.
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     When I add the "Latest badges" block
     Then I should see "Badge 1" in the "Latest badges" "block"
     And I should see "Badge 2" in the "Latest badges" "block"
 
   Scenario: Add the recent badges block to a course and limit it to only display 1 badge.
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     When I add the "Latest badges" block
     And I configure the "Latest badges" block
     And I set the following fields to these values:
index 6240fe4..2928bf3 100644 (file)
@@ -15,7 +15,7 @@ Feature: Enable Block Badges on the dashboard and view awarded badges
       | user | course | role |
       | teacher1 | C1 | editingteacher |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     # Issue badge 1 of 2
     And I navigate to "Add a new badge" node in "Course administration > Badges"
     And I set the following fields to these values:
index edb484b..d1daf80 100644 (file)
@@ -20,7 +20,7 @@ Feature: Enable Block Badges on the frontpage and view awarded badges
     And I add the "Latest badges" block
     And I log out
     And I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     # Issue badge 1 of 2
     And I navigate to "Add a new badge" node in "Course administration > Badges"
     And I set the following fields to these values:
index 87b516f..419406b 100644 (file)
@@ -21,8 +21,7 @@ Feature: Enable Block blog menu in a course
       | enableblogs | 0 |
     And I log out
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     When I add the "Blog menu" block
     Then I should see "Blogging is disabled!" in the "Blog menu" "block"
 
@@ -32,8 +31,7 @@ Feature: Enable Block blog menu in a course
       | useblogassociations | 0 |
     And I log out
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     When I add the "Blog menu" block
     Then I should see "Blog entries" in the "Blog menu" "block"
     And I should see "Add a new entry" in the "Blog menu" "block"
@@ -47,8 +45,7 @@ Feature: Enable Block blog menu in a course
       | useblogassociations | 1 |
     And I log out
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     When I add the "Blog menu" block
     Then I should see "Blog entries" in the "Blog menu" "block"
     And I should see "Add a new entry" in the "Blog menu" "block"
@@ -62,8 +59,7 @@ Feature: Enable Block blog menu in a course
       | enablerssfeeds | 0 |
     And I log out
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     When I add the "Blog menu" block
     Then I should not see "Blog RSS feed" in the "Blog menu" "block"
     And I should see "Add a new entry" in the "Blog menu" "block"
@@ -74,8 +70,7 @@ Feature: Enable Block blog menu in a course
       | enablerssfeeds | 1 |
     And I log out
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     When I add the "Blog menu" block
     Then I should see "Blog RSS feed" in the "Blog menu" "block"
     And I should see "Add a new entry" in the "Blog menu" "block"
index bfe252c..9a342d2 100644 (file)
@@ -19,8 +19,7 @@ Feature: Enable Block blog menu in an activity
       | student1 | C1 | student |
       | student2 | C1 | student |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assignment 1 |
       | Description | Offline text |
@@ -31,7 +30,7 @@ Feature: Enable Block blog menu in an activity
 
   Scenario: Students use the blog menu block to post blogs
     Given I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 1"
     And I follow "Add a new entry"
     When I set the following fields to these values:
@@ -40,7 +39,7 @@ Feature: Enable Block blog menu in an activity
     And I press "Save changes"
     Then I should see "S1 First Blog"
     And I should see "This is my awesome blog!"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 1"
     And I follow "Blog entries"
     And I should see "S1 First Blog"
@@ -48,7 +47,7 @@ Feature: Enable Block blog menu in an activity
 
   Scenario: Students use the blog menu block to view their blogs about the activity
     Given I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 1"
     And I follow "Add an entry about this Assignment"
     And I set the following fields to these values:
@@ -60,7 +59,7 @@ Feature: Enable Block blog menu in an activity
     And I should see "Associated Assignment: Test assignment 1"
     And I log out
     And I log in as "student2"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 1"
     And I follow "Add a new entry"
     And I set the following fields to these values:
@@ -70,7 +69,7 @@ Feature: Enable Block blog menu in an activity
     And I should see "S2 Second Blog"
     And I should see "My unrelated blog!"
     And I should not see "Associated Assignment: Test assignment 1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 1"
     And I follow "Add an entry about this Assignment"
     And I set the following fields to these values:
@@ -80,7 +79,7 @@ Feature: Enable Block blog menu in an activity
     And I should see "S2 First Blog"
     And I should see "My course blog is better!"
     And I should see "Associated Assignment: Test assignment 1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 1"
     When I follow "View my entries about this Assignment"
     Then I should see "S2 First Blog"
@@ -89,7 +88,7 @@ Feature: Enable Block blog menu in an activity
 
   Scenario: Students use the blog menu block to view all blogs about the assignment
     Given I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 1"
     And I follow "Add an entry about this Assignment"
     And I set the following fields to these values:
@@ -101,7 +100,7 @@ Feature: Enable Block blog menu in an activity
     And I should see "Associated Assignment: Test assignment 1"
     And I log out
     And I log in as "student2"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 1"
     And I follow "Add a new entry"
     And I set the following fields to these values:
@@ -111,7 +110,7 @@ Feature: Enable Block blog menu in an activity
     And I should see "S2 Second Blog"
     And I should see "My unrelated blog!"
     And I should not see "Associated Assignment: Test assignment 1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 1"
     And I follow "Add an entry about this Assignment"
     And I set the following fields to these values:
@@ -121,7 +120,7 @@ Feature: Enable Block blog menu in an activity
     And I should see "S2 First Blog"
     And I should see "My course blog is better!"
     And I should see "Associated Assignment: Test assignment 1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 1"
     When I follow "View all entries about this Assignment"
     Then I should see "S1 First Blog"
@@ -130,7 +129,7 @@ Feature: Enable Block blog menu in an activity
 
   Scenario: Students use the blog menu block to view all their blog entries
     Given I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 1"
     And I follow "Add an entry about this Assignment"
     And I set the following fields to these values:
@@ -142,7 +141,7 @@ Feature: Enable Block blog menu in an activity
     And I should see "Associated Assignment: Test assignment 1"
     And I log out
     And I log in as "student2"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 1"
     And I follow "Add a new entry"
     And I set the following fields to these values:
@@ -152,7 +151,7 @@ Feature: Enable Block blog menu in an activity
     And I should see "S2 Second Blog"
     And I should see "My unrelated blog!"
     And I should not see "Associated Assignment: Test assignment 1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 1"
     And I follow "Add an entry about this Assignment"
     And I set the following fields to these values:
@@ -162,7 +161,7 @@ Feature: Enable Block blog menu in an activity
     And I should see "S2 First Blog"
     And I should see "My course blog is better!"
     And I should see "Associated Assignment: Test assignment 1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 1"
     When I follow "Blog entries"
     Then I should see "S2 First Blog"
@@ -171,7 +170,7 @@ Feature: Enable Block blog menu in an activity
 
   Scenario: Teacher searches for student blogs
     Given I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 1"
     And I follow "Add an entry about this Assignment"
     And I set the following fields to these values:
@@ -183,7 +182,7 @@ Feature: Enable Block blog menu in an activity
     And I should see "Associated Assignment: Test assignment 1"
     And I log out
     And I log in as "student2"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 1"
     And I follow "Add a new entry"
     And I set the following fields to these values:
@@ -193,7 +192,7 @@ Feature: Enable Block blog menu in an activity
     And I should see "S2 Second Blog"
     And I should see "My unrelated blog!"
     And I should not see "Associated Assignment: Test assignment 1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 1"
     And I follow "Add an entry about this Assignment"
     And I set the following fields to these values:
@@ -205,7 +204,7 @@ Feature: Enable Block blog menu in an activity
     And I should see "Associated Assignment: Test assignment 1"
     And I log out
     When I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 1"
     And I set the field "blogsearchquery" to "First"
     And I press "Search"
index 97abb5d..39821d2 100644 (file)
@@ -19,14 +19,13 @@ Feature: Students can use block blog menu in a course
       | student1 | C1 | student |
       | student2 | C1 | student |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add the "Blog menu" block
     And I log out
 
   Scenario: Students use the blog menu block to post blogs
     Given I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Add a new entry"
     When I set the following fields to these values:
       | Entry title | S1 First Blog |
@@ -34,14 +33,14 @@ Feature: Students can use block blog menu in a course
     And I press "Save changes"
     Then I should see "S1 First Blog"
     And I should see "This is my awesome blog!"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Blog entries"
     And I should see "S1 First Blog"
     And I should see "This is my awesome blog!"
 
   Scenario: Students use the blog menu block to view their blogs about the course
     Given I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Add an entry about this course"
     And I set the following fields to these values:
       | Entry title | S1 First Blog |
@@ -52,7 +51,7 @@ Feature: Students can use block blog menu in a course
     And I should see "Associated Course: C1"
     And I log out
     And I log in as "student2"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Add a new entry"
     And I set the following fields to these values:
       | Entry title | S2 Second Blog |
@@ -61,7 +60,7 @@ Feature: Students can use block blog menu in a course
     And I should see "S2 Second Blog"
     And I should see "My unrelated blog!"
     And I should not see "Associated Course: C1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Add an entry about this course"
     And I set the following fields to these values:
       | Entry title | S2 First Blog |
@@ -70,7 +69,7 @@ Feature: Students can use block blog menu in a course
     And I should see "S2 First Blog"
     And I should see "My course blog is better!"
     And I should see "Associated Course: C1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     When I follow "View my entries about this course"
     Then I should see "S2 First Blog"
     And I should not see "S2 Second Blog"
@@ -78,7 +77,7 @@ Feature: Students can use block blog menu in a course
 
   Scenario: Students use the blog menu block to view all blogs about the course
     Given I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Add an entry about this course"
     And I set the following fields to these values:
       | Entry title | S1 First Blog |
@@ -89,7 +88,7 @@ Feature: Students can use block blog menu in a course
     And I should see "Associated Course: C1"
     And I log out
     And I log in as "student2"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Add a new entry"
     And I set the following fields to these values:
       | Entry title | S2 Second Blog |
@@ -98,7 +97,7 @@ Feature: Students can use block blog menu in a course
     And I should see "S2 Second Blog"
     And I should see "My unrelated blog!"
     And I should not see "Associated Course: C1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Add an entry about this course"
     And I set the following fields to these values:
       | Entry title | S2 First Blog |
@@ -107,7 +106,7 @@ Feature: Students can use block blog menu in a course
     And I should see "S2 First Blog"
     And I should see "My course blog is better!"
     And I should see "Associated Course: C1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     When I follow "View all entries for this course"
     Then I should see "S1 First Blog"
     And I should see "S2 First Blog"
@@ -115,7 +114,7 @@ Feature: Students can use block blog menu in a course
 
   Scenario: Students use the blog menu block to view all their blog entries
     Given I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Add an entry about this course"
     And I set the following fields to these values:
       | Entry title | S1 First Blog |
@@ -126,7 +125,7 @@ Feature: Students can use block blog menu in a course
     And I should see "Associated Course: C1"
     And I log out
     And I log in as "student2"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Add a new entry"
     And I set the following fields to these values:
       | Entry title | S2 Second Blog |
@@ -135,7 +134,7 @@ Feature: Students can use block blog menu in a course
     And I should see "S2 Second Blog"
     And I should see "My unrelated blog!"
     And I should not see "Associated Course: C1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Add an entry about this course"
     And I set the following fields to these values:
       | Entry title | S2 First Blog |
@@ -144,7 +143,7 @@ Feature: Students can use block blog menu in a course
     And I should see "S2 First Blog"
     And I should see "My course blog is better!"
     And I should see "Associated Course: C1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     When I follow "Blog entries"
     Then I should see "S2 First Blog"
     And I should see "S2 Second Blog"
@@ -152,7 +151,7 @@ Feature: Students can use block blog menu in a course
 
   Scenario: Teacher searches for student blogs
     Given I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Add an entry about this course"
     And I set the following fields to these values:
       | Entry title | S1 First Blog |
@@ -163,7 +162,7 @@ Feature: Students can use block blog menu in a course
     And I should see "Associated Course: C1"
     And I log out
     And I log in as "student2"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Add a new entry"
     And I set the following fields to these values:
       | Entry title | S2 Second Blog |
@@ -172,7 +171,7 @@ Feature: Students can use block blog menu in a course
     And I should see "S2 Second Blog"
     And I should see "My unrelated blog!"
     And I should not see "Associated Course: C1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Add an entry about this course"
     And I set the following fields to these values:
       | Entry title | S2 First Blog |
@@ -183,7 +182,7 @@ Feature: Students can use block blog menu in a course
     And I should see "Associated Course: C1"
     And I log out
     When I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I set the field "blogsearchquery" to "First"
     And I press "Search"
     Then I should see "S1 First Blog"
index e5c1508..ccb4c64 100644 (file)
@@ -21,14 +21,12 @@ Feature: Feature: Users can use the recent blog entries block to view recent blo
       | enableblogs | 0 |
     And I log out
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     When I add the "Recent blog entries" block
     Then I should see "Blogging is disabled!" in the "Recent blog entries" "block"
 
   Scenario: Add the recent blogs block to a course when there are not any blog posts
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     When I add the "Recent blog entries" block
     Then I should see "No recent entries" in the "Recent blog entries" "block"
index dae2c8c..09112b7 100644 (file)
@@ -19,8 +19,7 @@ Feature: Students can use the recent blog entries block to view recent entries o
       | student1 | C1 | student |
       | student2 | C1 | student |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add a "Assignment" to section "1" and I fill the form with:
       | Assignment name | Test assignment 1 |
       | Description | Offline text |
@@ -32,7 +31,7 @@ Feature: Students can use the recent blog entries block to view recent entries o
 
   Scenario: Students use the recent blog entries block to view blogs
     Given I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 1"
     And I follow "Add an entry about this Assignment"
     When I set the following fields to these values:
@@ -48,7 +47,7 @@ Feature: Students can use the recent blog entries block to view recent entries o
 
   Scenario: Students only see a few entries in the recent blog entries block
     Given I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test assignment 1"
     And I follow "Add an entry about this Assignment"
     # Blog 1 of 5
@@ -106,8 +105,7 @@ Feature: Students can use the recent blog entries block to view recent entries o
     And I should see "This is my awesome blog!"
     Then I log out
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I follow "Test assignment 1"
     And I configure the "Recent blog entries" block
     And I set the following fields to these values:
index 7bf2e3a..67ee460 100644 (file)
@@ -17,15 +17,14 @@ Feature: Students can use the recent blog entries block to view recent entries o
       | teacher1 | C1 | editingteacher |
       | student1 | C1 | student |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add the "Blog menu" block
     And I add the "Recent blog entries" block
     And I log out
 
   Scenario: Students use the recent blog entries block to view blogs
     Given I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Add an entry about this course"
     When I set the following fields to these values:
       | Entry title | S1 First Blog |
@@ -40,7 +39,7 @@ Feature: Students can use the recent blog entries block to view recent entries o
 
   Scenario: Students only see a few entries in the recent blog entries block
     Given I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Add an entry about this course"
     # Blog 1 of 5
     And I set the following fields to these values:
@@ -97,8 +96,7 @@ Feature: Students can use the recent blog entries block to view recent entries o
     And I should see "This is my awesome blog!"
     Then I log out
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I configure the "Recent blog entries" block
     And I set the following fields to these values:
       | id_config_numberofrecentblogentries | 2 |
index c6b06b3..8cf6b27 100644 (file)
@@ -21,8 +21,7 @@ Feature: Adding blog tag block
       | teacher1 | c1     | editingteacher |
       | student1 | c1     | student        |
     When I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add the "Blog tags" block
     # TODO MDL-57120 site "Blogs" link not accessible without navigation block.
     And I add the "Navigation" block if not present
@@ -37,7 +36,7 @@ Feature: Adding blog tag block
     And I press "Save changes"
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to course participants
     And I click on "Course blogs" "link" in the "Navigation" "block"
     And I follow "Blog about this Course"
index 7503e3a..db6f058 100644 (file)
@@ -21,8 +21,7 @@ Feature: Enable the calendar block in a course and test it's functionality
 
   Scenario: Add the block to a the course
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     When I add the "Calendar" block
     Then I should see "Events key" in the "Calendar" "block"
 
@@ -34,8 +33,7 @@ Feature: Enable the calendar block in a course and test it's functionality
       | id_name | Site Event |
     And I log out
     When I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add the "Calendar" block
     And I hover over today in the calendar
     Then I should see "Site Event"
@@ -48,13 +46,12 @@ Feature: Enable the calendar block in a course and test it's functionality
       | id_name | Site Event |
     And I log out
     When I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add the "Calendar" block
     And I create a calendar event with form data:
       | id_eventtype | Course |
       | id_name | Course Event |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Hide global events"
     And I hover over today in the calendar
     Then I should not see "Site Event"
@@ -63,31 +60,29 @@ Feature: Enable the calendar block in a course and test it's functionality
   @javascript
   Scenario: View a course event in the calendar block
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add the "Calendar" block
     And I create a calendar event with form data:
       | id_eventtype | Course |
       | id_name | Course Event |
-    When I am on course page "Course 1"
+    When I am on "Course 1" course homepage
     And I hover over today in the calendar
     Then I should see "Course Event"
 
   @javascript
   Scenario: Filter course events in the calendar block
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add the "Calendar" block
     And I create a calendar event with form data:
       | id_eventtype | Course |
       | id_name | Course Event |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I create a calendar event with form data:
       | id_eventtype | User |
       | id_name | User Event |
     When I am on homepage
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Hide course events"
     And I hover over today in the calendar
     Then I should not see "Course Event"
@@ -96,32 +91,30 @@ Feature: Enable the calendar block in a course and test it's functionality
   @javascript
   Scenario: View a user event in the calendar block
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add the "Calendar" block
     And I create a calendar event with form data:
       | id_eventtype | User |
       | id_name | User Event |
     When I am on homepage
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I hover over today in the calendar
     Then I should see "User Event"
 
   @javascript
   Scenario: Filter user events in the calendar block
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add the "Calendar" block
     And I create a calendar event with form data:
       | id_eventtype | Course |
       | id_name | Course Event |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I create a calendar event with form data:
       | id_eventtype | User |
       | id_name | User Event |
     When I am on homepage
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Hide user events"
     And I hover over today in the calendar
     Then I should not see "User Event"
@@ -138,7 +131,7 @@ Feature: Enable the calendar block in a course and test it's functionality
       | student1 | G1 |
       | student2 | G2 |
     When I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Edit settings" node in "Course administration"
     And I set the following fields to these values:
       | id_groupmode | Separate groups |
@@ -152,12 +145,12 @@ Feature: Enable the calendar block in a course and test it's functionality
       | id_name | Group Event |
     And I log out
     Then I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I hover over today in the calendar
     And I should see "Group Event"
     And I log out
     And I log in as "student2"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I hover over today in the calendar
     And I should not see "Group Event"
 
@@ -172,7 +165,7 @@ Feature: Enable the calendar block in a course and test it's functionality
       | student1 | G1 |
       | student2 | G2 |
     When I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Edit settings" node in "Course administration"
     And I set the following fields to these values:
       | id_groupmode | Separate groups |
@@ -183,14 +176,14 @@ Feature: Enable the calendar block in a course and test it's functionality
     And I create a calendar event with form data:
       | id_eventtype | Course |
       | id_name | Course Event 1 |
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I create a calendar event with form data:
       | id_eventtype | Group |
       | id_groupid | Group 1 |
       | id_name | Group Event 1 |
     And I log out
     Then I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Hide group events"
     And I hover over today in the calendar
     And I should not see "Group Event 1"
index e87bd08..2360572 100644 (file)
@@ -21,8 +21,7 @@ Feature: Enable the calendar block in a course
       | id_name | Site Event |
     And I log out
     Then I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add the "Calendar" block
     And I hover over today in the calendar
     And I should see "Site Event"
index d400237..02f73f4 100644 (file)
@@ -17,12 +17,11 @@ Feature: Add a comment to the comments block
       | teacher1 | C1 | editingteacher |
       | student1 | C1 | student |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add the "Comments" block
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
 
   @javascript
   Scenario: Add a comment with Javascript enabled
@@ -69,7 +68,7 @@ Feature: Add a comment to the comments block
     And I add "Super test comment 31" comment to comments block
     Then I should see "Super test comment 01"
     And I should see "Super test comment 31"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should not see "Super test comment 01"
     And I should not see "Super test comment 02"
     And I should not see "Super test comment 16"
index d800674..4aa94bd 100644 (file)
@@ -20,15 +20,14 @@ Feature: Enable Block comments on an activity page and view comments
       | activity | course | idnumber | name           | intro                 |
       | page    | C1      | page1    | Test page name | Test page description |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I follow "Test page name"
     And I add the "Comments" block
     And I follow "Show comments"
     And I add "I'm a comment from the teacher" comment to comments block
     And I log out
     When I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test page name"
     And I follow "Show comments"
     Then I should see "I'm a comment from the teacher"
index 9ee5143..3589da4 100644 (file)
@@ -17,13 +17,12 @@ Feature: Enable Block comments on a course page and view comments
       | teacher1 | C1 | editingteacher |
       | student1 | C1 | student |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add the "Comments" block
     And I follow "Show comments"
     And I add "I'm a comment from the teacher" comment to comments block
     And I log out
     When I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Show comments"
     Then I should see "I'm a comment from the teacher"
index 52421fc..f8939f4 100644 (file)
@@ -18,16 +18,15 @@ Feature: Delete comment block messages
       | teacher1 | C1 | editingteacher |
       | student1 | C1 | student |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add the "Comments" block
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I add "Comment from student1" comment to comments block
     And I log out
     And I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I add "Comment from teacher1" comment to comments block
     When I delete "Comment from student1" comment from comments block
     Then I should not see "Comment from student1"
index f01348e..f5e24a1 100644 (file)
@@ -19,8 +19,7 @@ Feature: Enable Block Completion in a course
 
   Scenario: Add the block to a the course where completion is disabled
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I navigate to "Edit settings" node in "Course administration"
     And I set the following fields to these values:
       | Enable completion tracking | No |
@@ -30,8 +29,7 @@ Feature: Enable Block Completion in a course
 
   Scenario: Add the block to a the course where completion is not set
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     When I add the "Course completion status" block
     Then I should see "No completion criteria set for this course" in the "Course completion status" "block"
 
@@ -40,8 +38,7 @@ Feature: Enable Block Completion in a course
       | activity | course | idnumber | name           | intro                 |
       | page     | C1     | page1    | Test page name | Test page description |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I follow "Test page name"
     And I navigate to "Edit settings" in current page administration
     And I set the following fields to these values:
index 111ff15..a92c042 100644 (file)
@@ -22,8 +22,7 @@ Feature: Enable Block Completion in a course using activity completion
 
   Scenario: Add the block to a the course and add course completion items
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I follow "Test page name"
     And I navigate to "Edit settings" in current page administration
     And I set the following fields to these values:
@@ -38,14 +37,13 @@ Feature: Enable Block Completion in a course using activity completion
     And I press "Save changes"
     And I log out
     When I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     Then I should see "Status: Not yet started" in the "Course completion status" "block"
     And I should see "0 of 1" in the "Activity completion" "table_row"
 
   Scenario: Add the block to a the course and add course completion items
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I follow "Test page name"
     And I navigate to "Edit settings" in current page administration
     And I set the following fields to these values:
@@ -60,13 +58,13 @@ Feature: Enable Block Completion in a course using activity completion
     And I press "Save changes"
     And I log out
     When I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I follow "Test page name"
     And I follow "C1"
     Then I should see "Status: Pending" in the "Course completion status" "block"
     And I should see "0 of 1" in the "Activity completion" "table_row"
     And I trigger cron
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "1 of 1" in the "Activity completion" "table_row"
     And I follow "More details"
     And I should see "Yes" in the "Activity completion" "table_row"
index bc3c00c..c021914 100644 (file)
@@ -21,8 +21,7 @@ Feature: Enable Block Completion in a course using manual completion by others
 
   Scenario: Add the block to a the course and mark a student complete.
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add the "Course completion status" block
     And I navigate to "Course completion" node in "Course administration"
     And I expand all fieldsets
@@ -31,12 +30,12 @@ Feature: Enable Block Completion in a course using manual completion by others
     And I press "Save changes"
     And I log out
     When I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Status: Not yet started" in the "Course completion status" "block"
     And I should see "No" in the "Teacher" "table_row"
     And I log out
     And I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Course completion" node in "Course administration > Reports"
     And I follow "Click to mark user complete"
     # Running completion task just after clicking sometimes fail, as record
@@ -46,7 +45,7 @@ Feature: Enable Block Completion in a course using manual completion by others
     And I am on site homepage
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     Then I should see "Status: Complete" in the "Course completion status" "block"
     And I should see "Yes" in the "Teacher" "table_row"
     And I follow "More details"
@@ -54,8 +53,7 @@ Feature: Enable Block Completion in a course using manual completion by others
 
   Scenario: Add the block to a the course and require multiple roles to mark a student complete.
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add the "Course completion status" block
     And I navigate to "Course completion" node in "Course administration"
     And I expand all fieldsets
@@ -66,18 +64,18 @@ Feature: Enable Block Completion in a course using manual completion by others
     And I press "Save changes"
     And I log out
     When I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Status: Not yet started" in the "Course completion status" "block"
     And I should see "No" in the "Teacher" "table_row"
     And I should see "No" in the "Non-editing teacher" "table_row"
     And I log out
     And I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Course completion" node in "Course administration > Reports"
     And I follow "Click to mark user complete"
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Status: In progress" in the "Course completion status" "block"
     And I should see "Yes" in the "Teacher" "table_row"
     And I should see "No" in the "Non-editing teacher" "table_row"
@@ -86,7 +84,7 @@ Feature: Enable Block Completion in a course using manual completion by others
     And I should see "No" in the "Marked complete by Non-editing teacher" "table_row"
     And I log out
     And I log in as "teacher2"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I navigate to "Course completion" node in "Course administration > Reports"
     And I follow "Click to mark user complete"
     # Running completion task just after clicking sometimes fail, as record
@@ -96,7 +94,7 @@ Feature: Enable Block Completion in a course using manual completion by others
     And I am on site homepage
     And I log out
     And I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     Then I should see "Status: Complete" in the "Course completion status" "block"
     And I should see "Yes" in the "Teacher" "table_row"
     And I should see "Yes" in the "Non-editing teacher" "table_row"
index 1570bac..d9b73c5 100644 (file)
@@ -17,8 +17,7 @@ Feature: Enable Block Completion in a course using manual self completion
       | teacher1 | C1     | editingteacher |
       | student1 | C1     | student        |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add the "Course completion status" block
     And I add the "Self completion" block
     And I navigate to "Course completion" node in "Course administration"
@@ -28,7 +27,7 @@ Feature: Enable Block Completion in a course using manual self completion
     And I press "Save changes"
     And I log out
     When I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     And I should see "Status: Not yet started" in the "Course completion status" "block"
     And I should see "No" in the "Self completion" "table_row"
     And I follow "Complete course"
@@ -39,7 +38,7 @@ Feature: Enable Block Completion in a course using manual self completion
     # should be created before the task runs.
     And I wait "1" seconds
     And I run the scheduled task "core\task\completion_regular_task"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     Then I should see "Status: Complete" in the "Course completion status" "block"
     And I should see "Yes" in the "Self completion" "table_row"
     And I follow "More details"
index ebb64e4..3c03721 100644 (file)
@@ -58,7 +58,7 @@ Feature: Enable the course_list block on a category page and view it's contents
     And I should see "Course 2" in the "My courses" "block"
     And I should see "Course 3" in the "My courses" "block"
     And I should not see "Course 4" in the "My courses" "block"
-    And I am on course page "Course 3"
+    And I am on "Course 3" course homepage
     And I should see "Course 3"
 
   Scenario: Add the course list block on category page and view as an admin
index 393da8e..8a14d9e 100644 (file)
@@ -27,8 +27,7 @@ Feature: Enable the course_list block on a course page and view it's contents
 
   Scenario: Add the course list block on course page and navigate to the course listing
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     When I add the "Courses" block
     Then I should see "Course 1" in the "My courses" "block"
     And I should see "Course 2" in the "My courses" "block"
@@ -39,21 +38,18 @@ Feature: Enable the course_list block on a course page and view it's contents
 
   Scenario: Add the course list block on course page and navigate to another course
     Given I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     When I add the "Courses" block
     Then I should see "Course 1" in the "My courses" "block"
     And I should see "Course 2" in the "My courses" "block"
     And I should see "Course 3" in the "My courses" "block"
     And I should not see "Course 4" in the "My courses" "block"
-    And I am on course page "Course 3"
+    And I am on "Course 3" course homepage
     And I should see "Course 3"
 
   Scenario: Add the course list block on course page and view as an admin
     Given I log in as "admin"
-    And I am on site homepage
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     When I add the "Courses" block
     Then I should see "Miscellaneous" in the "Course categories" "block"
     And I should see "Category 1" in the "Course categories" "block"
@@ -68,8 +64,7 @@ Feature: Enable the course_list block on a course page and view it's contents
     Given the following config values are set as admin:
       | block_course_list_hideallcourseslink | 1 |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     When I add the "Courses" block
     Then I should not see "All courses" in the "My courses" "block"
 
@@ -80,9 +75,7 @@ Feature: Enable the course_list block on a course page and view it's contents
       | user | course | role           |
       | admin | C1 | editingteacher |
     And I log in as "admin"
-    And I am on site homepage
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     When I add the "Courses" block
     Then I should not see "Miscellaneous" in the "My courses" "block"
     And I should not see "Category 1" in the "My courses" "block"
index 42211ed..f31ae94 100644 (file)
@@ -44,7 +44,7 @@ Feature: Enable the course_list block on the dashboard and view it's contents
     And I should see "Course 2" in the "My courses" "block"
     And I should see "Course 3" in the "My courses" "block"
     And I should not see "Course 4" in the "My courses" "block"
-    And I am on course page "Course 3"
+    And I am on "Course 3" course homepage
     And I should see "Course 3"
 
   Scenario: Add the course list block on the dashboard and view as an admin
index 02189f1..b10cf27 100644 (file)
@@ -52,7 +52,7 @@ Feature: Enable the course_list block on the frontpage and view it's contents
     And I should see "Course 2" in the "My courses" "block"
     And I should see "Course 3" in the "My courses" "block"
     And I should not see "Course 4" in the "My courses" "block"
-    And I am on course page "Course 3"
+    And I am on "Course 3" course homepage
     And I should see "Course 3"
 
   Scenario: Add the course list block on the frontpage page and view as an admin
index e8ff436..3b4b32c 100644 (file)
@@ -17,21 +17,20 @@ Feature: Course summary block used in a course
       | student1    | C101   | student |
       | teacher1    | C101   | editingteacher |
     And I log in as "teacher1"
-    And I am on course page "Course 1"
-    And I turn editing mode on
+    And I am on "Course 1" course homepage with editing mode on
     And I add the "Course/site summary" block
     And I log out
 
   Scenario: Student can view course summary
     When I log in as "student1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     Then "Course summary" "block" should exist
     And I should see "Course summary" in the "Course summary" "block"
     And I should see "Proved the course summary block works!" in the "Course summary" "block"
 
   Scenario: Teacher can not see edit icon when edit mode is off
     When I log in as "teacher1"
-    And I am on course page "Course 1"
+    And I am on "Course 1" course homepage
     Then I should see "Proved the course summary block works!" in the "Course summary" "block"
     And I should see "Course summary" in the "Course summary" "block"
     And "Edit" "link"&nb