Merge pull request #5688 from consuldemocracy/proposal_ui_tests

Make "show proposal" tests pass on GitHub Actions
This commit is contained in:
Javi Martín
2024-09-17 15:57:40 +02:00
committed by GitHub
2 changed files with 1 additions and 2 deletions

View File

@@ -3,7 +3,6 @@ FactoryBot.define do
sequence(:title) { |n| "Proposal #{n} title" } sequence(:title) { |n| "Proposal #{n} title" }
sequence(:summary) { |n| "In summary, what we want is... #{n}" } sequence(:summary) { |n| "In summary, what we want is... #{n}" }
description { "Proposal description" } description { "Proposal description" }
video_url { "https://youtu.be/nhuNb0XtRhQ" }
responsible_name { "John Snow" } responsible_name { "John Snow" }
terms_of_service { "1" } terms_of_service { "1" }
published_at { Time.current } published_at { Time.current }

View File

@@ -126,7 +126,7 @@ RSpec.configure do |config|
config.before(:each, :small_window) do config.before(:each, :small_window) do
@window_size = Capybara.current_window.size @window_size = Capybara.current_window.size
Capybara.current_window.resize_to(639, 479) Capybara.current_window.resize_to(320, 640)
end end
config.after(:each, :small_window) do config.after(:each, :small_window) do