Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
fixing broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
nehamand committed Dec 27, 2023
1 parent 0007020 commit 9c496bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
15 changes: 8 additions & 7 deletions spec/features/admin/evaluations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down
1 change: 0 additions & 1 deletion spec/features/new_admin/evaluations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c496bc

Please sign in to comment.