summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-08-04 16:38:45 -0500
committerMike Greiling <mike@pixelcog.com>2017-08-04 16:38:45 -0500
commitfbd0280362fdc32bbb9f41fb8780c46248c5d8d2 (patch)
tree0699f162727921f3293154188cb034127aba5262 /spec
parente35199a5aab454322bc9ddce14fe7582793b7635 (diff)
downloadgitlab-ce-fbd0280362fdc32bbb9f41fb8780c46248c5d8d2.tar.gz
fix failing specs due phantomJS scroll position
Diffstat (limited to 'spec')
-rw-r--r--spec/features/issues/issue_sidebar_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/issues/issue_sidebar_spec.rb b/spec/features/issues/issue_sidebar_spec.rb
index 8e22441e0e8..af11b474842 100644
--- a/spec/features/issues/issue_sidebar_spec.rb
+++ b/spec/features/issues/issue_sidebar_spec.rb
@@ -130,8 +130,8 @@ feature 'Issue Sidebar' do
it 'adds new label' do
page.within('.block.labels') do
fill_in 'new_label_name', with: 'wontfix'
- page.find(".suggest-colors a", match: :first).click
- click_button 'Create'
+ page.find('.suggest-colors a', match: :first).trigger('click')
+ page.find('button', text: 'Create').trigger('click')
page.within('.dropdown-page-one') do
expect(page).to have_content 'wontfix'
@@ -142,8 +142,8 @@ feature 'Issue Sidebar' do
it 'shows error message if label title is taken' do
page.within('.block.labels') do
fill_in 'new_label_name', with: label.title
- page.find('.suggest-colors a', match: :first).click
- click_button 'Create'
+ page.find('.suggest-colors a', match: :first).trigger('click')
+ page.find('button', text: 'Create').trigger('click')
page.within('.dropdown-page-two') do
expect(page).to have_content 'Title has already been taken'