mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-15 23:57:48 +00:00
Make features/admin/subscriptions_spec and shopworkflow work with selenium
Also, remove a test support method, dead code
This commit is contained in:
@@ -70,7 +70,7 @@ feature 'Subscriptions' do
|
||||
# Viewing Products
|
||||
within "tr#so_#{subscription.id}" do
|
||||
expect(page).to have_selector "td.items.panel-toggle", text: 3
|
||||
page.find("td.items.panel-toggle").trigger('click')
|
||||
page.find("td.items.panel-toggle").click
|
||||
end
|
||||
|
||||
within "#subscription-line-items" do
|
||||
|
||||
@@ -25,7 +25,7 @@ module ShopWorkflow
|
||||
end
|
||||
|
||||
def toggle_accordion(name)
|
||||
find("dd a", text: name).trigger "click"
|
||||
find("dd a", text: name).click
|
||||
end
|
||||
|
||||
def add_variant_to_order_cycle(exchange, variant)
|
||||
|
||||
Reference in New Issue
Block a user