mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 15:17:30 +00:00
Tours: bring the pinned counts and test doubles up to the new tables and switch
- tours locale key count, entity count and NOT NULL field count follow the wanderer tables and strings - the shared MSW admin handlers answer /api/admin/tours-wanderer - the mobile tour detail test checks the dialog, not the dropped heading - the refused-origin e2e sends one request per case instead of four at once
This commit is contained in:
@@ -98,13 +98,14 @@ describe('MSelectedTourDetail', () => {
|
||||
it('renders the selected tour through the shared detail dialog and elevation profile', () => {
|
||||
render(<MSelectedTourDetail planner={planner()} />)
|
||||
|
||||
expect(screen.getAllByText('Track Stats')).toHaveLength(1)
|
||||
expect(screen.getByRole('dialog')).toBeInTheDocument()
|
||||
expect(document.querySelector('#tour-elevation-42')).toBeInTheDocument()
|
||||
})
|
||||
|
||||
it('renders nothing for an ordinary selected place', () => {
|
||||
render(<MSelectedTourDetail planner={planner({ selectedTour: null })} />)
|
||||
|
||||
expect(screen.queryByText('Track Stats')).not.toBeInTheDocument()
|
||||
expect(screen.queryByRole('dialog')).not.toBeInTheDocument()
|
||||
expect(document.querySelector('#tour-elevation-42')).not.toBeInTheDocument()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user