Add cards to SDG homepage

This commit is contained in:
Javi Martín
2021-01-13 14:44:55 +01:00
parent 5907ddf884
commit c3e60ff514
7 changed files with 37 additions and 4 deletions

View File

@@ -32,6 +32,17 @@ describe "SDG Goals", :js do
expect(page).to have_current_path sdg_goal_path(7)
end
scenario "has cards for phases" do
create(:widget_card, cardable: SDG::Phase["planning"], title: "Planning card")
visit sdg_goals_path
within "#sdg_phase_planning" do
expect(page).to have_css "header", exact_text: "Planning"
expect(page).to have_content "PLANNING CARD"
end
end
end
describe "Show" do