mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #10660 from MadisonBowron/master
Fix bug #10596, missing translation for editing shipping category
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user