test(35-03): add failing test for customized and outdated row badges
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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',
|
||||
])
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user