Remove unnecessary alert on legislation processes

This commit is contained in:
decabeza
2022-04-30 18:18:01 +02:00
committed by Javi Martín
parent b74b63cb72
commit 00f0c4410d
5 changed files with 0 additions and 16 deletions

View File

@@ -20,14 +20,6 @@
<% end %>
</div>
</div>
<% if @process.questions.any? %>
<div class="small-12 medium-3 column">
<div class="callout success">
<p><%= t("legislation.processes.debate.participate") %></p>
</div>
</div>
<% end %>
</div>
</div>
</div>

View File

@@ -54,7 +54,6 @@ en:
winners: Selected
debate:
empty_questions: There aren't any questions
participate: Participate in the debate
index:
filter: Filter
filters:

View File

@@ -54,7 +54,6 @@ es:
winners: Seleccionadas
debate:
empty_questions: No hay preguntas
participate: Realiza tus aportaciones al debate previo participando en los siguientes temas.
index:
filter: Filtro
filters:

View File

@@ -255,7 +255,6 @@ describe "Legislation" do
end
expect(page).to have_content("This is the process homepage")
expect(page).not_to have_content("Participate in the debate")
end
scenario "disabled", :with_frozen_time do
@@ -282,7 +281,6 @@ describe "Legislation" do
visit legislation_process_path(process)
expect(page).to have_content("This phase is not open yet")
expect(page).not_to have_content("Participate in the debate")
end
scenario "open without questions" do
@@ -290,7 +288,6 @@ describe "Legislation" do
visit legislation_process_path(process)
expect(page).not_to have_content("Participate in the debate")
expect(page).not_to have_content("This phase is not open yet")
end
@@ -303,7 +300,6 @@ describe "Legislation" do
expect(page).to have_content("Question 1")
expect(page).to have_content("Question 2")
expect(page).to have_content("Participate in the debate")
expect(page).not_to have_content("This phase is not open yet")
end

View File

@@ -17,8 +17,6 @@ describe "Legislation" do
scenario "shows question list" do
visit legislation_process_path(process)
expect(page).to have_content("Participate in the debate")
expect(page).to have_content("Question 1")
expect(page).to have_content("Question 2")
expect(page).to have_content("Question 3")