@ -42,6 +42,10 @@ describe 'Work package index' do
work_packages_page.visit_index
end
before :each do
work_packages_page.click_toolbar_button 'Filter'
describe 'Filter fieldset', js: true do
it_behaves_like 'toggable fieldset initially expanded' do
let(:fieldset_name) { 'Add filter' }
@ -50,6 +50,10 @@ class WorkPackagesPage
find('#main-menu .work-packages').click
def click_toolbar_button(button)
find('.toolbar-container').click_button button
def select_query(query)
visit query_path(query);