Browse Source

fix progressive total field spec offences

pull/264/head
Kat 3 years ago
parent
commit
85e8493fb4
  1. 4
      spec/features/form/progressive_total_field_spec.rb

4
spec/features/form/progressive_total_field_spec.rb

@ -21,12 +21,12 @@ RSpec.describe "Accessible Automcomplete" do
it "does not show when js is not enabled" do
visit("/logs/#{case_log.id}/rent")
expect(page).to have_selector("#tcharge_div", visible: false)
expect(page).to have_selector("#tcharge_div", visible: :all)
end
it "does show when js is enabled and calculates the total", js: true do
visit("/logs/#{case_log.id}/rent")
expect(page).to have_selector("#tcharge_div", visible: true)
expect(page).to have_selector("#tcharge_div")
fill_in("case-log-brent-field", with: 5)
expect(find("#case-log-tcharge-field").value).to eq("5.00")
fill_in("case-log-pscharge-field", with: 3)

Loading…
Cancel
Save