This file contains hidden or 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
| require "sidekiq/api" | |
| require "rails_helper" | |
| feature "List of queues in Sidekiq." do | |
| scenario "should equal to given array" do | |
| stats = Sidekiq::Stats.new | |
| expect(stats.queues.keys).to eq %w(default queue_1 queue_2) | |
| end | |
| end |
This file contains hidden or 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
| - run: | |
| name: run feature tests | |
| command: | | |
| TEST_FILES="$(circleci tests glob "spec/features/*_spec.rb" | circleci tests split --split-by=timings)" | |
| echo Tests run on Google Chrome version: `google-chrome --version` | |
| bundle exec rspec --format documentation \ | |
| --format RspecJunitFormatter \ | |
| --out /tmp/test-results/feature_rspec.xml \ | |
| $TEST_FILES || bundle exec rspec --format documentation \ | |
| --format RspecJunitFormatter \ |
This file contains hidden or 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
| module WaitHelper | |
| def wait_for_ajax | |
| Timeout.timeout(60) do | |
| sleep(0.7) until Capybara.page.evaluate_script('jQuery.active').zero? | |
| end | |
| rescue Selenium::WebDriver::Error::UnknownError | |
| sleep(1) | |
| end | |
| def selenium_wait(seconds = 60) |
This file contains hidden or 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
| git remote update origin --prune | |
| git branch -vv | grep ': gone]'| grep -v "\*" | awk '{ print $1; }' | xargs -r git branch -d |
This file contains hidden or 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
| # Typically this faile named capybara.rb and needed for browser configuration. | |
| # This file related to capybara 3.22.0 and webdriver 3.8.0 | |
| require 'capybara/rspec' | |
| require 'capybara-screenshot/rspec' | |
| require 'webdrivers' | |
| Capybara.register_driver :context_selenium_chrome do |app| | |
| chrome_args = %w[window-size=1920,1080] | |