summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Flow/tests/browser/features/moderation.feature')
-rw-r--r--Flow/tests/browser/features/moderation.feature44
1 files changed, 44 insertions, 0 deletions
diff --git a/Flow/tests/browser/features/moderation.feature b/Flow/tests/browser/features/moderation.feature
new file mode 100644
index 00000000..3fa14415
--- /dev/null
+++ b/Flow/tests/browser/features/moderation.feature
@@ -0,0 +1,44 @@
+@chrome @clean @en.wikipedia.beta.wmflabs.org @firefox @internet_explorer_10 @login @test2.wikipedia.org
+Feature: Moderation
+
+ Assumes Flow is enabled for the User_talk namespace.
+
+ Background:
+ Given I am logged in
+ And I am on Flow page
+
+ Scenario: Deleting a topic
+ Given I have created a Flow topic with title "Deletemeifyoudare"
+ When I click the Topic Actions link
+ And I click the Delete topic button
+ And I see a dialog box
+ And I give reason for deletion as being "He's a naughty boy"
+ And I click Delete topic
+ Then the top post should be marked as deleted
+
+ Scenario: Suppressing a topic
+ Given I have created a Flow topic with title "Suppressmeifyoudare"
+ When I click the Topic Actions link
+ And I click the Suppress topic button
+ And I see a dialog box
+ And I give reason for suppression as being "Quelling the peasants"
+ And I click Suppress topic
+ Then the top post should be marked as suppressed
+
+ Scenario: Cancelling a dialog without text
+ Given I have created a Flow topic with title "Testing cancel deletion of topic"
+ When I click the Topic Actions link
+ And I click the Delete topic button
+ And I see a dialog box
+ And I cancel the dialog
+ Then I do not see the dialog box
+
+ Scenario: Cancelling a dialog with text
+ Given I have created a Flow topic with title "Testing cancel deletion of topic"
+ When I click the Topic Actions link
+ And I click the Delete topic button
+ And I see a dialog box
+ And I give reason for suppression as being "About to change my mind"
+ And I cancel the dialog
+ And I confirm
+ Then I do not see the dialog box