mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix intermittent failures in track tests
Boostrap's off-screen rendering was interfering with finding links in the page layout. The included approach should be bulletproof.
This commit is contained in:
parent
78eb58c93e
commit
d95a786d9f
2 changed files with 17 additions and 4 deletions
|
|
@ -59,7 +59,7 @@ RSpec.configure do |config|
|
|||
Capybara.javascript_driver = :poltergeist
|
||||
|
||||
Capybara.register_driver :poltergeist do |app|
|
||||
Capybara::Poltergeist::Driver.new(app, phantomjs: Phantomjs.path, js_errors: false)
|
||||
Capybara::Poltergeist::Driver.new(app, phantomjs: Phantomjs.path, js_errors: false, window_size: [1920, 1080])
|
||||
end
|
||||
|
||||
# Includes helpers and connect them to specific types of tests
|
||||
|
|
@ -82,6 +82,14 @@ RSpec.configure do |config|
|
|||
# Types of tests (controller, feature, model) will
|
||||
# be inferred from subfolder name
|
||||
config.infer_spec_type_from_file_location!
|
||||
|
||||
# Enable this if you like to see what you're debugging
|
||||
# config.after(:example) do |example|
|
||||
# if example.exception
|
||||
# save_and_open_screenshot
|
||||
# save_and_open_page
|
||||
# end
|
||||
# end
|
||||
end
|
||||
|
||||
OmniAuth.config.test_mode = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue