From ed4a7bd3618071bf231cc90cdaa79bd812f57c62 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Fri, 11 Dec 2020 00:09:34 +0000 Subject: [PATCH] Adapt matchers to capybara v3 --- spec/features/admin/product_import_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/admin/product_import_spec.rb b/spec/features/admin/product_import_spec.rb index 6443489cf4..e1b93d1e69 100644 --- a/spec/features/admin/product_import_spec.rb +++ b/spec/features/admin/product_import_spec.rb @@ -534,8 +534,8 @@ feature "Product Import", js: true do proceed_to_validation # Check that all rows are validated. - heading = "120 #{I18n.t('admin.product_import.import.products_to_create')}" - find(".panel-header", text: heading).click + heading = I18n.t('admin.product_import.import.products_to_create') + find(".header-description", text: heading).click expect(page).to have_content "Imported Product 10" expect(page).to have_content "Imported Product 60" expect(page).to have_content "Imported Product 110"