import { expect, test } from './fixtures'; // The landing page is a separate Vite entry (landing.html), served at "/" in production while // the game SPA moves to /app/ and /telegram/ (Stage 17). In dev it is reachable at /landing.html. test('landing shows the pitch, a browser CTA to /app/, and switches language', async ({ page }) => { await page.goto('/landing.html'); // The primary call to action opens the web app mount. await expect(page.getByRole('link', { name: /Play in browser/i })).toHaveAttribute('href', '/app/'); // The language switch flips the copy to Russian (reusing the app i18n). await page.getByRole('button', { name: 'Русский' }).click(); await expect(page.getByRole('link', { name: /Играть в браузере/ })).toBeVisible(); });