diff --git a/services/121-service/test/program/manage-program-financial-service-provider-configuration.test.ts b/services/121-service/test/program/manage-program-financial-service-provider-configuration.test.ts index 00b61dbcd7..a5852e5f34 100644 --- a/services/121-service/test/program/manage-program-financial-service-provider-configuration.test.ts +++ b/services/121-service/test/program/manage-program-financial-service-provider-configuration.test.ts @@ -29,6 +29,7 @@ import { awaitChangePaStatus, deleteRegistrations, seedPaidRegistrations, + waitForStatusChangeToComplete, } from '@121-service/test/helpers/registration.helper'; import { getAccessToken, @@ -239,6 +240,13 @@ describe('Manage financial service provider configurations', () => { [registrationOCW5.referenceId], accessToken, ); + await waitForStatusChangeToComplete( + programIdVisa, + 1, + RegistrationStatusEnum.deleted, + 8_000, + accessToken, + ); // Act const name = seededFspConfigVoucher.financialServiceProvider;