[ui] PlanetGarden: Her round planet, the player's gardener, the ring of care, and care by gesture

This commit is contained in:
2026-11-17 19:07:57 +01:00
parent 9eef8a3bf7
commit 5576af4fac
18 changed files with 1268 additions and 79 deletions
+2
View File
@@ -69,6 +69,8 @@ describe('two tabs, one garden (two-tabs.md)', () => {
it("this tab's own care, still being written, is not lost when another tab's news arrives first", async () => {
const w = roseWiring();
render(Rose, { wiring: w, timeZone: ZONE });
// The ring of care opens on her (planet-garden.md G7); Water is in it.
await fireEvent.keyDown(await screen.findByRole('button', { name: en.rose.care }), { key: 'Enter' });
const button = await screen.findByRole('button', { name: en.rose.water });
vi.useFakeTimers({ toFake: ['setInterval', 'clearInterval'] });
await fireEvent.pointerDown(button, { pointerId: 1 });