Skip to content

Commit daf0ffd

Browse files
committed
Fix ReviewView test for showCompleted default behavior
The test expected 'Applied to board' text to be visible, but with showCompleted defaulting to false, applied proposals are now hidden. Update test to verify hidden-by-default and toggle-to-reveal behavior.
1 parent 2639709 commit daf0ffd

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

frontend/taskdeck-web/src/tests/views/ReviewView.spec.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,20 @@ describe('ReviewView', () => {
237237

238238
const { wrapper } = await mountAt('/workspace/review')
239239

240+
// Actionable proposals visible by default
240241
expect(wrapper.text()).toContain('Review required')
241242
expect(wrapper.text()).toContain('Approved, ready to apply')
242-
expect(wrapper.text()).toContain('Applied to board')
243243
expect(wrapper.text()).toContain('Approve for board')
244244
expect(wrapper.text()).toContain('Apply to board')
245245
expect(wrapper.text()).toContain('Changes stay in review until you approve them.')
246+
247+
// Applied proposals hidden by default (showCompleted is off)
248+
expect(wrapper.text()).not.toContain('Applied to board')
249+
250+
// Toggle showCompleted on to reveal applied proposals
251+
const toggle = wrapper.find('.td-review__toggle-input')
252+
await toggle.setValue(true)
253+
expect(wrapper.text()).toContain('Applied to board')
246254
})
247255

248256
it('renders capture provenance and canonical review links', async () => {

0 commit comments

Comments
 (0)