Skip to content

Commit

Permalink
Fixing tests administer opportunities failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Lees committed Nov 23, 2023
1 parent 151dac2 commit 35a0715
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions spec/features/users_can_apply_for_opportunities_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,10 @@ def fill_in_form_as_individual
end
if has_field?('enquiry_company_url')
fill_in 'Your business web address (optional)', with: Faker::Internet.url
select Sector.all.sample.name, from: "Which industry is your company in?"
select 'Not yet', from: 'enquiry_existing_exporter'
fill_in :enquiry_company_explanation, with: Faker::Company.bs
end
select Sector.all.sample.name, from: "Which industry is your company in?"
select 'Not yet', from: 'enquiry_existing_exporter'
fill_in :enquiry_company_explanation, with: Faker::Company.bs
end

def fill_in_form_as_limited_company
Expand All @@ -342,13 +342,12 @@ def fill_in_form_as_limited_company
fill_in 'Trading address', with: Faker::Address.postcode
fill_in 'Trading post code', with: Faker::Address.postcode
end

if has_field?('enquiry_company_url')
fill_in 'Your business web address (optional)', with: Faker::Internet.url
select Sector.all.sample.name, from: "Which industry is your company in?"
select 'Not yet', from: 'enquiry_existing_exporter'
fill_in :enquiry_company_explanation, with: Faker::Company.bs
end
select Sector.all.sample.name, from: "Which industry is your company in?"
select 'Not yet', from: 'enquiry_existing_exporter'
fill_in :enquiry_company_explanation, with: Faker::Company.bs
end

def apply_to_opportunity(opportunity)
Expand Down

0 comments on commit 35a0715

Please sign in to comment.