Change spec to no longer look for query within title

pull/6214/head
Oliver Günther 7 years ago
parent d357e184e6
commit c91308f77e
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 7
      spec/features/work_packages/work_packages_page.rb

@ -102,10 +102,9 @@ class WorkPackagesPage
end end
def select_query_from_dropdown(query) def select_query_from_dropdown(query)
within('.title-container') do find('.wp-table--query-menu-link').click
find('a').click expect(page).to have_selector('.ui-menu-item-wrapper', text: query.name, wait: 10)
find('li', text: query.name).click find('.ui-menu-item-wrapper', text: query.name).click
end
end end
def expect_query(query) def expect_query(query)

Loading…
Cancel
Save