diff options
author | Alex Legler <alex@a3li.li> | 2015-08-15 13:32:14 +0200 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2015-08-15 13:32:14 +0200 |
commit | d0cbe50515ded38cebcacb2c5690114caf610687 (patch) | |
tree | 9720ef5feb52b7233ec55d4b3f67a63bb2600ac1 /Flow/tests/browser/features/moderation.feature | |
parent | Add Thanks (diff) | |
download | extensions-d0cbe50515ded38cebcacb2c5690114caf610687.tar.gz extensions-d0cbe50515ded38cebcacb2c5690114caf610687.tar.bz2 extensions-d0cbe50515ded38cebcacb2c5690114caf610687.zip |
Add Flow
Diffstat (limited to 'Flow/tests/browser/features/moderation.feature')
-rw-r--r-- | Flow/tests/browser/features/moderation.feature | 44 |
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 |