diff --git a/src/components/app/routes/loaders/checkoutStepperLoader.ts b/src/components/app/routes/loaders/checkoutStepperLoader.ts index baa323c2..b2918d09 100644 --- a/src/components/app/routes/loaders/checkoutStepperLoader.ts +++ b/src/components/app/routes/loaders/checkoutStepperLoader.ts @@ -2,7 +2,7 @@ import { getAuthenticatedUser } from '@edx/frontend-platform/auth'; import { QueryClient } from '@tanstack/react-query'; import { redirect } from 'react-router-dom'; -import { queryBffContext } from '@/components/app/data/queries/queries'; +import { queryBffContext, queryBffSuccess, queryCheckoutIntent } from '@/components/app/data/queries/queries'; import { getCheckoutSessionClientSecret, validateFormState } from '@/components/app/routes/loaders/utils'; import { CheckoutPageRoute } from '@/constants/checkout'; import { checkoutFormStore } from '@/hooks/useCheckoutFormStore'; @@ -144,12 +144,31 @@ async function billingDetailsSuccessLoader(queryClient: QueryClient): Promise { // Fill in required form fields using proper user interaction const fullNameInput = screen.getByLabelText(/full name/i); const adminEmailInput = screen.getByLabelText(/work email/i); - const quantityInput = screen.getByLabelText(/how many users/i); + const quantityInput = screen.getByLabelText(/number of licenses/i); const countrySelect = screen.getByLabelText(/country of residence/i); await user.type(fullNameInput, 'John Doe'); @@ -222,7 +222,7 @@ describe('PlanDetailsPage - Admin Email Validation', () => { // Fill in required form fields using proper user interaction const fullNameInput = screen.getByLabelText(/full name/i); const adminEmailInput = screen.getByLabelText(/work email/i); - const quantityInput = screen.getByLabelText(/how many users/i); + const quantityInput = screen.getByLabelText(/number of licenses/i); const countrySelect = screen.getByLabelText(/country of residence/i); await user.type(fullNameInput, 'John Doe'); @@ -271,7 +271,7 @@ describe('PlanDetailsPage - Admin Email Validation', () => { // Fill in required form fields using proper user interaction const fullNameInput = screen.getByLabelText(/full name/i); const adminEmailInput = screen.getByLabelText(/work email/i); - const quantityInput = screen.getByLabelText(/how many users/i); + const quantityInput = screen.getByLabelText(/number of licenses/i); const countrySelect = screen.getByLabelText(/country of residence/i); await user.type(fullNameInput, 'John Doe');