diff --git a/packages/fxa-payments-server/public/locales/en-US/main.ftl b/packages/fxa-payments-server/public/locales/en-US/main.ftl
index 4a0e28a579..c259876704 100644
--- a/packages/fxa-payments-server/public/locales/en-US/main.ftl
+++ b/packages/fxa-payments-server/public/locales/en-US/main.ftl
@@ -29,6 +29,9 @@ brand-name-firefox-logo = { -brand-name-firefox } logo
close-aria =
.aria-label = Close modal
+# Aria label for spinner image indicating data is loading
+app-loading-spinner-aria-label-loading = Loading...
+
## App error dialog
general-error-heading = General application error
diff --git a/packages/fxa-payments-server/src/components/PaymentForm/index.scss b/packages/fxa-payments-server/src/components/PaymentForm/index.scss
index 277a9a45f1..5006fcd214 100644
--- a/packages/fxa-payments-server/src/components/PaymentForm/index.scss
+++ b/packages/fxa-payments-server/src/components/PaymentForm/index.scss
@@ -1,28 +1,6 @@
@import '../../../../fxa-content-server/app/styles/breakpoints';
form.payment {
- .pricing-and-saved-payment {
- display: flex;
- font-size: 15px;
- justify-content: space-between;
-
- .pricing {
- display: flex;
- align-items: center;
- }
- .c-card {
- margin: 0;
- }
- }
-
- hr {
- margin: 24px 0 0;
-
- @include respond-to('simpleSmall') {
- margin-top: 16px;
- }
- }
-
.input-row {
margin: 24px 0 0;
@@ -60,21 +38,6 @@ form.payment {
line-height: 45px;
}
}
-
- .button-row button {
- margin-top: 32px;
- }
-
- .lock::before {
- background-image: url('./images/lock.svg');
- background-position: 0 2px;
- background-repeat: no-repeat;
- content: '\00a0';
- display: inline-block;
- height: 18px;
- margin: 0 8px;
- width: 14px;
- }
}
@include respond-to('simpleSmall') {
@@ -82,12 +45,4 @@ form.payment {
form.payment .input-row input::-moz-placeholder {
line-height: 38px !important;
}
-
- .main-content .payments-card {
- width: 100%;
-
- .input-row-group {
- padding-bottom: 8px;
- }
- }
}
diff --git a/packages/fxa-payments-server/src/components/PaymentForm/index.test.tsx b/packages/fxa-payments-server/src/components/PaymentForm/index.test.tsx
index 630bb9d0a5..6e113afdcd 100644
--- a/packages/fxa-payments-server/src/components/PaymentForm/index.test.tsx
+++ b/packages/fxa-payments-server/src/components/PaymentForm/index.test.tsx
@@ -1,5 +1,11 @@
import React from 'react';
-import { render, cleanup, act, fireEvent } from '@testing-library/react';
+import {
+ render,
+ cleanup,
+ act,
+ fireEvent,
+ queryByTestId,
+} from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import waitForExpect from 'wait-for-expect';
@@ -68,6 +74,7 @@ it('renders all expected default fields and elements', () => {
expect(container.querySelector('button.cancel')).not.toBeInTheDocument();
expect(container.querySelector('span.spinner')).not.toBeInTheDocument();
+ expect(queryByTestId(container, 'loading-spinner')).not.toBeInTheDocument();
expect(getByTestId('submit')).toHaveAttribute('disabled');
for (let testid of ['name', 'cardElement']) {
@@ -186,7 +193,7 @@ it('renders a progress spinner when submitted, disables further submission (issu
await waitForExpect(() => expect(onSubmit).toHaveBeenCalled());
- expect(queryByTestId('spinner-submit')).toBeInTheDocument();
+ expect(queryByTestId('loading-spinner')).toBeInTheDocument();
expect(getByTestId('submit')).toHaveAttribute('disabled');
fireEvent.submit(getByTestId('paymentForm'));
@@ -197,7 +204,7 @@ it('renders a progress spinner when submitted, disables further submission (issu
it('renders a progress spinner when inProgress = true', () => {
const { queryByTestId } = render(