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