Bez popisu

CSTable.spec.ts 943B

123456789101112131415161718192021222324
  1. import type { ChargingStationData } from '@/types'
  2. import CSTable from '@/components/charging-stations/CSTable.vue'
  3. import { shallowMount } from '@vue/test-utils'
  4. import { expect, test } from 'vitest'
  5. test('renders CS table columns name', () => {
  6. const chargingStations: ChargingStationData[] = []
  7. const wrapper = shallowMount(CSTable, {
  8. props: { chargingStations, idTag: '0' },
  9. })
  10. expect(wrapper.text()).to.include('Name')
  11. expect(wrapper.text()).to.include('Started')
  12. expect(wrapper.text()).to.include('Supervision Url')
  13. expect(wrapper.text()).to.include('WebSocket State')
  14. expect(wrapper.text()).to.include('Registration Status')
  15. expect(wrapper.text()).to.include('Template')
  16. expect(wrapper.text()).to.include('Vendor')
  17. expect(wrapper.text()).to.include('Model')
  18. expect(wrapper.text()).to.include('Firmware')
  19. expect(wrapper.text()).to.include('Actions')
  20. expect(wrapper.text()).to.include('Connector(s)')
  21. })