diff --git a/desktop/package-lock.json b/desktop/package-lock.json index c4947e0fc..55391fa20 100644 --- a/desktop/package-lock.json +++ b/desktop/package-lock.json @@ -1,12 +1,12 @@ { "name": "tinyagentos-desktop", - "version": "1.0.0-beta.41", + "version": "1.0.0-beta.42", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "tinyagentos-desktop", - "version": "1.0.0-beta.41", + "version": "1.0.0-beta.42", "dependencies": { "@codemirror/lang-markdown": "^6.5.1", "@codemirror/language-data": "^6.5.2", @@ -5325,9 +5325,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -5345,9 +5342,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -5365,9 +5359,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -5385,9 +5376,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -5405,9 +5393,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -5425,9 +5410,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -5654,9 +5636,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -5674,9 +5653,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -5694,9 +5670,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -5714,9 +5687,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ diff --git a/desktop/src/apps/CrosswordsApp.test.tsx b/desktop/src/apps/CrosswordsApp.test.tsx index 2558d2ac3..3a4a7c978 100644 --- a/desktop/src/apps/CrosswordsApp.test.tsx +++ b/desktop/src/apps/CrosswordsApp.test.tsx @@ -66,7 +66,7 @@ describe("CrosswordsApp", () => { expect(within(firstCell).queryByText("S")).toBeNull(); }); - it("navigates to a clue's starting cell and direction when the clue is clicked", async () => { + it("navigates to a clue\'s starting cell and direction when the clue is clicked", async () => { render(); await flush(); @@ -82,4 +82,26 @@ describe("CrosswordsApp", () => { const activeClueItem = screen.getByRole("button", { name: /1 across: celestial objects/i }); expect(activeClueItem).toHaveStyle({ background: "rgba(251, 191, 36, 0.25)" }); }); + + it("clicks check answers button to enter check mode", async () => { + render(); + await flush(); + + const checkButton = screen.getByRole("button", { name: /check answers/i }); + fireEvent.click(checkButton); + await flush(); + + expect(checkButton).toBeInTheDocument(); + }); + + it("switches to next puzzle", async () => { + render(); + await flush(); + + const newPuzzleButton = screen.getByRole("button", { name: /new puzzle/i }); + fireEvent.click(newPuzzleButton); + await flush(); + + expect(screen.getByText(/crossword #2/i)).toBeTruthy(); + }); });