CommonTab.spec.ts 554 B

12345678910111213141516171819202122
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { describe } from 'vitest'
  3. import { renderComponent } from '#tests/support/components/index.ts'
  4. import CommonTab from '#desktop/components/CommonTabManager/CommonTab.vue'
  5. describe('CommonTab', () => {
  6. it('renders passed label', () => {
  7. const wrapper = renderComponent(CommonTab, {
  8. props: {
  9. label: 'foo',
  10. size: 'medium',
  11. },
  12. })
  13. expect(wrapper.getByText('foo')).toBeInTheDocument()
  14. })
  15. // :TODO visual regression test?
  16. })