summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Flow/tests/browser/features/thank.feature')
-rw-r--r--Flow/tests/browser/features/thank.feature23
1 files changed, 23 insertions, 0 deletions
diff --git a/Flow/tests/browser/features/thank.feature b/Flow/tests/browser/features/thank.feature
new file mode 100644
index 00000000..a3479223
--- /dev/null
+++ b/Flow/tests/browser/features/thank.feature
@@ -0,0 +1,23 @@
+@chrome @clean @en.wikipedia.beta.wmflabs.org @firefox @internet_explorer_10 @login @test2.wikipedia.org
+Feature: Thank author of a Flow post
+
+ Scenario: Anon does not see Thank button
+ Given the "Talk:Flow QA" page has a new unmoderated topic created by me
+ And I am on Flow page
+ Then I should not see a Thank button
+
+ @login
+ Scenario: Thank the user
+ Given I am logged in
+ And the most recent topic on "Talk:Flow QA" is written by another user
+ And I am on Flow page
+ And I see a Thank button
+ When I click on the Thank button
+ Then I should see the Thank button be replaced with Thanked button
+
+ @login
+ Scenario: I cannot thank my own post
+ Given I am logged in
+ And the "Talk:Flow QA" page has a new unmoderated topic created by me
+ And I am on Flow page
+ Then I should not see a Thank button