opsdash-app/opsdash/test/NotesPanelBg.test.ts
2026-01-13 15:18:21 +07:00

22 lines
601 B
TypeScript

import { mount } from '@vue/test-utils'
import { describe, it, expect } from 'vitest'
import NotesPanel from '../src/components/panels/NotesPanel.vue'
describe('NotesPanel background', () => {
it('applies background color', () => {
const wrapper = mount(NotesPanel, {
props: {
previous: 'old',
modelValue: 'new',
prevLabel: 'Prev',
currLabel: 'Curr',
prevTitle: '',
currTitle: '',
saving: false,
cardBg: '#abc',
},
})
expect(wrapper.find('.notes-section').attributes('style')).toContain('background')
})
})