From 9dd5b9dd6c1ec63f9bd98cfffcec521853ab560a Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sun, 28 Oct 2018 20:34:19 +0000 Subject: [PATCH] Fix import button specificity in feature spec --- spec/features/admin/product_import_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/admin/product_import_spec.rb b/spec/features/admin/product_import_spec.rb index fd4bc1a13e..57e383a9f9 100644 --- a/spec/features/admin/product_import_spec.rb +++ b/spec/features/admin/product_import_spec.rb @@ -460,7 +460,7 @@ feature "Product Import", js: true do def proceed_to_validation expect(page).to have_selector 'a.button.proceed', visible: true - click_link I18n.t('admin.product_import.import.import') + within("#content") { click_link I18n.t('admin.product_import.import.import') } expect(page).to have_selector 'form.product-import', visible: true expect(page).to have_content I18n.t('admin.product_import.import.validation_overview') end