CommonHelpText.spec.ts 849 B

1234567891011121314151617181920212223242526
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { renderComponent } from '#tests/support/components/index.ts'
  3. import CommonHelpText from '#desktop/components/CommonPageHelp/CommonHelpText.vue'
  4. describe('CommonHelpText', () => {
  5. it('supports single Paragraph', () => {
  6. const wrapper = renderComponent(CommonHelpText, {
  7. props: {
  8. helpText: 'Hello Test World!',
  9. },
  10. })
  11. expect(wrapper.getByText('Hello Test World!')).toBeInTheDocument()
  12. })
  13. it('supports multiple Paragraph', () => {
  14. const wrapper = renderComponent(CommonHelpText, {
  15. props: {
  16. helpText: ['Hello Test World!', 'Hello Foo World!'],
  17. },
  18. })
  19. expect(wrapper.getByText('Hello Test World!')).toBeInTheDocument()
  20. expect(wrapper.getByText('Hello Foo World!')).toBeInTheDocument()
  21. })
  22. })