consul/consul

View on GitHub
spec/system/sdg_management/goals_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage
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