Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-05-29 12:25:21 +0300
committerLuke Bennett <lukeeeebennettplus@gmail.com>2018-05-29 12:25:21 +0300
commitc9e4c1760dae5e1916bb5ad22f260b7fd0b58475 (patch)
tree6b338a50eb1b8aeed8071f2d46e9f1e6e6922af3 /spec/features/projects/labels
parentfad343ca5b1fcdd4d01e415f31ee4a9fddb4eb99 (diff)
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