From 901d1cbc44c37167b1fc6cf7cb6086252b1be7a4 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Mon, 8 Nov 2021 19:15:37 +0000 Subject: [PATCH] Moves/updates variants_spec into system --- spec/{features => system}/admin/variants_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename spec/{features => system}/admin/variants_spec.rb (97%) diff --git a/spec/features/admin/variants_spec.rb b/spec/system/admin/variants_spec.rb similarity index 97% rename from spec/features/admin/variants_spec.rb rename to spec/system/admin/variants_spec.rb index 8feca13029..21a6856039 100644 --- a/spec/features/admin/variants_spec.rb +++ b/spec/system/admin/variants_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'spec_helper' +require 'system_helper' describe ' As an admin @@ -74,12 +74,12 @@ describe ' expected_edit_url = Regexp.new( Regexp.escape(spree.edit_admin_product_variant_path(product, variant, filter)) ) - expect(page).to have_link(I18n.t(:edit), href: expected_edit_url) + expect(page).to have_link(class: 'icon-edit', href: expected_edit_url) expected_delete_url = Regexp.new( Regexp.escape(spree.admin_product_variant_path(product, variant, filter)) ) - expect(page).to have_link(I18n.t(:delete), href: expected_delete_url) + expect(page).to have_link(class: 'icon-trash', href: expected_delete_url) end end