From 761be6d5a6f43a4e3340a7d6383f06404b6a3270 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Wed, 4 May 2016 18:12:02 -0500 Subject: [PATCH] Add Behat test for reply/delete/quote a forum message --- tests/features/forum.feature | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/features/forum.feature b/tests/features/forum.feature index 3172fc1b73..18f35cff2d 100644 --- a/tests/features/forum.feature +++ b/tests/features/forum.feature @@ -28,4 +28,20 @@ Feature: Forum tool | post_title | Thread One | | post_text | This is a the first thread in a forum for test | And I press "SubmitPost" - Then I should see "The new thread has been added" \ No newline at end of file + Then I should see "The new thread has been added" + + Scenario: Reply to forum message + Given I am on "/main/forum/reply.php?forum=1&thread=1&post=1&action=replymessage" + When I fill in the following: + | post_text | This is a reply to the first message for test | + And I press "SubmitPost" + Then I should see "The reply has been added" + + Scenario: Delete a forum message + Given I am on "/main/forum/viewthread.php?forum=1&thread=1&action=delete&content=post&id=2" + Then I should see "Post has been deleted" + + Scenario: Quote a forum message + Given I am on "/main/forum/reply.php?forum=1&thread=1&post=1&action=quote" + When I press "SubmitPost" + Then I should see "The reply has been added" \ No newline at end of file