Web UI: rename some directories to a sensible name
[e-mobility-charging-stations-simulator.git] / src / ui / web / tests / unit / CSTable.spec.ts
CommitLineData
258a5c7f
JB
1import { expect } from 'chai';
2import { shallowMount } from '@vue/test-utils';
3import CSTable from '@/components/charging-stations/CSTable.vue';
f27eb751 4import type { ChargingStationData } from '@/types/ChargingStationType';
258a5c7f
JB
5
6describe('CSTable.vue', () => {
7 it('renders CS table columns name', () => {
8 const chargingStations: Record<string, ChargingStationData> = {
9 '0': {} as unknown as ChargingStationData,
10 };
11 const wrapper = shallowMount(CSTable, {
12 props: { chargingStations, idTag: '0' },
13 });
258a5c7f
JB
14 expect(wrapper.text()).to.include('Action');
15 expect(wrapper.text()).to.include('Connector');
16 expect(wrapper.text()).to.include('Status');
17 expect(wrapper.text()).to.include('Transaction');
18 expect(wrapper.text()).to.include('Name');
19 expect(wrapper.text()).to.include('Stopped');
20 expect(wrapper.text()).to.include('Registration Status');
21 expect(wrapper.text()).to.include('Vendor');
22 expect(wrapper.text()).to.include('Model');
23 expect(wrapper.text()).to.include('Firmware Version');
24 });
25});