Merge pull request #10660 from MadisonBowron/master

Fix bug #10596, missing translation for editing shipping category
This commit is contained in:
Maikel
2023-04-05 16:12:20 +10:00
committed by GitHub
2 changed files with 15 additions and 0 deletions

View File

@@ -3791,6 +3791,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using
shipping_categories: "Shipping Categories"
new_shipping_category: "New Shipping Category"
back_to_shipping_categories: "Back To Shipping Categories"
editing_shipping_category: "Editing Shipping Category"
name: "Name"
description: "Description"

View File

@@ -4,6 +4,20 @@ require 'system_helper'
describe "Shipping Categories" do
include AuthenticationHelper
include WebHelper
let(:admin_role) { Spree::Role.find_or_create_by!(name: 'admin') }
let(:admin_user) { create(:user) }
context 'user visits shipping categories page' do
it 'header is translated' do
category = create(:shipping_category)
login_as_admin
visit spree.edit_admin_shipping_category_path(category)
expect(page).to have_content "Editing Shipping Category"
end
end
context 'user adds a new shipping category with temperature control' do
it 'user sees new shipping category with temperature control' do