Skip to content

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

test(hud): cover Alt, Shift and Meta on the language prompt's Enter

超超超超超级喜欢你的达妮娅ac6575542fb1
diff --git a/src/components/launch/LaunchWindow.test.tsx b/src/components/launch/LaunchWindow.test.tsx
index ff8cb4793..fffc58d53 100644
--- a/src/components/launch/LaunchWindow.test.tsx
+++ b/src/components/launch/LaunchWindow.test.tsx
@@ -2293,6 +2293,9 @@ describe("LaunchWindow system language prompt", () => {
fireEvent.keyDown(document.body, { key: "Enter", repeat: true });
fireEvent.keyDown(document.body, { key: " " });
fireEvent.keyDown(document.body, { key: "Enter", ctrlKey: true });
+ fireEvent.keyDown(document.body, { key: "Enter", altKey: true });
+ fireEvent.keyDown(document.body, { key: "Enter", shiftKey: true });
+ fireEvent.keyDown(document.body, { key: "Enter", metaKey: true });
expect(i18nState.value.acceptSystemLocaleSuggestion).not.toHaveBeenCalled();
});