Commit b8fe7d35 authored by Diana Zubova's avatar Diana Zubova Committed by Phil Hughes

Fix translation for Storage purchase

parent 6c464495
......@@ -41,7 +41,7 @@ export const i18nStorageSummaryTitle = (quantity) =>
n__('Checkout|%{quantity} storage pack', 'Checkout|%{quantity} storage packs', quantity);
export const I18N_STORAGE_SUMMARY_TOTAL = s__('Checkout|Total storage: %{quantity} GB');
export const I18N_STORAGE_PRICE_PER_UNIT = s__(
'Checkout|$%{selectedPlanPrice} per 10 GB storage per pack',
'Checkout|$%{selectedPlanPrice} per 10 GB storage pack per year',
);
export const I18N_STORAGE_TITLE = s__("Checkout|%{name}'s storage subscription");
export const I18N_STORAGE_TOOLTIP_NOTE = s__(
......
......@@ -148,7 +148,9 @@ describe('Buy Storage App', () => {
describe('labels', () => {
it('shows labels correctly for 1 pack', async () => {
const mockApollo = createMockApolloProvider();
const mockApollo = createMockApolloProvider({
plansQueryMock: jest.fn().mockResolvedValue({ data: { plans: mockStoragePlans } }),
});
await createComponent(mockApollo);
expect(findQuantityText().text()).toMatchInterpolatedText(
......@@ -156,7 +158,7 @@ describe('Buy Storage App', () => {
);
expect(findSummaryLabel().text()).toBe('1 storage pack');
expect(findSummaryTotal().text()).toBe('Total storage: 10 GB');
expect(findPriceLabel().text()).toBe('$10 per 10 GB storage per pack');
expect(findPriceLabel().text()).toBe('$60 per 10 GB storage pack per year');
});
it('shows labels correctly for 2 packs', async () => {
......
......@@ -25,7 +25,7 @@ export const mockStoragePlans = [
{
id: 'storagePackPlanId',
code: 'storage',
pricePerYear: 50,
pricePerYear: 60,
name: 'Storage pack',
__typename: PLAN_TYPE,
},
......
......@@ -6782,7 +6782,7 @@ msgstr ""
msgid "Checkout"
msgstr ""
msgid "Checkout|$%{selectedPlanPrice} per 10 GB storage per pack"
msgid "Checkout|$%{selectedPlanPrice} per 10 GB storage pack per year"
msgstr ""
msgid "Checkout|$%{selectedPlanPrice} per pack of 1,000 minutes"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment