Merge pull request #8466 from filipefurtad0/admin_into_system_v

Moves/updates missing admin feature specs into system (cont.)
This commit is contained in:
Maikel
2021-11-10 11:30:11 +11:00
committed by GitHub
4 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
# frozen_string_literal: true
require 'spec_helper'
require 'system_helper'
describe 'Account and Billing Settings' do
include AuthenticationHelper

View File

@@ -1,6 +1,6 @@
# frozen_string_literal: true
require 'spec_helper'
require 'system_helper'
describe '
As an admin

View File

@@ -1,6 +1,6 @@
# frozen_string_literal: true
require "spec_helper"
require "system_helper"
describe "Managing users" do
include AuthenticationHelper

View File

@@ -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