Skip to content

Commit

Permalink
Mark most common flaky specs
Browse files Browse the repository at this point in the history
This will trigger a CI when they fail
  • Loading branch information
kennyadsl committed Jan 31, 2023
1 parent f1f81a2 commit d96e2d7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ module Admin
expect(assigns(:rma_return_items)).to include(rma_return_item)
end

it "loads the correct return authorization reasons" do
it "loads the correct return authorization reasons", :flaky do
expect(assigns(:reasons)).to match_array([return_reason_1, return_reason_2, return_reason_3])
end
end
Expand Down
1 change: 1 addition & 0 deletions backend/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
require 'spree/testing_support/authorization_helpers'
require 'spree/testing_support/preferences'
require 'spree/testing_support/controller_requests'
require 'spree/testing_support/flaky'
require 'spree/testing_support/flash'
require 'spree/testing_support/url_helpers'
require 'spree/testing_support/order_walkthrough'
Expand Down
2 changes: 1 addition & 1 deletion core/spec/models/spree/order_inventory_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
end

context 'when there is not enough availability at any stock location' do
it 'falls-back selecting first non-shipped shipment that leaves from same stock_location' do
it 'falls-back selecting first non-shipped shipment that leaves from same stock_location', :flaky do
shipment = subject.send(:determine_target_shipment, 1)
shipment.reload

Expand Down
1 change: 1 addition & 0 deletions core/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

require 'rspec/core'

require 'spree/testing_support/flaky'
require 'spree/testing_support/partial_double_verification'
require 'spree/testing_support/silence_deprecations'
require 'spree/testing_support/preferences'
Expand Down

0 comments on commit d96e2d7

Please sign in to comment.