mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-23 05:21:15 +00:00
fix(client): work through the findings from the coverage pass
214 items came out of writing the tests. Real defects are corrected, dead code is removed rather than covered, and the tests that pinned the old behaviour move with them. Also drops two agent coverage scratch files that slipped into the coverage PR and adds the ignore rule that keeps them out.
This commit is contained in:
@@ -261,6 +261,14 @@ describe('AddPlaceToCollectionModal', () => {
|
||||
expect(screen.getByPlaceholderText('Longitude (e.g. 2.3522)')).toHaveValue('2.3522')
|
||||
})
|
||||
|
||||
it('FE-COMP-ADDPLACECOL-015b: the pair is split the same way when pasted into longitude', () => {
|
||||
setup()
|
||||
const lng = screen.getByPlaceholderText('Longitude (e.g. 2.3522)')
|
||||
fireEvent.paste(lng, { clipboardData: { getData: () => '48.8566, 2.3522' } })
|
||||
expect(screen.getByPlaceholderText('Latitude (e.g. 48.8566)')).toHaveValue('48.8566')
|
||||
expect(lng).toHaveValue('2.3522')
|
||||
})
|
||||
|
||||
it('FE-COMP-ADDPLACECOL-016: a paste that is not a coordinate pair is left to the input', () => {
|
||||
setup()
|
||||
const lat = screen.getByPlaceholderText('Latitude (e.g. 48.8566)')
|
||||
|
||||
Reference in New Issue
Block a user