mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fixes rebase
This commit is contained in:
committed by
David Cook
parent
9e25893401
commit
6dfef8104d
@@ -414,17 +414,6 @@ RSpec.describe '
|
||||
# we need this assertion here to assure there is enough time to
|
||||
# toggle the variant box and evaluate the following assertion
|
||||
expect(page).to have_content product.name.upcase
|
||||
|
||||
# we need this assertion here to assure there is enough time to
|
||||
# toggle the variant box and evaluate the following assertion
|
||||
expect(page).to have_content product.name
|
||||
|
||||
# iterates between true / false, depending on the test case
|
||||
expectation = expect_message ? :to : :not_to
|
||||
expect(page).public_send(expectation,
|
||||
have_content(%(No variant available for this product
|
||||
(hidden via inventory settings)).squish))
|
||||
end
|
||||
end
|
||||
|
||||
it "doesn't show a warning when going to 'outgoing products' tab" do
|
||||
|
||||
@@ -1652,7 +1652,7 @@ RSpec.describe 'As an enterprise user, I can manage my products', feature: :admi
|
||||
expect {
|
||||
find("button.secondary.condensed.naked.icon-plus").click
|
||||
}.to change{
|
||||
page.all("input[aria-label=Name][placeholder='#{product.name}']", visible: false).count
|
||||
page.all("input[aria-label=Name][placeholder='#{product.name}']", visible: false).count
|
||||
}.from(1).to(2)
|
||||
|
||||
# When I fill out variant details and hit update
|
||||
|
||||
Reference in New Issue
Block a user