Skip to content

Commit

Permalink
Fix pipeline after decidim#11449 (decidim#11455)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecslupu authored Aug 8, 2023
1 parent 177e03a commit cdae401
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions decidim-accountability/spec/system/explore_results_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@
before do
result.link_resources(proposals, "included_proposals")
visit current_path
select_tab("Included proposals")
end

it "shows the tab" do
expect(page).to have_content("Included proposals")
end

it "shows related proposals" do
Expand Down Expand Up @@ -311,18 +314,19 @@
before do
result.link_resources(projects, "included_projects")
visit current_path
select_tab("Included projects")
end

it "shows the tab" do
expect(page).to have_content("Included projects")
end

it "shows related projects" do
click_button "Included projects"
projects.each do |project|
expect(page).to have_content(translated(project.title))
end
end

it "the result is mentioned in the project page" do
click_button "Included projects"
click_link translated(project.title)
expect(page).to have_i18n_content(result.title)
end
Expand All @@ -338,11 +342,13 @@
before do
result.link_resources(meetings, "meetings_through_proposals")
visit current_path
select_tab("Included meetings")
end

it "shows the tab" do
expect(page).to have_content("Included meetings")
end

it "shows related meetings" do
click_button "Included meetings"
meetings.each do |meeting|
expect(page).to have_i18n_content(meeting.title)
end
Expand Down

0 comments on commit cdae401

Please sign in to comment.