8881214213
Mechanical, behaviour-preserving removal of Stage N / TODO-N / phase (RN) references from comments, doc-comments, service READMEs, the current-state docs (ARCHITECTURE, FUNCTIONAL+_ru, TESTING, UI_DESIGN), config-file comments, and the .fbs/.proto schema comments. PLAN.md / PRERELEASE.md / CLAUDE.md keep the stage history. - Rename the only stage-named identifiers: registerStage8 -> registerSocialOps, registerStage11 -> registerLinkOps (gateway transcode). - Split stage6_test.go: TestEmailLoginFlow -> email_test.go, TestGuestAutoMatchLeavesNoStats (+ provisionGuest) -> account_test.go. - Regenerated proto bindings (push.pb.go, telegram_grpc.pb.go) from the de-staged .proto comments; FB Go/TS bindings unchanged (flatc strips schema comments). go build/vet/gofmt clean across modules; integration typecheck and pnpm check green.
22 lines
1.1 KiB
TypeScript
22 lines
1.1 KiB
TypeScript
import { expect, test } from './fixtures';
|
|
|
|
// The landing page is a separate Vite entry (landing.html), served at "/" in production while
|
|
// the game SPA lives at /app/ and /telegram/. In dev it is reachable at /landing.html.
|
|
test('landing shows the pitch, switches language via the dropdown, and toggles theme', async ({ page }) => {
|
|
await page.goto('/landing.html');
|
|
|
|
// The tagline renders (English in the default test browser).
|
|
await expect(page.getByText(/Play Scrabble/i)).toBeVisible();
|
|
|
|
// The language dropdown switches the copy to Russian.
|
|
await page.getByRole('button', { name: 'Language' }).click();
|
|
await page.getByRole('menuitem', { name: /Русский/ }).click();
|
|
await expect(page.getByText(/Играй в Скрэббл/)).toBeVisible();
|
|
|
|
// The theme toggle flips the document theme (ephemeral, light<->dark).
|
|
const before = await page.evaluate(() => document.documentElement.getAttribute('data-theme'));
|
|
await page.getByRole('button', { name: 'Theme' }).click();
|
|
const after = await page.evaluate(() => document.documentElement.getAttribute('data-theme'));
|
|
expect(after).not.toBe(before);
|
|
});
|