Skip to content

Commit

Permalink
fix: company select test
Browse files Browse the repository at this point in the history
  • Loading branch information
martintomas committed Oct 29, 2024
1 parent ae54ebb commit a692559
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/system/public/tpi/company_selector_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

describe 'Company Selector', type: 'system', site: 'tpi' do
before(:each) do
visit '/sectors'
visit '/corporates'
end

it 'filters by company' do
Expand All @@ -18,6 +18,6 @@
find('.dropdown-selector__header').click
find('input.dropdown-selector__input').set('Cement')
find('input.dropdown-selector__input').native.send_keys(:return)
expect(page).to have_current_path('/sectors/cement')
expect(page).to have_current_path('/corporates/cement')
end
end

0 comments on commit a692559

Please sign in to comment.