diff --git a/src/fragmentarium/ui/fragment/ArchaeologyEditor.tsx b/src/fragmentarium/ui/fragment/ArchaeologyEditor.tsx index f06cfc14a..d5d257a31 100644 --- a/src/fragmentarium/ui/fragment/ArchaeologyEditor.tsx +++ b/src/fragmentarium/ui/fragment/ArchaeologyEditor.tsx @@ -194,6 +194,7 @@ class ArchaeologyEditor extends Component { type="checkbox" id={_.uniqueId('isRegularExcavation-')} label="Regular Excavation" + aria-label="regular-excavation" checked={this.state.isRegularExcavation} onChange={this.updateIsRegularExcavation} /> diff --git a/src/fragmentarium/ui/info/Details.test.tsx b/src/fragmentarium/ui/info/Details.test.tsx index 2a9228a95..28c1a2f4c 100644 --- a/src/fragmentarium/ui/info/Details.test.tsx +++ b/src/fragmentarium/ui/info/Details.test.tsx @@ -193,8 +193,8 @@ describe('ExcavationDate', () => { }) await renderDetails() - expect(screen.getByText('Regular Excavation')).toBeInTheDocument() - expect(screen.getByText('05/10/2024 – 10/10/2024')).toBeInTheDocument() + expect(screen.getByText(/Regular Excavation/)).toBeInTheDocument() + expect(screen.getByText(/05\/10\/2024 – 10\/10\/2024/)).toBeInTheDocument() }) it('renders only start date when end date is missing', async () => { @@ -210,8 +210,8 @@ describe('ExcavationDate', () => { }) await renderDetails() - expect(screen.getByText('Regular Excavation')).toBeInTheDocument() - expect(screen.getByText('05/10/2024')).toBeInTheDocument() + expect(screen.getByText(/Regular Excavation/)).toBeInTheDocument() + expect(screen.getByText(/05\/10\/2024/)).toBeInTheDocument() }) it('does not render excavation date when isRegularExcavation is false', async () => {