summaryrefslogtreecommitdiff
path: root/features/steps/dashboard
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-03-13 17:22:10 -0700
committerStan Hu <stanhu@gmail.com>2016-03-13 17:22:10 -0700
commitab0af56201413fea81cf42367671ec9a845315c7 (patch)
treef21f18fbc90bd8fb361a8f600503a1eb047de536 /features/steps/dashboard
parent30ab290b2829b84f4abb9d18f9b907bb9212f445 (diff)
downloadgitlab-ce-ab0af56201413fea81cf42367671ec9a845315c7.tar.gz
Use Capybara find methods and remove sleeps in feature specs in "All Issues" filterimprove-issues-filter-all-spec
Diffstat (limited to 'features/steps/dashboard')
-rw-r--r--features/steps/dashboard/issues.rb13
1 files changed, 5 insertions, 8 deletions
diff --git a/features/steps/dashboard/issues.rb b/features/steps/dashboard/issues.rb
index d723300f485..3072c790a4a 100644
--- a/features/steps/dashboard/issues.rb
+++ b/features/steps/dashboard/issues.rb
@@ -44,14 +44,11 @@ class Spinach::Features::DashboardIssues < Spinach::FeatureSteps
end
step 'I click "All" link' do
- execute_script('$(".js-user-search").first().click()')
- sleep 1
- execute_script('$(".js-user-search").first().parent().find("li a").first().click()')
- sleep 1
- execute_script('$(".js-user-search").eq(1).click()')
- sleep 1
- execute_script('$(".js-user-search").eq(1).parent().find("li a").first().click()')
- sleep 1
+ find('.js-author-search').click
+ find('.dropdown-menu-user-full-name', match: :first).click
+
+ find('.js-assignee-search').click
+ find('.dropdown-menu-user-full-name', match: :first).click
end
def should_see(issue)