ab4abe346570f32d8debe159f00d1000cc81fb35
[e-mobility-charging-stations-simulator.git] / ui / web / tests / unit / CSTable.spec.ts
1 import { expect, test } from 'vitest';
2 import { shallowMount } from '@vue/test-utils';
3 import CSTable from '@/components/charging-stations/CSTable.vue';
4 import type { ChargingStationData } from '@/types';
5
6 test('renders CS table columns name', () => {
7 const chargingStations: ChargingStationData[] = [];
8 const wrapper = shallowMount(CSTable, {
9 props: { chargingStations, idTag: '0' },
10 });
11 expect(wrapper.text()).to.include('Action');
12 expect(wrapper.text()).to.include('Connector');
13 expect(wrapper.text()).to.include('Status');
14 expect(wrapper.text()).to.include('Transaction');
15 expect(wrapper.text()).to.include('Name');
16 expect(wrapper.text()).to.include('Started');
17 expect(wrapper.text()).to.include('WebSocket State');
18 expect(wrapper.text()).to.include('Registration Status');
19 expect(wrapper.text()).to.include('Vendor');
20 expect(wrapper.text()).to.include('Model');
21 expect(wrapper.text()).to.include('Firmware Version');
22 });