Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
feat: Updated payment MFE error message for empty cart [REV-3547] (#735)
Browse files Browse the repository at this point in the history
  • Loading branch information
MushtaqRossier authored May 4, 2023
1 parent bfac2c9 commit e4198b4
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/i18n/messages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"payment.card.holder.information.state.label": "State/Province (required)",
"payment.card.holder.information.state.required.label": "State/Province",
"payment.card.holder.information.state.options.empty": "Choose state/province",
"payment.empty.basket.heading": "Your basket is empty.",
"payment.empty.basket.heading": "Your cart is empty.",
"payment.empty.basket.message": "If you attempted to make a purchase, you have not been charged. Return to your {actionLinkOne} to try again, or {actionLinkTwo}.",
"payment.empty.basket.dashboardURL": "dashboard",
"payment.empty.basket.supportURL": "contact edX E-commerce Support",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/messages/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"payment.card.holder.information.state.label": "State/Province (required)",
"payment.card.holder.information.state.required.label": "State/Province",
"payment.card.holder.information.state.options.empty": "Choose state/province",
"payment.empty.basket.heading": "Your basket is empty.",
"payment.empty.basket.heading": "Your cart is empty.",
"payment.empty.basket.message": "If you attempted to make a purchase, you have not been charged. Return to your {actionLinkOne} to try again, or {actionLinkTwo}.",
"payment.empty.basket.dashboardURL": "dashboard",
"payment.empty.basket.supportURL": "contact edX E-commerce Support",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/messages/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"payment.card.holder.information.state.label": "State/Province (required)",
"payment.card.holder.information.state.required.label": "State/Province",
"payment.card.holder.information.state.options.empty": "Choose state/province",
"payment.empty.basket.heading": "Your basket is empty.",
"payment.empty.basket.heading": "Your cart is empty.",
"payment.empty.basket.message": "If you attempted to make a purchase, you have not been charged. Return to your {actionLinkOne} to try again, or {actionLinkTwo}.",
"payment.empty.basket.dashboardURL": "dashboard",
"payment.empty.basket.supportURL": "contact edX E-commerce Support",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/messages/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"payment.card.holder.information.state.label": "State/Province (required)",
"payment.card.holder.information.state.required.label": "State/Province",
"payment.card.holder.information.state.options.empty": "Choose state/province",
"payment.empty.basket.heading": "Your basket is empty.",
"payment.empty.basket.heading": "Your cart is empty.",
"payment.empty.basket.message": "If you attempted to make a purchase, you have not been charged. Return to your {actionLinkOne} to try again, or {actionLinkTwo}.",
"payment.empty.basket.dashboardURL": "dashboard",
"payment.empty.basket.supportURL": "contact edX E-commerce Support",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/messages/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"payment.card.holder.information.state.label": "State/Province (required)",
"payment.card.holder.information.state.required.label": "State/Province",
"payment.card.holder.information.state.options.empty": "Choose state/province",
"payment.empty.basket.heading": "Your basket is empty.",
"payment.empty.basket.heading": "Your cart is empty.",
"payment.empty.basket.message": "If you attempted to make a purchase, you have not been charged. Return to your {actionLinkOne} to try again, or {actionLinkTwo}.",
"payment.empty.basket.dashboardURL": "dashboard",
"payment.empty.basket.supportURL": "contact edX E-commerce Support",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/messages/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"payment.card.holder.information.state.label": "State/Province (required)",
"payment.card.holder.information.state.required.label": "State/Province",
"payment.card.holder.information.state.options.empty": "Choose state/province",
"payment.empty.basket.heading": "Your basket is empty.",
"payment.empty.basket.heading": "Your cart is empty.",
"payment.empty.basket.message": "If you attempted to make a purchase, you have not been charged. Return to your {actionLinkOne} to try again, or {actionLinkTwo}.",
"payment.empty.basket.dashboardURL": "dashboard",
"payment.empty.basket.supportURL": "contact edX E-commerce Support",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/messages/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"payment.card.holder.information.state.label": "State/Province (required)",
"payment.card.holder.information.state.required.label": "State/Province",
"payment.card.holder.information.state.options.empty": "Choose state/province",
"payment.empty.basket.heading": "Your basket is empty.",
"payment.empty.basket.heading": "Your cart is empty.",
"payment.empty.basket.message": "If you attempted to make a purchase, you have not been charged. Return to your {actionLinkOne} to try again, or {actionLinkTwo}.",
"payment.empty.basket.dashboardURL": "dashboard",
"payment.empty.basket.supportURL": "contact edX E-commerce Support",
Expand Down
2 changes: 1 addition & 1 deletion src/payment/EmptyCartMessage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const EmptyCartMessage = () => (
<h5 className="card-title">
<FormattedMessage
id="payment.empty.basket.heading"
defaultMessage="Your basket is empty."
defaultMessage="Your cart is empty."
description="The heading displayed when there is no basket"
/>
</h5>
Expand Down
2 changes: 1 addition & 1 deletion src/payment/PaymentPage.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ describe('<PaymentPage />', () => {
expect(tree).toMatchSnapshot();
});

it('should render an empty basket', () => {
it('should render an empty cart', () => {
const component = (
<IntlProvider locale="en">
<AppContext.Provider value={{ authenticatedUser, config, locale }}>
Expand Down
4 changes: 2 additions & 2 deletions src/payment/__snapshots__/PaymentPage.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ exports[`<PaymentPage /> Renders correctly in various states should render a red
</div>
`;

exports[`<PaymentPage /> Renders correctly in various states should render an empty basket 1`] = `
exports[`<PaymentPage /> Renders correctly in various states should render an empty cart 1`] = `
<div
className="page__payment container-fluid py-5"
>
Expand All @@ -186,7 +186,7 @@ exports[`<PaymentPage /> Renders correctly in various states should render an em
<h5
className="card-title"
>
Your basket is empty.
Your cart is empty.
</h5>
<p
className="card-text"
Expand Down

0 comments on commit e4198b4

Please sign in to comment.