mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Removes tests on edit action, under the Delete section
This commit is contained in:
@@ -1196,9 +1196,6 @@ RSpec.describe 'As an enterprise user, I can manage my products', feature: :admi
|
||||
let(:default_variant_selector) {
|
||||
"tr:has(input[aria-label=Price][value='#{product_a.price}'])"
|
||||
}
|
||||
let(:link_edit_variant) {
|
||||
"/admin/products/#{Spree::Product.first.id}/variants/#{Spree::Variant.first.id}/edit"
|
||||
}
|
||||
|
||||
describe "Actions columns (delete)" do
|
||||
before do
|
||||
@@ -1217,7 +1214,6 @@ RSpec.describe 'As an enterprise user, I can manage my products', feature: :admi
|
||||
# to select the default variant
|
||||
within default_variant_selector do
|
||||
page.find(".vertical-ellipsis-menu").click
|
||||
expect(page).to have_link "Edit", href: link_edit_variant
|
||||
expect(page).not_to have_css(delete_option_selector)
|
||||
end
|
||||
end
|
||||
@@ -1236,14 +1232,12 @@ RSpec.describe 'As an enterprise user, I can manage my products', feature: :admi
|
||||
# to select the default variant
|
||||
within default_variant_selector do
|
||||
page.find(".vertical-ellipsis-menu").click
|
||||
expect(page).to have_link "Edit", href: link_edit_variant
|
||||
expect(page).to have_css(delete_option_selector)
|
||||
end
|
||||
page.find("div#content").click # to close the vertical actions menu
|
||||
|
||||
within variant_selector do
|
||||
page.find(".vertical-ellipsis-menu").click
|
||||
expect(page).to have_link "Edit", href: link_edit_variant2
|
||||
expect(page).to have_css(delete_option_selector)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user