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