Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Tighten trial retry-after UI proof

rcourtman016f9191beb1
diff --git a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
index f09203e7e9..3dd845319b 100644
--- a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
@@ -756,10 +756,11 @@ describe('ProLicensePanel', () => {
});
});
- it('maps rate-limited trial starts to the canonical retry message', async () => {
+ it('maps rate-limited trial starts to the retry-after guidance when available', async () => {
startProTrialMock.mockRejectedValue(
Object.assign(new Error('rate limited'), {
status: 429,
+ retryAfterSeconds: 120,
}),
);
@@ -768,7 +769,7 @@ describe('ProLicensePanel', () => {
fireEvent.click(screen.getByRole('button', { name: /start 14-day pro trial/i }));
await waitFor(() => {
- expect(notificationErrorMock).toHaveBeenCalledWith('Try again later');
+ expect(notificationErrorMock).toHaveBeenCalledWith('Try again in about 2 minutes');
});
});