mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-06 07:29:16 +00:00
Merge pull request #9635 from mkllnk/stable-specs
Remove retries from test runs
This commit is contained in:
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@@ -9,7 +9,6 @@ env:
|
||||
DISABLE_KNAPSACK: true
|
||||
TIMEZONE: UTC
|
||||
COVERAGE: true
|
||||
RSPEC_RETRY_RETRY_COUNT: 3
|
||||
RAILS_ENV: test
|
||||
|
||||
permissions:
|
||||
|
||||
1
Gemfile
1
Gemfile
@@ -150,7 +150,6 @@ group :test, :development do
|
||||
gem 'knapsack'
|
||||
gem 'letter_opener', '>= 1.4.1'
|
||||
gem 'rspec-rails', ">= 3.5.2"
|
||||
gem 'rspec-retry'
|
||||
gem 'rswag-specs'
|
||||
gem 'shoulda-matchers'
|
||||
gem 'timecop'
|
||||
|
||||
@@ -547,8 +547,6 @@ GEM
|
||||
rspec-expectations (~> 3.10)
|
||||
rspec-mocks (~> 3.10)
|
||||
rspec-support (~> 3.10)
|
||||
rspec-retry (0.6.2)
|
||||
rspec-core (> 3.3)
|
||||
rspec-support (3.10.3)
|
||||
rswag-api (2.6.0)
|
||||
railties (>= 3.1, < 7.1)
|
||||
@@ -798,7 +796,6 @@ DEPENDENCIES
|
||||
roadie-rails
|
||||
roo
|
||||
rspec-rails (>= 3.5.2)
|
||||
rspec-retry
|
||||
rswag-api
|
||||
rswag-specs
|
||||
rswag-ui
|
||||
|
||||
@@ -12,7 +12,6 @@ require 'view_component/test_helpers'
|
||||
require_relative "../config/environment"
|
||||
require 'rspec/rails'
|
||||
require 'capybara'
|
||||
require 'rspec/retry'
|
||||
require 'paper_trail/frameworks/rspec'
|
||||
require "factory_bot_rails"
|
||||
|
||||
@@ -59,11 +58,6 @@ RSpec.configure do |config|
|
||||
# rspec-rails.
|
||||
config.infer_base_class_for_anonymous_controllers = false
|
||||
|
||||
# Show retries in test output
|
||||
config.verbose_retry = true
|
||||
# Set maximum retry count
|
||||
config.default_retry_count = 0
|
||||
|
||||
# Force colored output, whether or not the output is a TTY
|
||||
config.color_mode = :on
|
||||
|
||||
|
||||
@@ -609,11 +609,14 @@ describe '
|
||||
end
|
||||
|
||||
it "shows a dialog and keeps changes when confirm dialog is rejected" do
|
||||
pending "https://github.com/openfoodfoundation/openfoodnetwork/issues/9757"
|
||||
|
||||
page.driver.dismiss_modal :confirm,
|
||||
text: "Unsaved changes exist and will be lost if you continue." do
|
||||
find("input.datepicker").click
|
||||
select_dates_from_daterangepicker(today - 9.days, today)
|
||||
end
|
||||
sleep 2
|
||||
expect(page).to have_selector "#save-bar"
|
||||
within("tr#li_#{li2.id} td.quantity") do
|
||||
expect(page).to have_selector "input[name=quantity].ng-dirty"
|
||||
|
||||
Reference in New Issue
Block a user