summaryrefslogtreecommitdiff
path: root/features/steps/project/issues
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-03-16 17:20:17 +0200
committerValery Sizov <vsv2711@gmail.com>2015-03-16 21:38:41 +0200
commit1b437ec3498bc544dbd1b252f5c755e9073407fd (patch)
treee3c0cea66260a2b65d21b660ebd4b042a6b0c80c /features/steps/project/issues
parentf53683e67fa0db7b13d0dee977bc21206af7e0fd (diff)
downloadgitlab-ce-1b437ec3498bc544dbd1b252f5c755e9073407fd.tar.gz
tests
Diffstat (limited to 'features/steps/project/issues')
-rw-r--r--features/steps/project/issues/issues.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/features/steps/project/issues/issues.rb b/features/steps/project/issues/issues.rb
index 6d72c93ad13..cc0d6033a2b 100644
--- a/features/steps/project/issues/issues.rb
+++ b/features/steps/project/issues/issues.rb
@@ -18,10 +18,23 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
page.should_not have_content "Tweet control"
end
+ step 'I should see that I am subscribed' do
+ find(".sub_status").text.should == "subscribed"
+ end
+
+ step 'I should see that I am unsubscribed' do
+ sleep 0.2
+ find(".sub_status").text.should == "unsubscribed"
+ end
+
step 'I click link "Closed"' do
click_link "Closed"
end
+ step 'I click button "Unsubscribe"' do
+ click_on "Unsubscribe"
+ end
+
step 'I should see "Release 0.3" in issues' do
page.should have_content "Release 0.3"
end