Skip to content

Commit

Permalink
test(sanity): fix date formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
RitaDias committed Nov 7, 2024
1 parent 507d425 commit 33159b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/sanity/src/core/i18n/bundles/studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,8 @@ export const studioLocaleStrings = defineLocalesResources('studio', {
'release.chip.tooltip.published-date': 'Published {{date}}',
/** Label for tooltip in chip when document is in a release that has been scheduled */
'release.chip.tooltip.scheduled-for-date': 'Scheduled for {{date}}',
/** Label for tooltip in scheduled chip without a known date */
'release.chip.tooltip.unknown-date': 'Unknown date',
/** Label for tooltip on deleted release */
'release.deleted-tooltip': 'This release has been deleted',
/** Title for creating releases dialog */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('VersionContextMenuItem', () => {
const scheduledRelease = {...mockRelease, releaseType: 'scheduled' as ReleaseType}

render(<VersionContextMenuItem release={scheduledRelease} />, {wrapper})
expect(screen.getByText('Oct 1, 2023, 3:00 AM')).toBeInTheDocument()
expect(screen.getByText('10/01/2023')).toBeInTheDocument()
})

it('renders release type as ASAP', async () => {
Expand Down

0 comments on commit 33159b4

Please sign in to comment.