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