-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5167 from ChrisBr/bootstrap/ci
Implement feature test suite for bootstrap theming
- Loading branch information
Showing
9 changed files
with
72 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module FeaturesBootstrap | ||
def skip_if_bootstrap | ||
msg = 'The feature tests are executed with BOOTSTRAP enabled, therefore we skip this test.' | ||
skip(msg) if ENV['BOOTSTRAP'].present? | ||
end | ||
end | ||
|
||
RSpec.configure do |c| | ||
c.include FeaturesBootstrap, type: :feature | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
require 'rspec/retry' | ||
RSpec.configure do |config| | ||
# show retry status in spec process | ||
config.verbose_retry = true | ||
# show exception that triggers a retry if verbose_retry is set to true | ||
config.display_try_failure_messages = true | ||
|
||
# run retry only on features | ||
config.around :each, :js do |ex| | ||
ex.run_with_retry retry: 3 | ||
end | ||
|
||
# callback to be run between retries | ||
config.retry_callback = proc do |ex| | ||
# run some additional clean up task - can be filtered by example metadata | ||
if ex.metadata[:js] | ||
Capybara.reset! | ||
end | ||
end | ||
end |