Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

Harden source selector rejection test

EtienneLescot4a90d6c5862d
diff --git a/src/components/launch/LaunchWindow.test.tsx b/src/components/launch/LaunchWindow.test.tsx
index c12c04921..6440f1d41 100644
--- a/src/components/launch/LaunchWindow.test.tsx
+++ b/src/components/launch/LaunchWindow.test.tsx
@@ -282,6 +282,10 @@ describe("LaunchWindow record button", () => {
expect(window.electronAPI.openSourceSelector).toHaveBeenCalledTimes(1);
});
+ await act(async () => {
+ await Promise.resolve();
+ });
+
emitSelectedSourceChanged(displayOneSource);
await waitFor(() => {