diff options
author | Achilleas Pipinellis <axilleas@axilleas.me> | 2016-03-19 14:43:52 +0200 |
---|---|---|
committer | Achilleas Pipinellis <axilleas@axilleas.me> | 2016-03-19 14:43:52 +0200 |
commit | c8265f13ca0ad7d1bd04a699b61b3aa2f3d1e4e7 (patch) | |
tree | a646a24601d8164946c249fbc9cf8482d4b5dabf /features/steps/project/labels.rb | |
parent | 01b70c6c297c8be013b59c68a0c6b93318dcd021 (diff) | |
parent | 4f0302f00ef0c51b67b73429ace0a632971b7f1b (diff) | |
download | gitlab-ce-c8265f13ca0ad7d1bd04a699b61b3aa2f3d1e4e7.tar.gz |
Merge branch 'master' into gitlab_intro_docs
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 |