Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
test(mobile): stop the clear-partial-download test timing out under load (#2321)
Chad Pihafa8fb7ef3279
diff --git a/openwhispr-mobile/src/screens/__tests__/ModelDownloadScreen.partialDownload.test.tsx b/openwhispr-mobile/src/screens/__tests__/ModelDownloadScreen.partialDownload.test.tsxindex fe4117792..fa243c4fc 100644--- a/openwhispr-mobile/src/screens/__tests__/ModelDownloadScreen.partialDownload.test.tsx+++ b/openwhispr-mobile/src/screens/__tests__/ModelDownloadScreen.partialDownload.test.tsx@@ -92,7 +92,10 @@ describe('ModelDownloadScreen — partial Parakeet download', () => {fireEvent.press(action);await waitFor(() => expect(mockParakeet.cancelModelDownload).toHaveBeenCalledWith('v2'));- await waitFor(() => expect(screen.queryByText(/Clear partial download/)).toBeNull());+ // Not `toBeNull()`: its failure message pretty-prints the element's whole fiber graph, which+ // blocks the event loop for ~250 ms per poll, so under CPU load the render that removes the+ // link never runs before waitFor times out.+ await waitFor(() => expect(screen.queryByText(/Clear partial download/)).not.toBeOnTheScreen());});it('shows nothing when no partial download is staged', async () => {