mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
11068: fix specs
This commit is contained in:
@@ -12,7 +12,6 @@ class ConfirmModalComponent < ModalComponent
|
||||
confirm_button_class: :primary,
|
||||
confirm_button_text: I18n.t('js.admin.modals.confirm'),
|
||||
cancel_button_text: I18n.t('js.admin.modals.cancel'),
|
||||
confirm_reflex_data: {},
|
||||
actions_alignment_class: 'justify-space-around'
|
||||
)
|
||||
super(id:, close_button: true)
|
||||
@@ -32,5 +31,4 @@ class ConfirmModalComponent < ModalComponent
|
||||
def close_button_class
|
||||
"secondary"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -412,7 +412,7 @@ describe 'As an admin, I can see the new product page', feature: :admin_style_v3
|
||||
|
||||
describe "Deleting Feature" do
|
||||
let!(:product_a) { create(:simple_product, name: "Apples", sku: "APL-00") }
|
||||
let(:delete_option_selector) { "p[data-controller='modal-link'].delete" }
|
||||
let(:delete_option_selector) { "p[data-controller='modal-link product-actions'].delete" }
|
||||
let(:product_selector) { row_containing_name("Apples") }
|
||||
let(:variant_selector) { row_containing_name("Medium box") }
|
||||
let(:default_variant_selector) { "tr:has(input[aria-label=Price][value='#{product_a.price}'])" }
|
||||
|
||||
Reference in New Issue
Block a user