diff --git a/web/src/sections/Ecosystem.tsx b/web/src/sections/Ecosystem.tsx index db7c42b..5ed0a4f 100644 --- a/web/src/sections/Ecosystem.tsx +++ b/web/src/sections/Ecosystem.tsx @@ -1,10 +1,9 @@ import { useEffect, useRef, useState } from 'react'; -import { ArrowRight, Building2, Dumbbell, UserRound, type LucideIcon } from 'lucide-react'; +import { Building2, Dumbbell, UserRound, type LucideIcon } from 'lucide-react'; import { Brandmark } from '../components/Brandmark'; import { Reveal } from '../components/Reveal'; import { cn } from '../lib/utils'; import { Section, SectionHeading } from './shared'; -import type { TrackId } from '../lib/tracks'; interface Participant { icon: LucideIcon; @@ -40,13 +39,6 @@ export const PARTICIPANTS: Participant[] = [ }, ]; -const TRACK_LINKS: { id: TrackId; label: string }[] = [ - { id: 'trenujacy', label: 'Dla ćwiczącego' }, - { id: 'trener', label: 'Dla trenera' }, - { id: 'silownia', label: 'Dla siłowni' }, - { id: 'admin', label: 'Dla administratora' }, -]; - interface Wire { x1: number; y1: number; @@ -199,19 +191,6 @@ export function Ecosystem() { ))} - - - $ ./sciezka --dlaczego: - {TRACK_LINKS.map((t) => ( - - {t.label} - ))} - ); } diff --git a/web/test/e2e/landing.spec.ts b/web/test/e2e/landing.spec.ts index 5c48b92..59f6532 100644 --- a/web/test/e2e/landing.spec.ts +++ b/web/test/e2e/landing.spec.ts @@ -55,7 +55,9 @@ test('ścieżki: klik rozwija szczegóły, ponowny klik zwija', async ({ page }) await expect(panel).toBeHidden(); }); -test('link „Dla trenera” z rdzenia otwiera odpowiednią ścieżkę (hash routing)', async ({ page }) => { +test('link „ścieżka trenera” z innej ścieżki przełącza rozwinięcie (hash routing)', async ({ + page, +}) => { await page.goto('/#/sciezka/silownia'); const silownia = page.getByRole('button', { name: /Dla siłowni/ }); await expect(silownia).toHaveAttribute('aria-expanded', 'true'); @@ -63,8 +65,11 @@ test('link „Dla trenera” z rdzenia otwiera odpowiednią ścieżkę (hash rou page.getByRole('region', { name: 'Szczegóły: Dla siłowni' }).getByText('Profil.silowni'), ).toBeVisible(); - // klik w link z rdzenia przełącza ścieżkę bez przeładowania - await page.getByRole('link', { name: 'Dla trenera' }).click(); + // klik w link między ścieżkami przełącza bez przeładowania + await page + .getByRole('region', { name: 'Szczegóły: Dla siłowni' }) + .getByRole('link', { name: 'ścieżka trenera' }) + .click(); await expect(silownia).toHaveAttribute('aria-expanded', 'false'); await expect(page.getByRole('button', { name: /Dla trenera/ })).toHaveAttribute( 'aria-expanded', diff --git a/web/test/landing.test.tsx b/web/test/landing.test.tsx index 060f492..2898c16 100644 --- a/web/test/landing.test.tsx +++ b/web/test/landing.test.tsx @@ -26,11 +26,6 @@ describe('strona-wizytówka FitOS', () => { 'FitOS nie jest aplikacją treningową z dodatkiem siłowni. To rdzeń, w którym potrzeby ćwiczących, trenerów i siłowni zazębiają się nawzajem — nikt nie jest tu użytkownikiem końcowym.', ), ).toBeInTheDocument(); - // linki „od ogółu do szczegółu” do ścieżek - expect(screen.getByRole('link', { name: /Dla trenera/ })).toHaveAttribute( - 'href', - '#/sciezka/trener', - ); }); it('słownik pojęć wyjaśnia cegły systemu osobie pierwszy raz widzącej FitOS', () => {