summaryrefslogtreecommitdiff
path: root/spec/features/projects/labels
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-05-29 10:25:21 +0100
committerLuke Bennett <lukeeeebennettplus@gmail.com>2018-05-29 10:25:21 +0100
commitc9e4c1760dae5e1916bb5ad22f260b7fd0b58475 (patch)
tree6b338a50eb1b8aeed8071f2d46e9f1e6e6922af3 /spec/features/projects/labels
parentfad343ca5b1fcdd4d01e415f31ee4a9fddb4eb99 (diff)
downloadgitlab-ce-c9e4c1760dae5e1916bb5ad22f260b7fd0b58475.tar.gz
Fix project subscription_spec
Diffstat (limited to 'spec/features/projects/labels')
-rw-r--r--spec/features/projects/labels/subscription_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/features/projects/labels/subscription_spec.rb b/spec/features/projects/labels/subscription_spec.rb
index 70e8d436dcb..d5f5036ec72 100644
--- a/spec/features/projects/labels/subscription_spec.rb
+++ b/spec/features/projects/labels/subscription_spec.rb
@@ -36,7 +36,7 @@ feature 'Labels subscription' do
within "#group_label_#{feature.id}" do
expect(page).not_to have_button 'Unsubscribe'
- click_link_on_dropdown('Group level')
+ click_link_on_dropdown('Subscribe at group level')
expect(page).not_to have_selector('.dropdown-group-label')
expect(page).to have_button 'Unsubscribe'
@@ -45,7 +45,7 @@ feature 'Labels subscription' do
expect(page).to have_selector('.dropdown-group-label')
- click_link_on_dropdown('Project level')
+ click_link_on_dropdown('Subscribe at project level')
expect(page).not_to have_selector('.dropdown-group-label')
expect(page).to have_button 'Unsubscribe'
@@ -67,6 +67,8 @@ feature 'Labels subscription' do
def click_link_on_dropdown(text)
find('.dropdown-group-label').click
+ screenshot_and_open_image
+
page.within('.dropdown-group-label') do
find('a.js-subscribe-button', text: text).click
end