test(desktop): shipped sidebar defaults now include the preview line

The inbox card's preview ships on, so the default row-meta contract is
['preview', 'updated'] — the reset test pins the new shipped view.
This commit is contained in:
Brooklyn Nicholson 2026-08-12 22:17:55 -05:00 committed by brooklyn!
parent 8403595f78
commit 8018f9e016
1 changed files with 3 additions and 3 deletions

View File

@ -19,10 +19,10 @@ beforeEach(() => {
})
describe('the sidebar as it ships', () => {
it('groups by date, sorts by recency, and pins the timestamp', () => {
it('groups by date, sorts by recency, and pins the timestamp and preview', () => {
expect($sidebarGrouping.get()).toBe('date')
expect($sidebarOrdering.get()).toBe('updated')
expect($sidebarRowMeta.get()).toEqual(['updated'])
expect($sidebarRowMeta.get()).toEqual(['preview', 'updated'])
})
it('offers no reset until something actually moves off the defaults', () => {
@ -44,7 +44,7 @@ describe('the sidebar as it ships', () => {
expect($sidebarGrouping.get()).toBe('date')
expect($sidebarOrdering.get()).toBe('updated')
expect($sidebarRowMeta.get()).toEqual(['updated'])
expect($sidebarRowMeta.get()).toEqual(['preview', 'updated'])
expect($sidebarViewCustomized.get()).toBe(false)
})