fix(slider): restore layout to match main and fix drag by disabling native link drag
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 1m17s
Build & Deploy / 🧪 QA (push) Successful in 1m41s
Build & Deploy / 🏗️ Build (push) Successful in 3m7s
Build & Deploy / 🚀 Deploy (push) Successful in 32s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 1m4s
Build & Deploy / 🔔 Notify (push) Successful in 2s

This commit is contained in:
2026-06-23 14:06:50 +02:00
parent 76798e4704
commit d9c2ea1ede
2 changed files with 92 additions and 39 deletions

View File

@@ -51,15 +51,14 @@ describe('ReferencesSlider TDD', () => {
expect(screen.getByText('Referenz Projekt Zwei')).toBeTruthy();
});
it('renders each tile as a link to the reference detail page', () => {
it('renders each tile as a static block and NOT wrapped in a link', () => {
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');
});
});