import { mount } from '@vue/test-utils'
import { describe, expect, it } from 'vitest'
import KsStatusTag from '../KsStatusTag.vue'

describe('KsStatusTag semantic and unknown contract', () => {
  it('exposes text and non-colour cues for an unknown status', () => {
    const wrapper = mount(KsStatusTag, {
      props: { value: '상태 미등록 · VENDOR_NEW', semantic: 'warning', unknown: true },
    })
    const tag = wrapper.find('.ks-status-tag')
    expect(tag.attributes('data-semantic')).toBe('warning')
    expect(tag.attributes('aria-label')).toContain('정의되지 않음')
    expect(tag.text()).toContain('?')
  })
})
