From 5fb4faac915ffb5f18198c7805112c124e6bbb70 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Tue, 20 Nov 2018 12:47:47 +0000 Subject: [PATCH] Make features/admin/subscriptions_spec and shopworkflow work with selenium Also, remove a test support method, dead code --- spec/features/admin/subscriptions_spec.rb | 2 +- spec/support/request/shop_workflow.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/admin/subscriptions_spec.rb b/spec/features/admin/subscriptions_spec.rb index 089cea0998..27bfaa1bfc 100644 --- a/spec/features/admin/subscriptions_spec.rb +++ b/spec/features/admin/subscriptions_spec.rb @@ -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 diff --git a/spec/support/request/shop_workflow.rb b/spec/support/request/shop_workflow.rb index 9df7f72126..98b0a52d86 100644 --- a/spec/support/request/shop_workflow.rb +++ b/spec/support/request/shop_workflow.rb @@ -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)