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

@@ -18,12 +18,12 @@ async function renderPath(path: string, demo: boolean): Promise<string> {
}
describe("demonstration stand routes", () => {
it("serves the jury guide and the banner only in a demo build", async () => {
it("serves the jury guide only in a demo build", async () => {
expect(await renderPath("/demo", true)).toMatch(/<h1[^>]*>Гид для жюри<\/h1>/);
expect(await renderPath("/demo", false)).toMatch(/<h1[^>]*>Страница не найдена<\/h1>/);
expect(await renderPath("/", true)).toContain("Демонстрационный стенд.");
expect(await renderPath("/", false)).not.toContain("Демонстрационный стенд.");
expect(await renderPath("/", true)).not.toContain("Демонстрационный стенд");
expect(await renderPath("/", false)).not.toContain("Демонстрационный стенд");
});
it("links the jury guide from the landing page only in a demo build", async () => {
+1 -1
View File
@@ -237,7 +237,7 @@ describe("product readiness", () => {
const html = await renderHtml("/candidate/assessment");
expect(html).toContain("Сначала выберите специализацию");
expect(html).toContain("Начать демонстрацию");
expect(html).toContain("Пройти экспресс-тест");
expect(html).not.toContain("Начать полную проверку");
});
+1 -1
View File
@@ -46,7 +46,7 @@ import { SupportRoute } from "./support-route";
export function createRoutes(stand: StandMode = standMode): RouteObject[] {
return [
{
element: <RootLayout demoStand={stand.demo} />,
element: <RootLayout />,
errorElement: <RouteErrorPage />,
children: [
{