MDL-35981 comments: Remove confirm step from behat delete comments.
authorDamyon Wiese <damyon@moodle.com>
Thu, 1 Aug 2013 04:38:32 +0000 (12:38 +0800)
committerDamyon Wiese <damyon@moodle.com>
Fri, 2 Aug 2013 03:42:45 +0000 (11:42 +0800)
blocks/comments/tests/behat/behat_block_comments.php
blog/tests/behat/comment.feature

index 3cac07a..e7eaf88 100644 (file)
@@ -103,10 +103,6 @@ class behat_block_comments extends behat_base {
         $deleteicon = $this->find('css', '.comment-delete a img', $deleteexception, $commentnode);
         $deleteicon->click();
 
-        // Yes confirm.
-        $confirmnode = $this->find('xpath', "//div[@class='comment-delete-confirm']/descendant::a[contains(., '" . get_string('yes') . "')]");
-        $confirmnode->click();
-
         // Wait for the AJAX request.
         $this->getSession()->wait(4 * 1000, false);
     }
index 7828194..1527a3c 100644 (file)
@@ -55,7 +55,6 @@ Feature: Comment on a blog entry
     And I follow "Save comment"
     And I wait "4" seconds
     When I click on ".comment-delete a" "css_element"
-    And I click on "Yes" "link"
     And I wait "4" seconds
     Then I should not see "$My own >nasty< \"string\"!"
     And I follow "Blog post from user 1"