diff --git a/projects/bp-gallery/cypress/e2e/start.cy.ts b/projects/bp-gallery/cypress/e2e/start.cy.ts index 2c8474679..a6df6bd85 100644 --- a/projects/bp-gallery/cypress/e2e/start.cy.ts +++ b/projects/bp-gallery/cypress/e2e/start.cy.ts @@ -5,12 +5,12 @@ describe('Start view', () => { it('shows the archive cards and browse view', () => { cy.get('.archives').should('exist'); - cy.get('.archive').should('exist'); + cy.get('[data-testid="archive"]').should('exist'); cy.get('.browse-container').should('exist'); }); it('shows the picture count for the archive cards', () => { - cy.contains('.archive', 'Herbert-Ahrens-Bilderarchiv').contains('5 Bilder'); + cy.contains('[data-testid="archive"]', 'Herbert-Ahrens-Bilderarchiv').contains('5 Bilder'); }); it('should have a visible navigation bar', () => { diff --git a/projects/bp-gallery/src/components/views/archives/ArchiveCheckboxField.tsx b/projects/bp-gallery/src/components/views/archives/ArchiveCheckboxField.tsx index eb1478d3c..73b1b3be9 100644 --- a/projects/bp-gallery/src/components/views/archives/ArchiveCheckboxField.tsx +++ b/projects/bp-gallery/src/components/views/archives/ArchiveCheckboxField.tsx @@ -25,7 +25,7 @@ const ArchiveCheckboxField = ({ defaultValue, id, onChange, label }: ArchiveInpu ); return ( -
+