spec/system/sdg_management/goals_spec.rb
require "rails_helper"
describe "Goals" do
before { login_as(create(:sdg_manager).user) }
describe "Index" do
scenario "Visit the index" do
Setting["feature.sdg"] = true
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