2018-11-11 00:06:20 +02:00
|
|
|
Capybara.default_max_wait_time = 5
|
2019-04-28 21:10:54 +03:00
|
|
|
Capybara.asset_host = "http://localhost:3000"
|
2018-11-11 00:06:20 +02:00
|
|
|
|
2019-04-28 21:10:54 +03:00
|
|
|
Capybara.server = :puma, {Silent: true}
|
2019-01-08 20:26:02 +02:00
|
|
|
Capybara.javascript_driver = :selenium_chrome_headless
|
2018-11-11 00:06:20 +02:00
|
|
|
|
2019-01-08 20:26:02 +02:00
|
|
|
# RSpec.configure do |config|
|
|
|
|
# config.before(:each, type: :feature, js: true) do
|
|
|
|
# driven_by :selenium, using: :headless_chrome, screen_size: [1920, 1080]
|
|
|
|
# end
|
|
|
|
# end
|
2018-11-11 00:06:20 +02:00
|
|
|
|
|
|
|
RSpec.configure do |config|
|
2018-11-11 00:07:00 +02:00
|
|
|
config.include FeatureHelpers, type: :feature
|
|
|
|
|
2018-11-11 00:06:20 +02:00
|
|
|
config.alias_example_group_to :feature, capybara_feature: true, type: :feature
|
|
|
|
config.alias_example_group_to :xfeature, capybara_feature: true, type: :feature, skip: "Temporarily disabled with xfeature"
|
|
|
|
config.alias_example_group_to :ffeature, capybara_feature: true, type: :feature, focus: true
|
|
|
|
config.alias_example_to :scenario
|
|
|
|
config.alias_example_to :xscenario, skip: "Temporarily disabled with xscenario"
|
|
|
|
config.alias_example_to :fscenario, focus: true
|
|
|
|
end
|