feat(frontend): drop demo labels from the product screens

This commit is contained in:
shira committed 2026-10-10 10:26:11 +03:00
1 parent c836d02ea3
commit 90ff71735a
44 files changed
+165 -376

No files matched your search

+4 -8
View File
@@ -1,6 +1,6 @@
import { expect, test, type Page } from "@playwright/test";
// The jury guide and the demonstration banner exist only in a build made with
// The jury guide exists only in a build made with
// VITE_DEMO_STAND=true. The browser suite builds that way (docker-compose.e2e.yml),
// while release E2E runs release images built without the flag. The spec
// reads the build from the landing page and checks the guide where it is
@@ -18,16 +18,12 @@ async function isDemoBuild(page: Page): Promise<boolean> {
return (await page.getByRole("link", { name: guideLink }).count()) > 0;
}
test("the start page offers the jury guide and the banner only in a demonstration build", async ({
page,
}) => {
test("the start page offers the jury guide only in a demonstration build", async ({ page }) => {
const demo = await isDemoBuild(page);
if (demo) {
await expect(page.getByRole("heading", { level: 2, name: "Для жюри" })).toBeVisible();
await expect(page.getByText("Демонстрационный стенд.")).toBeVisible();
} else {
await expect(page.getByText("Демонстрационный стенд.")).toHaveCount(0);
await expect(page.getByRole("heading", { name: "Для жюри" })).toHaveCount(0);
}
});
@@ -44,11 +40,11 @@ test("the guide route serves the memo in a demonstration build and not-found els
}
await expect(page.getByRole("heading", { level: 1, name: "Гид для жюри" })).toBeVisible();
await expect(page.getByText("Демонстрационный стенд.")).toBeVisible();
await expect(page.getByText("Маршрут для жюри")).toBeVisible();
await expect(page.getByText(/Демонстрационн/)).toHaveCount(0);
for (const heading of [
"Что такое Lincodex",
"Маршрут за восемь минут",
"Что здесь демонстрационное",
"Что работает без имитации",
"Логины и пароль",
"Ограничения стенда",