diff options
author | Phil Hughes <me@iamphill.com> | 2016-03-14 16:49:53 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-03-14 16:49:53 +0300 |
commit | 35aca2d5fdd8d59e2e8ed4e6ce28838ea5bc7f86 (patch) | |
tree | fcd3931bc8bce07ba59974806388c5255ec63973 /features/steps/dashboard/merge_requests.rb | |
parent | 37ba5a12b515172b76d28e112ab9899823163717 (diff) |
Fixed tests for MR & issue filters
Diffstat (limited to 'features/steps/dashboard/merge_requests.rb')
-rw-r--r-- | features/steps/dashboard/merge_requests.rb | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/features/steps/dashboard/merge_requests.rb b/features/steps/dashboard/merge_requests.rb index 7fc0e444e86..a2adc87f8ef 100644 --- a/features/steps/dashboard/merge_requests.rb +++ b/features/steps/dashboard/merge_requests.rb @@ -40,22 +40,16 @@ class Spinach::Features::DashboardMergeRequests < Spinach::FeatureSteps end step 'I click "Authored by me" link' do - execute_script('$("#assignee_id").val("")') - execute_script('$(".js-user-search").first().click()') - sleep 0.5 - execute_script("$('.dropdown-content li:contains(\"#{current_user.to_reference}\") a').click()") - sleep 2 + find("#assignee_id").set("") + find(".js-author-search", match: :first).click + find(".dropdown-menu-author li a", match: :first, text: current_user.to_reference).click end step 'I click "All" link' do - execute_script('$(".js-user-search").first().click()') - sleep 0.5 - execute_script('$(".js-user-search").first().parent().find("li a").first().click()') - sleep 2 - execute_script('$(".js-user-search").eq(1).click()') - sleep 0.5 - execute_script('$(".js-user-search").eq(1).parent().find("li a").first().click()') - sleep 2 + find(".js-author-search").click + find(".dropdown-menu-author li a", match: :first).click + find(".js-assignee-search").click + find(".dropdown-menu-assignee li a", match: :first).click end def should_see(merge_request) |