attempt to fix flickering spec

pull/1945/head
Jens Ulferts 10 years ago
parent 5d87c8a3fb
commit a80e20cb08
  1. 5
      spec/features/work_packages/select_query_spec.rb

@ -36,7 +36,7 @@ describe 'Query selection', :type => :feature do
member_through_role: role }
let(:filter_name) { 'done_ratio' }
let(:i18n_filter_name) { WorkPackage.human_attribute_name(filter_name).to_sym }
let(:i18n_filter_name) { WorkPackage.human_attribute_name(filter_name.to_sym) }
let!(:query) do
query = FactoryGirl.build(:query, project: project, is_public: true)
query.filters = [Queries::WorkPackages::Filter.new(filter_name, operator: ">=", values: [10]) ]
@ -52,6 +52,9 @@ describe 'Query selection', :type => :feature do
context 'when a query is selected' do
before do
work_packages_page.select_query query
# ensure the page is loaded before expecting anything
find('.filter-fields select option', text: /\AAssignee\Z/,
visible: false)
end
it 'should show the filter', js: true do

Loading…
Cancel
Save