refactor(ui): replace dragging carousel with centered grid layout
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 32s
Build & Deploy / 🧪 QA (push) Successful in 1m33s
Build & Deploy / 🏗️ Build (push) Successful in 3m7s
Build & Deploy / 🚀 Deploy (push) Successful in 31s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 1m3s
Build & Deploy / 🔔 Notify (push) Successful in 2s

This commit is contained in:
2026-06-23 13:32:43 +02:00
parent d014c875fc
commit 76798e4704
2 changed files with 39 additions and 89 deletions

View File

@@ -51,14 +51,15 @@ describe('ReferencesSlider TDD', () => {
expect(screen.getByText('Referenz Projekt Zwei')).toBeTruthy();
});
it('renders each tile as a static block and NOT wrapped in a link', () => {
it('renders each tile as a link to the reference detail page', () => {
render(<ReferencesSlider references={mockReferences} />);
const links = screen.queryAllByTestId('reference-tile-link');
expect(links).toHaveLength(0);
const tiles = screen.getAllByTestId('reference-tile');
expect(tiles).toHaveLength(2);
// Check if they have href attributes
expect(tiles[0].getAttribute('href')).toContain('/en/referenzen#referenz-projekt-eins');
expect(tiles[1].getAttribute('href')).toContain('/en/referenzen#referenz-projekt-zwei');
});
});