diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-03-15 23:24:06 +0100 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-03-15 23:24:06 +0100 |
commit | ecfa6cd75bc0f1e003928f07f30446003a0f9875 (patch) | |
tree | 6e4212708c362c0d4e086068fe6de9ead695bf80 /features/steps/project/labels.rb | |
parent | 7ae573c75ac51413c04249f77ed8ca4e144b7549 (diff) | |
parent | a80b49ba1ac8ab54fd130ed889ecfbd0dccf81af (diff) | |
download | gitlab-ce-ecfa6cd75bc0f1e003928f07f30446003a0f9875.tar.gz |
Merge branch 'master' into git-2-7-3
Diffstat (limited to 'features/steps/project/labels.rb')
-rw-r--r-- | features/steps/project/labels.rb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/features/steps/project/labels.rb b/features/steps/project/labels.rb new file mode 100644 index 00000000000..17944527e3a --- /dev/null +++ b/features/steps/project/labels.rb @@ -0,0 +1,34 @@ +class Spinach::Features::Labels < Spinach::FeatureSteps + include SharedAuthentication + include SharedIssuable + include SharedProject + include SharedNote + include SharedPaths + include SharedMarkdown + + step 'And I visit project "Shop" labels page' do + visit namespace_project_labels_path(project.namespace, project) + end + + step 'I should see that I am subscribed to the "bug" label' do + expect(subscribe_button).to have_content 'Unsubscribe' + end + + step 'I should see that I am not subscribed to the "bug" label' do + expect(subscribe_button).to have_content 'Subscribe' + end + + step 'I click button "Unsubscribe" for the "bug" label' do + subscribe_button.click + end + + step 'I click button "Subscribe" for the "bug" label' do + subscribe_button.click + end + + private + + def subscribe_button + first('.subscribe-button span') + end +end |