clarion/spec/support/capybara.rb

25 lines
942 B
Ruby
Raw Permalink Normal View History

2019-04-28 22:06:19 +03:00
require_relative 'feature_helpers'
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}
Capybara.javascript_driver = :selenium_chrome_headless
2018-11-11 00:06:20 +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