Browse Source

feat: update tests

pull/1791/head
natdeanlewissoftwire 3 years ago
parent
commit
4681daa688
  1. 2
      spec/features/organisation_spec.rb

2
spec/features/organisation_spec.rb

@ -227,7 +227,7 @@ RSpec.describe "User Features" do
end end
check("years-2021-field") check("years-2021-field")
click_button("Apply filters") click_button("Apply filters")
expect(page).to have_current_path("/organisations/#{org_id}/sales-logs?years[]=&years[]=2021&status[]=&assigned_to=all&user=&owning_organisation_select=all&owning_organisation=") expect(page).to have_current_path("/organisations/#{org_id}/sales-logs?years[]=&years[]=2021&status[]=&assigned_to=all&user=&owning_organisation_select=all&owning_organisation=&managing_organisation_select=all&managing_organisation=")
expect(page).not_to have_link first_log.id.to_s, href: "/sales-logs/#{first_log.id}" expect(page).not_to have_link first_log.id.to_s, href: "/sales-logs/#{first_log.id}"
end end
end end

Loading…
Cancel
Save