mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-20 19:16:08 +00:00
feat(places): colour tags, tabs for the texts and opening hours on the phone
Tags on the place form are pills in their own colour, with a palette under the dot that recolours a tag for the whole trip (PUT /trips/:id/tags/:id was there already, the client now reaches it through repo and store) and a custom colour field of its own instead of the system picker. A new tag is made in a colour picked the same way. Description, notes and the note for one day's visit sit in one card under a switch, each with a line on where the text shows up; the day tab is named after its day and is only there with one visit in context. Nothing about the three fields changes underneath. Opening hours get a switch for open around the clock next to closed. Google writes a place open all week as one period on Sunday that never closes; it read as Sunday open and every other day closed, and now opens every day. The phone form follows the desktop: category as one field with a list, tags in one field, the texts switch, and phone, e-mail and opening hours, which it did not have. The hours and the text tabs are shared hooks (usePlaceHours, usePlaceTextTabs). Files and costs on the phone sheets are drawn as fields like the rest, and the paste hint, a keyboard shortcut a phone has no use for, is gone with its key.
This commit is contained in:
@@ -71,11 +71,11 @@ describe('MPlaceEditSheet', () => {
|
||||
setup({ editingPlace: EDITED })
|
||||
expect(screen.getByRole('dialog', { name: 'places.editPlace' })).toBeInTheDocument()
|
||||
expect(nameField()).toHaveValue('Senso-ji')
|
||||
expect(screen.getByPlaceholderText('places.formDescriptionPlaceholder')).toHaveValue('Oldest temple')
|
||||
expect(screen.getByPlaceholderText('places.formNotesPlaceholder')).toHaveValue('Go early')
|
||||
expect(screen.getByLabelText('places.formDescription')).toHaveValue('Oldest temple')
|
||||
expect(screen.getByLabelText('places.formNotes')).toHaveValue('Go early')
|
||||
expect(screen.getByPlaceholderText('places.formAddressPlaceholder')).toHaveValue('2-3-1 Asakusa')
|
||||
expect(screen.getByPlaceholderText('places.formLat')).toHaveValue('35.7148')
|
||||
expect(screen.getByPlaceholderText('places.formLng')).toHaveValue('139.7967')
|
||||
expect(screen.getByPlaceholderText('places.formLatLabel')).toHaveValue('35.7148')
|
||||
expect(screen.getByPlaceholderText('places.formLngLabel')).toHaveValue('139.7967')
|
||||
expect(screen.getByPlaceholderText('https://')).toHaveValue('https://senso-ji.jp')
|
||||
expect(screen.getByRole('button', { name: /Food/ }).className).toContain('bg-m-act')
|
||||
expect(submit()).toHaveTextContent('common.save')
|
||||
@@ -85,8 +85,8 @@ describe('MPlaceEditSheet', () => {
|
||||
const bare = { id: 43, trip_id: 1, name: 'Nameless' } as unknown as Place
|
||||
setup({ editingPlace: bare })
|
||||
expect(nameField()).toHaveValue('Nameless')
|
||||
expect(screen.getByPlaceholderText('places.formLat')).toHaveValue('')
|
||||
expect(screen.getByPlaceholderText('places.formNotesPlaceholder')).toHaveValue('')
|
||||
expect(screen.getByPlaceholderText('places.formLatLabel')).toHaveValue('')
|
||||
expect(screen.getByLabelText('places.formNotes')).toHaveValue('')
|
||||
})
|
||||
|
||||
it('FE-MOB-PLEDIT-005: reads the times off the in-context assignment, not off the place', () => {
|
||||
@@ -110,8 +110,8 @@ describe('MPlaceEditSheet', () => {
|
||||
},
|
||||
})
|
||||
expect(nameField()).toHaveValue('Tokyo Tower')
|
||||
expect(screen.getByPlaceholderText('places.formLat')).toHaveValue('35.6586')
|
||||
expect(screen.getByPlaceholderText('places.formLng')).toHaveValue('139.7454')
|
||||
expect(screen.getByPlaceholderText('places.formLatLabel')).toHaveValue('35.6586')
|
||||
expect(screen.getByPlaceholderText('places.formLngLabel')).toHaveValue('139.7454')
|
||||
expect(screen.getByPlaceholderText('places.formAddressPlaceholder')).toHaveValue('4-2-8 Shibakoen')
|
||||
expect(screen.getByPlaceholderText('https://')).toHaveValue('https://tokyotower.co.jp')
|
||||
})
|
||||
@@ -119,7 +119,7 @@ describe('MPlaceEditSheet', () => {
|
||||
it('FE-MOB-PLEDIT-007: falls back to bare coordinates when the pick carries no metadata', () => {
|
||||
setup({ prefillCoords: { lat: 1.5, lng: 2.5 } })
|
||||
expect(nameField()).toHaveValue('')
|
||||
expect(screen.getByPlaceholderText('places.formLat')).toHaveValue('1.5')
|
||||
expect(screen.getByPlaceholderText('places.formLatLabel')).toHaveValue('1.5')
|
||||
})
|
||||
|
||||
it('FE-MOB-PLEDIT-008: refuses to save without a name', () => {
|
||||
@@ -133,8 +133,8 @@ describe('MPlaceEditSheet', () => {
|
||||
it('FE-MOB-PLEDIT-009: saves the parsed form and clears every editor flag', async () => {
|
||||
const { planner } = setup()
|
||||
fireEvent.change(nameField(), { target: { value: 'Nakamise' } })
|
||||
fireEvent.change(screen.getByPlaceholderText('places.formLat'), { target: { value: '35.71' } })
|
||||
fireEvent.change(screen.getByPlaceholderText('places.formLng'), { target: { value: '139.79' } })
|
||||
fireEvent.change(screen.getByPlaceholderText('places.formLatLabel'), { target: { value: '35.71' } })
|
||||
fireEvent.change(screen.getByPlaceholderText('places.formLngLabel'), { target: { value: '139.79' } })
|
||||
fireEvent.click(screen.getByRole('button', { name: /Food/ }))
|
||||
fireEvent.click(submit())
|
||||
|
||||
@@ -151,8 +151,8 @@ describe('MPlaceEditSheet', () => {
|
||||
it('FE-MOB-PLEDIT-009b: carries the free-text fields into the save payload', async () => {
|
||||
const { planner } = setup()
|
||||
fireEvent.change(nameField(), { target: { value: 'Nakamise' } })
|
||||
fireEvent.change(screen.getByPlaceholderText('places.formDescriptionPlaceholder'), { target: { value: 'Shopping street' } })
|
||||
fireEvent.change(screen.getByPlaceholderText('places.formNotesPlaceholder'), { target: { value: 'Cash only' } })
|
||||
fireEvent.change(screen.getByLabelText('places.formDescription'), { target: { value: 'Shopping street' } })
|
||||
fireEvent.change(screen.getByLabelText('places.formNotes'), { target: { value: 'Cash only' } })
|
||||
fireEvent.change(screen.getByPlaceholderText('places.formAddressPlaceholder'), { target: { value: '1-36-3 Asakusa' } })
|
||||
fireEvent.change(screen.getByPlaceholderText('https://'), { target: { value: 'https://asakusa.example' } })
|
||||
fireEvent.click(submit())
|
||||
@@ -176,17 +176,17 @@ describe('MPlaceEditSheet', () => {
|
||||
|
||||
it('FE-MOB-PLEDIT-011: strips non-numeric characters from the coordinate fields', () => {
|
||||
setup()
|
||||
const lat = screen.getByPlaceholderText('places.formLat')
|
||||
const lat = screen.getByPlaceholderText('places.formLatLabel')
|
||||
fireEvent.change(lat, { target: { value: '3a5.7N' } })
|
||||
expect(lat).toHaveValue('35.7')
|
||||
})
|
||||
|
||||
it('FE-MOB-PLEDIT-012: a pasted "lat, lng" pair fills both coordinate fields', () => {
|
||||
setup()
|
||||
const lat = screen.getByPlaceholderText('places.formLat')
|
||||
const lat = screen.getByPlaceholderText('places.formLatLabel')
|
||||
fireEvent.paste(lat, { clipboardData: { getData: () => ' 35.6895, 139.6917 ' } })
|
||||
expect(lat).toHaveValue('35.6895')
|
||||
expect(screen.getByPlaceholderText('places.formLng')).toHaveValue('139.6917')
|
||||
expect(screen.getByPlaceholderText('places.formLngLabel')).toHaveValue('139.6917')
|
||||
})
|
||||
|
||||
it('FE-MOB-PLEDIT-047: a pasted "lat, lng" pair counts as typed, so a later pick without a position keeps it', async () => {
|
||||
@@ -205,7 +205,7 @@ describe('MPlaceEditSheet', () => {
|
||||
fireEvent.click(screen.getByRole('button', { name: 'common.search' }))
|
||||
fireEvent.click(await screen.findByText('Ueno Koen'))
|
||||
|
||||
const lat = screen.getByPlaceholderText('places.formLat')
|
||||
const lat = screen.getByPlaceholderText('places.formLatLabel')
|
||||
fireEvent.paste(lat, { clipboardData: { getData: () => '35.7101, 139.7745' } })
|
||||
|
||||
fireEvent.change(search, { target: { value: 'ameyoko' } })
|
||||
@@ -214,12 +214,12 @@ describe('MPlaceEditSheet', () => {
|
||||
|
||||
expect(nameField()).toHaveValue('Ameyoko')
|
||||
expect(lat).toHaveValue('35.7101')
|
||||
expect(screen.getByPlaceholderText('places.formLng')).toHaveValue('139.7745')
|
||||
expect(screen.getByPlaceholderText('places.formLngLabel')).toHaveValue('139.7745')
|
||||
})
|
||||
|
||||
it('FE-MOB-PLEDIT-013: an unparseable paste is left to the browser', () => {
|
||||
setup()
|
||||
const lat = screen.getByPlaceholderText('places.formLat')
|
||||
const lat = screen.getByPlaceholderText('places.formLatLabel')
|
||||
fireEvent.paste(lat, { clipboardData: { getData: () => 'Tokyo Tower' } })
|
||||
expect(lat).toHaveValue('')
|
||||
})
|
||||
@@ -274,7 +274,7 @@ describe('MPlaceEditSheet', () => {
|
||||
fireEvent.change(search, { target: { value: 'ueno koen' } })
|
||||
fireEvent.click(screen.getByRole('button', { name: 'common.search' }))
|
||||
fireEvent.click(await screen.findByText('Ueno Koen'))
|
||||
expect(screen.getByPlaceholderText('places.formLat')).toHaveValue('35.7')
|
||||
expect(screen.getByPlaceholderText('places.formLatLabel')).toHaveValue('35.7')
|
||||
|
||||
fireEvent.change(search, { target: { value: 'Lou' } })
|
||||
fireEvent.click(await screen.findByText('Louvre'))
|
||||
@@ -283,8 +283,8 @@ describe('MPlaceEditSheet', () => {
|
||||
// The same as the desktop dialog: the name is the suggestion's, the rest is what the last pick wrote.
|
||||
expect(nameField()).toHaveValue('Louvre')
|
||||
expect(screen.getByPlaceholderText('places.formAddressPlaceholder')).toHaveValue('Taito')
|
||||
expect(screen.getByPlaceholderText('places.formLat')).toHaveValue('35.7')
|
||||
expect(screen.getByPlaceholderText('places.formLng')).toHaveValue('139.7')
|
||||
expect(screen.getByPlaceholderText('places.formLatLabel')).toHaveValue('35.7')
|
||||
expect(screen.getByPlaceholderText('places.formLngLabel')).toHaveValue('139.7')
|
||||
expect(screen.getByPlaceholderText('https://')).toHaveValue('https://ueno.example')
|
||||
})
|
||||
|
||||
@@ -599,7 +599,7 @@ describe('MPlaceEditSheet', () => {
|
||||
openOnNight()
|
||||
const times = screen.getAllByDisplayValue(/^1[01]:00$/) as HTMLInputElement[]
|
||||
expect(times.map(el => el.value)).toEqual(['10:00', '11:00'])
|
||||
expect(screen.getByPlaceholderText('places.assignmentNotesPlaceholder')).toHaveValue('Late check-in')
|
||||
expect(screen.getByLabelText('places.assignmentNotes')).toHaveValue('Late check-in')
|
||||
})
|
||||
|
||||
it('FE-MOB-PLEDIT-037: saving it untouched keeps the pinned time and sends no note', async () => {
|
||||
@@ -613,7 +613,7 @@ describe('MPlaceEditSheet', () => {
|
||||
|
||||
it('FE-MOB-PLEDIT-038: an edited day note on it travels with the save', async () => {
|
||||
const { planner } = openOnNight()
|
||||
fireEvent.change(screen.getByPlaceholderText('places.assignmentNotesPlaceholder'), { target: { value: 'Key box at the door' } })
|
||||
fireEvent.change(screen.getByLabelText('places.assignmentNotes'), { target: { value: 'Key box at the door' } })
|
||||
fireEvent.click(submit())
|
||||
await waitFor(() => expect(planner.handleSavePlace).toHaveBeenCalledTimes(1))
|
||||
expect(planner.handleSavePlace).toHaveBeenCalledWith(expect.objectContaining({ assignment_notes: 'Key box at the door' }))
|
||||
@@ -726,8 +726,8 @@ describe('MPlaceEditSheet', () => {
|
||||
fireEvent.change(screen.getByPlaceholderText('places.formAddressPlaceholder'), { target: { value: '1-36-3 Asakusa' } })
|
||||
expect(screen.getByText('places.noCoordinatesFormHint')).toBeInTheDocument()
|
||||
|
||||
fireEvent.change(screen.getByPlaceholderText('places.formLat'), { target: { value: '35.71' } })
|
||||
fireEvent.change(screen.getByPlaceholderText('places.formLng'), { target: { value: '139.79' } })
|
||||
fireEvent.change(screen.getByPlaceholderText('places.formLatLabel'), { target: { value: '35.71' } })
|
||||
fireEvent.change(screen.getByPlaceholderText('places.formLngLabel'), { target: { value: '139.79' } })
|
||||
expect(screen.queryByText('places.noCoordinatesFormHint')).not.toBeInTheDocument()
|
||||
})
|
||||
|
||||
|
||||
@@ -20,36 +20,51 @@ function setup(plannerOverrides: Partial<TripPlanner> = {}, value = '') {
|
||||
return { ...view, planner, onChange }
|
||||
}
|
||||
|
||||
// The field names the category it holds; the list under it opens on a tap.
|
||||
const field = () => screen.getByRole('button', { name: /^places.formCategory:/ })
|
||||
const openList = () => fireEvent.click(field())
|
||||
|
||||
describe('PlCategoryPicker', () => {
|
||||
it('FE-MOB-PLCAT-001: renders the no-category pill plus one pill per trip category', () => {
|
||||
it('FE-MOB-PLCAT-001: one field names the category; the list under it offers none, every category and a new one', () => {
|
||||
setup()
|
||||
expect(screen.getByRole('button', { name: /places\.noCategory/ })).toBeInTheDocument()
|
||||
expect(field()).toHaveAccessibleName('places.formCategory: places.noCategory')
|
||||
expect(field()).toHaveAttribute('aria-expanded', 'false')
|
||||
expect(screen.queryByRole('button', { name: /Food/ })).not.toBeInTheDocument()
|
||||
openList()
|
||||
expect(field()).toHaveAttribute('aria-expanded', 'true')
|
||||
expect(screen.getByRole('button', { name: /^places.noCategory$/ })).toBeInTheDocument()
|
||||
expect(screen.getByRole('button', { name: /Food/ })).toBeInTheDocument()
|
||||
expect(screen.getByRole('button', { name: /Museums/ })).toBeInTheDocument()
|
||||
expect(screen.getByRole('button', { name: /mobileTrip\.newCategory/ })).toBeInTheDocument()
|
||||
expect(screen.getByRole('button', { name: /mobileTrip.newCategory/ })).toBeInTheDocument()
|
||||
})
|
||||
|
||||
it('FE-MOB-PLCAT-002: marks the no-category pill active for the empty value', () => {
|
||||
it('FE-MOB-PLCAT-002: marks "no category" picked for the empty value', () => {
|
||||
setup()
|
||||
expect(screen.getByRole('button', { name: /places\.noCategory/ }).className).toContain('bg-m-act')
|
||||
expect(screen.getByRole('button', { name: /Food/ }).className).not.toContain('bg-m-act')
|
||||
openList()
|
||||
expect(screen.getByRole('button', { name: /^places.noCategory$/ })).toHaveAttribute('aria-pressed', 'true')
|
||||
expect(screen.getByRole('button', { name: /Food/ })).toHaveAttribute('aria-pressed', 'false')
|
||||
})
|
||||
|
||||
it('FE-MOB-PLCAT-003: marks the pill of the selected id active', () => {
|
||||
it('FE-MOB-PLCAT-003: the field shows the picked category, and the list marks it', () => {
|
||||
setup({}, '4')
|
||||
expect(screen.getByRole('button', { name: /Museums/ }).className).toContain('bg-m-act')
|
||||
expect(screen.getByRole('button', { name: /places\.noCategory/ }).className).not.toContain('bg-m-act')
|
||||
expect(field()).toHaveAccessibleName('places.formCategory: Museums')
|
||||
openList()
|
||||
expect(screen.getByRole('button', { name: /Museums/ })).toHaveAttribute('aria-pressed', 'true')
|
||||
expect(screen.getByRole('button', { name: /^places.noCategory$/ })).toHaveAttribute('aria-pressed', 'false')
|
||||
})
|
||||
|
||||
it('FE-MOB-PLCAT-004: reports the picked category id as a string', () => {
|
||||
it('FE-MOB-PLCAT-004: reports the picked category id as a string and folds the list away', () => {
|
||||
const { onChange } = setup({}, '')
|
||||
openList()
|
||||
fireEvent.click(screen.getByRole('button', { name: /Food/ }))
|
||||
expect(onChange).toHaveBeenCalledWith('3')
|
||||
expect(screen.queryByRole('button', { name: /Museums/ })).not.toBeInTheDocument()
|
||||
})
|
||||
|
||||
it('FE-MOB-PLCAT-005: reports the empty value when the category is cleared', () => {
|
||||
const { onChange } = setup({}, '3')
|
||||
fireEvent.click(screen.getByRole('button', { name: /places\.noCategory/ }))
|
||||
openList()
|
||||
fireEvent.click(screen.getByRole('button', { name: /^places.noCategory$/ }))
|
||||
expect(onChange).toHaveBeenCalledWith('')
|
||||
})
|
||||
|
||||
@@ -58,6 +73,7 @@ describe('PlCategoryPicker', () => {
|
||||
tripActions.addCategory.mockResolvedValue({ id: 9, name: 'Bars' } as unknown as Category)
|
||||
const { onChange } = setup({ tripActions } as unknown as Partial<TripPlanner>)
|
||||
|
||||
openList()
|
||||
fireEvent.click(screen.getByRole('button', { name: /mobileTrip\.newCategory/ }))
|
||||
const input = screen.getByPlaceholderText('places.categoryNamePlaceholder')
|
||||
fireEvent.change(input, { target: { value: ' Bars ' } })
|
||||
@@ -65,9 +81,9 @@ describe('PlCategoryPicker', () => {
|
||||
|
||||
await waitFor(() => expect(onChange).toHaveBeenCalledWith('9'))
|
||||
expect(tripActions.addCategory).toHaveBeenCalledWith({ name: 'Bars', color: '#6366f1', icon: 'MapPin' })
|
||||
// The inline row collapses back to the dashed pill.
|
||||
// The new category is picked, so the list folds away with the name field.
|
||||
await waitFor(() => expect(screen.queryByPlaceholderText('places.categoryNamePlaceholder')).not.toBeInTheDocument())
|
||||
expect(screen.getByRole('button', { name: /mobileTrip\.newCategory/ })).toBeInTheDocument()
|
||||
expect(field()).toHaveAttribute('aria-expanded', 'false')
|
||||
})
|
||||
|
||||
it('FE-MOB-PLCAT-007: Enter in the name field creates the category', async () => {
|
||||
@@ -75,6 +91,7 @@ describe('PlCategoryPicker', () => {
|
||||
tripActions.addCategory.mockResolvedValue({ id: 12, name: 'Beaches' } as unknown as Category)
|
||||
const { onChange } = setup({ tripActions } as unknown as Partial<TripPlanner>)
|
||||
|
||||
openList()
|
||||
fireEvent.click(screen.getByRole('button', { name: /mobileTrip\.newCategory/ }))
|
||||
const input = screen.getByPlaceholderText('places.categoryNamePlaceholder')
|
||||
fireEvent.change(input, { target: { value: 'Beaches' } })
|
||||
@@ -87,6 +104,7 @@ describe('PlCategoryPicker', () => {
|
||||
const tripActions = buildTripActions()
|
||||
setup({ tripActions } as unknown as Partial<TripPlanner>)
|
||||
|
||||
openList()
|
||||
fireEvent.click(screen.getByRole('button', { name: /mobileTrip\.newCategory/ }))
|
||||
const input = screen.getByPlaceholderText('places.categoryNamePlaceholder')
|
||||
expect(screen.getByRole('button', { name: 'common.add' })).toBeDisabled()
|
||||
@@ -102,6 +120,7 @@ describe('PlCategoryPicker', () => {
|
||||
tripActions.addCategory.mockReturnValue(new Promise<Category>(resolve => { release = resolve }))
|
||||
const { onChange } = setup({ tripActions } as unknown as Partial<TripPlanner>)
|
||||
|
||||
openList()
|
||||
fireEvent.click(screen.getByRole('button', { name: /mobileTrip\.newCategory/ }))
|
||||
const input = screen.getByPlaceholderText('places.categoryNamePlaceholder')
|
||||
fireEvent.change(input, { target: { value: 'Bars' } })
|
||||
@@ -119,6 +138,7 @@ describe('PlCategoryPicker', () => {
|
||||
tripActions.addCategory.mockRejectedValue(new Error('409'))
|
||||
const { planner, onChange } = setup({ tripActions } as unknown as Partial<TripPlanner>)
|
||||
|
||||
openList()
|
||||
fireEvent.click(screen.getByRole('button', { name: /mobileTrip\.newCategory/ }))
|
||||
fireEvent.change(screen.getByPlaceholderText('places.categoryNamePlaceholder'), { target: { value: 'Bars' } })
|
||||
fireEvent.click(screen.getByRole('button', { name: 'common.add' }))
|
||||
@@ -128,8 +148,9 @@ describe('PlCategoryPicker', () => {
|
||||
expect(screen.getByPlaceholderText('places.categoryNamePlaceholder')).toHaveValue('Bars')
|
||||
})
|
||||
|
||||
it('FE-MOB-PLCAT-011: cancelling drops the draft and restores the dashed pill', () => {
|
||||
it('FE-MOB-PLCAT-011: cancelling drops the draft and restores the new-category row', () => {
|
||||
setup()
|
||||
openList()
|
||||
fireEvent.click(screen.getByRole('button', { name: /mobileTrip\.newCategory/ }))
|
||||
fireEvent.change(screen.getByPlaceholderText('places.categoryNamePlaceholder'), { target: { value: 'Bars' } })
|
||||
fireEvent.click(screen.getByRole('button', { name: 'common.cancel' }))
|
||||
@@ -141,7 +162,8 @@ describe('PlCategoryPicker', () => {
|
||||
|
||||
it('FE-MOB-PLCAT-012: tolerates a trip without any categories', () => {
|
||||
setup({ categories: undefined } as unknown as Partial<TripPlanner>)
|
||||
expect(screen.getByRole('button', { name: /places\.noCategory/ })).toBeInTheDocument()
|
||||
openList()
|
||||
expect(screen.getByRole('button', { name: /^places\.noCategory$/ })).toBeInTheDocument()
|
||||
expect(screen.queryByRole('button', { name: /Food/ })).not.toBeInTheDocument()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -28,15 +28,14 @@ function setup(props: Partial<ComponentProps<typeof PlFileAttach>> = {}) {
|
||||
}
|
||||
|
||||
describe('PlFileAttach', () => {
|
||||
it('FE-MOB-PLFILE-001: renders the files heading, the paste hint and the attach pill', () => {
|
||||
it('FE-MOB-PLFILE-001: renders the files heading and the attach field', () => {
|
||||
setup()
|
||||
expect(screen.getByText('files.title')).toBeInTheDocument()
|
||||
expect(screen.getByText('files.pasteHint')).toBeInTheDocument()
|
||||
expect(screen.getByRole('button', { name: 'files.attach' })).toBeInTheDocument()
|
||||
})
|
||||
|
||||
it('FE-MOB-PLFILE-002: hideHint drops the paste subline but keeps the heading', () => {
|
||||
setup({ hideHint: true })
|
||||
it('FE-MOB-PLFILE-002: the phone shows no paste hint, a keyboard shortcut it has no use for', () => {
|
||||
setup()
|
||||
expect(screen.getByText('files.title')).toBeInTheDocument()
|
||||
expect(screen.queryByText('files.pasteHint')).not.toBeInTheDocument()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user