From 5e43ccd3b9ef15b3fc45bbd9529aba92eeb620d9 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Tue, 22 Nov 2016 08:36:54 +0800 Subject: [PATCH] MDL-56986 block_course_summary: remove edit icon scenario from behat --- .../tests/behat/block_course_summary_course.feature | 9 --------- .../tests/behat/block_course_summary_frontpage.feature | 9 --------- 2 files changed, 18 deletions(-) diff --git a/blocks/course_summary/tests/behat/block_course_summary_course.feature b/blocks/course_summary/tests/behat/block_course_summary_course.feature index a33f66ec9c4..defb9f7f527 100644 --- a/blocks/course_summary/tests/behat/block_course_summary_course.feature +++ b/blocks/course_summary/tests/behat/block_course_summary_course.feature @@ -29,15 +29,6 @@ Feature: Course summary block used in a course 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 see an edit icon when edit mode is on and follow it to the course edit page - When I log in as "teacher1" - And I follow "Course 1" - And I turn editing mode on - 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 I click on ".editbutton a" "css_element" in the "Course summary" "block" - Then I should see "Edit course settings" in the "h2" "css_element" - Scenario: Teacher can not see edit icon when edit mode is off When I log in as "teacher1" And I follow "Course 1" diff --git a/blocks/course_summary/tests/behat/block_course_summary_frontpage.feature b/blocks/course_summary/tests/behat/block_course_summary_frontpage.feature index 6299f59b4ef..a48fb70fc86 100644 --- a/blocks/course_summary/tests/behat/block_course_summary_frontpage.feature +++ b/blocks/course_summary/tests/behat/block_course_summary_frontpage.feature @@ -22,15 +22,6 @@ Feature: Course summary block used on the frontpage And I should not see "Course summary" in the "Course/site summary" "block" And I should see "Proved the summary block works!" in the "Course/site summary" "block" - Scenario: Admin can see an edit icon when edit mode is on and follow it to the front page settings - When I log in as "admin" - And I am on site homepage - And I follow "Turn editing on" - Then I should see "Proved the summary block works!" in the "Course/site summary" "block" - And I should not see "Course summary" in the "Course/site summary" "block" - And I click on ".editbutton a" "css_element" in the "Course/site summary" "block" - Then I should see "Front page settings" in the "h2" "css_element" - Scenario: Admin can not see edit icon when edit mode is off When I log in as "admin" And I am on site homepage