diff --git a/spec/features/admin/evaluations_spec.rb b/spec/features/admin/evaluations_spec.rb index 0e1520f3c..876bf3f07 100644 --- a/spec/features/admin/evaluations_spec.rb +++ b/spec/features/admin/evaluations_spec.rb @@ -82,8 +82,8 @@ within '#filters_sidebar_section' do expect(page).to have_css('label', text: 'Criado em') - fill_in 'q_created_at_gteq_datetime', with: 9.months.ago - fill_in 'q_created_at_lteq_datetime', with: 7.months.ago + fill_in 'q_created_at_gteq', with: 9.months.ago + fill_in 'q_created_at_lteq', with: 7.months.ago click_button 'Filtrar' end @@ -114,11 +114,12 @@ end describe 'Actions' do - let!(:evaluation) { create(:evaluation, - :with_answers, - answer_count: 2, - english_level: 'beginner' - )} + let!(:evaluation) do + create(:evaluation, + :with_answers, + answer_count: 2, + english_level: 'beginner') + end before do visit '/admin/evaluations' diff --git a/spec/features/new_admin/evaluations_spec.rb b/spec/features/new_admin/evaluations_spec.rb index 23656a4dd..45589b650 100644 --- a/spec/features/new_admin/evaluations_spec.rb +++ b/spec/features/new_admin/evaluations_spec.rb @@ -78,7 +78,6 @@ it 'shows filtered evaluations' do within '#filters_sidebar_section' do expect(page).to have_css('label', text: 'Criado em') - sleep 5 fill_in 'created_at_start', with: 9.months.ago fill_in 'created_at_end', with: 7.months.ago