diff --git a/ui/components/providers/organizations/org-launch-scan.test.tsx b/ui/components/providers/organizations/org-launch-scan.test.tsx index f7f7fb11a3..cd1175c5f6 100644 --- a/ui/components/providers/organizations/org-launch-scan.test.tsx +++ b/ui/components/providers/organizations/org-launch-scan.test.tsx @@ -429,7 +429,7 @@ describe("OrgLaunchScan", () => { }); // Then - expect(screen.getByText(/reached your scan limit/i)).toBeInTheDocument(); + expect(screen.getByText(/exceeded the usage limit/i)).toBeInTheDocument(); expect(updateSchedulesBulkMock).not.toHaveBeenCalled(); expect(launchOrganizationScansMock).not.toHaveBeenCalled(); }); diff --git a/ui/components/providers/organizations/org-launch-scan.tsx b/ui/components/providers/organizations/org-launch-scan.tsx index b8fde57c65..8747d28126 100644 --- a/ui/components/providers/organizations/org-launch-scan.tsx +++ b/ui/components/providers/organizations/org-launch-scan.tsx @@ -363,8 +363,16 @@ export function OrgLaunchScan({ {isBlocked ? (

- You have reached your scan limit, so additional scans are not - available right now. + You have exceeded the usage limit of one provider. You can add + more providers and run unlimited scans by adding a subscription.{" "} + + Manage Billing +

) : isAdvanced ? ( { ); // Then - expect(screen.getByText(/reached your scan limit/i)).toBeInTheDocument(); + expect(screen.getByText(/exceeded the usage limit/i)).toBeInTheDocument(); await waitFor(() => expect(onFooterChange).toHaveBeenCalled()); expect(lastFooterConfig(onFooterChange)?.actionDisabled).toBe(true); }); diff --git a/ui/components/providers/wizard/steps/launch-step.tsx b/ui/components/providers/wizard/steps/launch-step.tsx index 59f6bcd578..27af2b09f2 100644 --- a/ui/components/providers/wizard/steps/launch-step.tsx +++ b/ui/components/providers/wizard/steps/launch-step.tsx @@ -352,8 +352,16 @@ export function LaunchStep({ {(isLimitBlocked || isBlocked) && (

- You have reached your scan limit, so additional scans are not - available right now. + You have exceeded the usage limit of one provider. You can add more + providers and run unlimited scans by adding a subscription.{" "} + + Manage Billing +

)} diff --git a/ui/components/scans/launch-scan-modal.test.tsx b/ui/components/scans/launch-scan-modal.test.tsx index f413603caf..60500ea022 100644 --- a/ui/components/scans/launch-scan-modal.test.tsx +++ b/ui/components/scans/launch-scan-modal.test.tsx @@ -591,7 +591,7 @@ describe("LaunchScanModal", () => { ); expect(screen.queryByRole("radio")).not.toBeInTheDocument(); - expect(screen.getByText(/reached your scan limit/i)).toBeInTheDocument(); + expect(screen.getByText(/exceeded the usage limit/i)).toBeInTheDocument(); expect( screen.getByRole("button", { name: /launch scan/i }), ).toBeDisabled(); @@ -610,7 +610,7 @@ describe("LaunchScanModal", () => { ); expect(screen.queryByRole("radio")).not.toBeInTheDocument(); - expect(screen.getByText(/reached your scan limit/i)).toBeInTheDocument(); + expect(screen.getByText(/exceeded the usage limit/i)).toBeInTheDocument(); await user.selectOptions(screen.getByLabelText("Providers"), provider.id); await user.click(screen.getByRole("button", { name: /launch scan/i })); diff --git a/ui/components/scans/launch-scan-modal.tsx b/ui/components/scans/launch-scan-modal.tsx index 3cc9083908..29f4726e10 100644 --- a/ui/components/scans/launch-scan-modal.tsx +++ b/ui/components/scans/launch-scan-modal.tsx @@ -330,8 +330,16 @@ function LaunchScanForm({ {isBlocked && (

- You have reached your scan limit, so additional scans are not - available right now. + You have exceeded the usage limit of one provider. You can add more + providers and run unlimited scans by adding a subscription.{" "} + + Manage Billing +

)}