Skip to content

Commit

Permalink
Update specs to match new page text
Browse files Browse the repository at this point in the history
  • Loading branch information
peteryates committed Jan 23, 2025
1 parent 279c1cd commit 2866b50
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ def when_i_enter_the_finish_date
end

def and_i_enter_a_terms_value_of(number)
teacher_name = Teachers::Name.new(teacher).full_name
label = "How many terms of induction did #{teacher_name} spend with you?"
label = "How many terms of induction did they spend with you?"

page.get_by_label(label).fill(number.to_s)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ def when_i_enter_the_finish_date
end

def and_i_enter_a_terms_value_of(number)
teacher_name = Teachers::Name.new(teacher).full_name
label = "How many terms of induction did #{teacher_name} spend with you?"
label = "How many terms of induction did they spend with you?"

page.get_by_label(label).fill(number.to_s)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
get("/appropriate-body/teachers/#{teacher.trn}/extensions/new")

expect(response).to be_successful
expect(response.body).to include('Add an Extension to an ECT's induction')
expect(response.body).to include('Enter number of terms')
end
end

Expand Down

0 comments on commit 2866b50

Please sign in to comment.