Files
nairobi/spec/system/sdg_management/goals_spec.rb
2020-12-02 12:38:03 +01:00

21 lines
467 B
Ruby

require "rails_helper"
describe "Goals", :js do
before { login_as(create(:administrator).user) }
describe "Index" do
scenario "Visit the index" do
SDG::Goal.where(code: "1").first_or_create!
visit sdg_management_root_path
within("#side_menu") do
click_link "Goals and Targets"
end
expect(page).to have_title "SDG content - Goals"
within("table") { expect(page).to have_content "No Poverty" }
end
end
end