feat(ui): enhance charging stations list structure
[e-mobility-charging-stations-simulator.git] / ui / web / tests / unit / CSTable.spec.ts
CommitLineData
66a7748d
JB
1import { expect, test } from 'vitest'
2import { shallowMount } from '@vue/test-utils'
3import CSTable from '@/components/charging-stations/CSTable.vue'
4import type { ChargingStationData } from '@/types'
258a5c7f 5
01ff4231 6test('renders CS table columns name', () => {
66a7748d 7 const chargingStations: ChargingStationData[] = []
01ff4231 8 const wrapper = shallowMount(CSTable, {
a974c8e4 9 props: { chargingStations, idTag: '0' }
66a7748d 10 })
66a7748d
JB
11 expect(wrapper.text()).to.include('Name')
12 expect(wrapper.text()).to.include('Started')
1d41bc6b 13 expect(wrapper.text()).to.include('Supervision Url')
66a7748d
JB
14 expect(wrapper.text()).to.include('WebSocket State')
15 expect(wrapper.text()).to.include('Registration Status')
ba70f0e6 16 expect(wrapper.text()).to.include('Template')
66a7748d
JB
17 expect(wrapper.text()).to.include('Vendor')
18 expect(wrapper.text()).to.include('Model')
9dc8b66f
JB
19 expect(wrapper.text()).to.include('Firmware')
20 expect(wrapper.text()).to.include('Actions')
21 expect(wrapper.text()).to.include('Connector(s)')
66a7748d 22})