Fix failing scenario related to Headless Chrome window-size flag

This commit is contained in:
Angel Perez
2018-03-09 13:25:04 -04:00
parent b3ce674ffc
commit eb2926ab42
2 changed files with 2 additions and 4 deletions

View File

@@ -266,12 +266,10 @@ feature 'Admin budgets' do
click_button 'Save heading' click_button 'Save heading'
end end
expect(page).not_to have_content 'This group has no assigned heading.'
visit admin_budget_path(budget) visit admin_budget_path(budget)
within("#budget_group_#{group.id}") do within("#budget_group_#{group.id}") do
expect(page).not_to have_content 'This group has no assigned heading.' expect(page).not_to have_content 'This group has no assigned heading.'
expect(page).to have_content 'District 9 reconstruction' expect(page).to have_content 'District 9 reconstruction'
expect(page).to have_content '€6,785' expect(page).to have_content '€6,785'
expect(page).to have_content '100500' expect(page).to have_content '100500'

View File

@@ -32,7 +32,7 @@ end
Capybara.register_driver :headless_chrome do |app| Capybara.register_driver :headless_chrome do |app|
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome( capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
chromeOptions: { args: %w(headless disable-gpu) } chromeOptions: { args: %w(headless window-size=1200,600) }
) )
Capybara::Selenium::Driver.new( Capybara::Selenium::Driver.new(