Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Jul 30, 2024
1 parent 4b34270 commit fe00de9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spec/features/cv_export_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
it 'should display 2 export buttons' do
visit person_path(people(:bob))

expect(page.all('a', text: 'Export').count).to eql(2)
expect(page.all('a', text: 'Export').count).to eql(1)
end

it 'should display range after switch was clicked' do
Expand Down
4 changes: 4 additions & 0 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
self.class.fixtures :all
end

config.before(:each, js: true) do
Capybara.page.current_window.resize_to(1920, 1080)
end

if Bullet.enable?
config.before(:each) do
Bullet.start_request
Expand Down

0 comments on commit fe00de9

Please sign in to comment.