Unit test for DateRange fixed. Snapshots updated.

This commit is contained in:
Andrey Eremchenko 2021-08-26 23:04:01 +07:00
parent 5e1115c1f2
commit e299940cad
3 changed files with 5 additions and 8 deletions

View file

@ -43,11 +43,7 @@ exports[`components/properties/dateRange returns default correctly 1`] = `
class="Button "
type="button"
>
<span>
<span
title="Empty"
/>
</span>
<span />
</button>
</div>
</div>

View file

@ -60,6 +60,7 @@ describe('components/properties/dateRange', () => {
<DateRange
className='octo-propertyvalue'
value={''}
showEmptyPlaceholder={true}
onChange={callback}
/>,
)
@ -68,7 +69,7 @@ describe('components/properties/dateRange', () => {
const fifteenth = Date.UTC(date.getFullYear(), date.getMonth(), 15, 12)
const {getByText, getByTitle} = render(component)
const dayDisplay = getByTitle('Empty')
const dayDisplay = getByText('Empty')
userEvent.click(dayDisplay)
const day = getByText('15')
@ -86,13 +87,14 @@ describe('components/properties/dateRange', () => {
<DateRange
className='octo-propertyvalue'
value={''}
showEmptyPlaceholder={true}
onChange={callback}
/>,
)
// open modal
const {getByText, getByTitle} = render(component)
const dayDisplay = getByTitle('Empty')
const dayDisplay = getByText('Empty')
userEvent.click(dayDisplay)
// select start date

View file

@ -7,7 +7,6 @@ exports[`components/properties/link returns link properties correctly 1`] = `
>
<input
class="Editable octo-propertyvalue"
placeholder=""
title="https://github.com/mattermost/focalboard"
value="https://github.com/mattermost/focalboard"
/>