X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=blobdiff_plain;f=course%2Fformat%2Fweeks%2Ftests%2Fbehat%2Fedit_delete_sections.feature;h=255fa837976a926166214e351224faa1c400f599;hp=96ba213a7cbf281d51641951296571b1297bdcb8;hb=ebadc15c1fc132f9f3165b10fa9dea46ea347591;hpb=60cf0742390bb6a53d368fa22f5cc9a29e18c306;ds=sidebyside diff --git a/course/format/weeks/tests/behat/edit_delete_sections.feature b/course/format/weeks/tests/behat/edit_delete_sections.feature index 96ba213a7cb..255fa837976 100644 --- a/course/format/weeks/tests/behat/edit_delete_sections.feature +++ b/course/format/weeks/tests/behat/edit_delete_sections.feature @@ -45,7 +45,7 @@ Feature: Sections can be edited and deleted in weeks format Given I should see "29 May - 4 June" in the "li#section-5" "css_element" When I delete section "5" Then I should see "Are you absolutely sure you want to completely delete \"29 May - 4 June\" and all the activities it contains?" - And I press "Continue" + And I press "Delete" And I should not see "29 May - 4 June" And I navigate to "Edit settings" node in "Course administration" And I expand all fieldsets @@ -54,7 +54,7 @@ Feature: Sections can be edited and deleted in weeks format Scenario: Deleting the middle section in weeks format Given I should see "29 May - 4 June" in the "li#section-5" "css_element" When I delete section "4" - And I press "Continue" + And I press "Delete" Then I should not see "29 May - 4 June" And I should not see "Test chat name" And I should see "Test choice name" in the "li#section-4" "css_element" @@ -66,7 +66,7 @@ Feature: Sections can be edited and deleted in weeks format When I follow "Reduce the number of sections" Then I should see "Orphaned activities (section 5)" in the "li#section-5" "css_element" And I delete section "5" - And I press "Continue" + And I press "Delete" And I should not see "29 May - 4 June" And I should not see "Orphaned activities" And "li#section-5" "css_element" should not exist @@ -80,7 +80,7 @@ Feature: Sections can be edited and deleted in weeks format And "li#section-5.orphaned" "css_element" should exist And "li#section-4.orphaned" "css_element" should not exist And I delete section "1" - And I press "Continue" + And I press "Delete" And I should not see "Test book name" And I should see "Orphaned activities (section 4)" in the "li#section-4" "css_element" And "li#section-5" "css_element" should not exist