[app] PlanetGarden: e2e passes the gardener question, opens the ring, and pours by tilting the can

This commit is contained in:
2026-11-17 19:15:24 +01:00
parent 5576af4fac
commit 52d8c0bfd1
7 changed files with 137 additions and 12 deletions
+3
View File
@@ -2,6 +2,7 @@ import { expect, test } from '@playwright/test';
import { PRODUCT_NAME } from '@rosea/schema';
import { en } from '@rosea/ui/copy';
import { startStaticServer } from './static-server.js';
import { openRing, pastGardener } from './garden.js';
import { storedCare, storedTown } from './stored.js';
/**
@@ -24,6 +25,7 @@ test('the shell opens from the service worker with the server gone', async ({ br
await page.clock.setFixedTime(Date.parse('2026-03-29T12:00:00+02:00'));
await page.goto(server.url);
await expect(page.getByRole('heading', { level: 1 })).toHaveText(PRODUCT_NAME);
await pastGardener(page);
// The player answers the sunset question while online (sunset-place.md).
await page.getByRole('searchbox', { name: en.sunset.searchLabel }).fill('brno');
@@ -67,6 +69,7 @@ test('the shell opens from the service worker with the server gone', async ({ br
await storedTown(page, 'Plzeň');
// Tending the rose offline: hold Water, as a finger would (rose.md).
await openRing(page);
await page.getByRole('button', { name: en.rose.water }).hover();
await page.mouse.down();
await page.waitForTimeout(1500);