Fix failing scenario related to Headless Chrome window-size flag
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user