MDL-35981 comments: Remove confirm step from behat delete comments.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user