test(35-03): add failing test for customized and outdated row badges

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-13 13:35:48 +01:00
parent 68e1d36fd5
commit aba512800e

View File

@@ -466,3 +466,27 @@ describe('CodeEditorField chunk failure', () => {
expect(wrapper.emitted('update:modelValue')).toEqual([['<p>Edited</p>']])
})
})
describe('RowStateBadges mail states', () => {
it('renders customized then outdated after the existing three', async () => {
const Badges = (await import('../../src/components/list/RowStateBadges.vue')).default
const wrapper = mount(Badges, {
props: {
states: ['outdated', 'customized', 'disabled', 'deleted'],
labels: {
deleted: 'Deleted',
negative: 'Negative',
disabled: 'Disabled',
customized: 'Customized',
outdated: 'File changed',
},
},
})
expect(wrapper.findAll('[data-row-state]').map((node) => node.attributes('data-row-state'))).toEqual([
'deleted',
'disabled',
'customized',
'outdated',
])
})
})