f14b20f76858d9bf7e5a9b3a22b1c3b5e5a1245a
1 import type { ChargingStationData
} from
'@/types'
3 import CSTable from
'@/components/charging-stations/CSTable.vue'
4 import { shallowMount
} from
'@vue/test-utils'
5 import { expect
, test
} from
'vitest'
7 test('renders CS table columns name', () => {
8 const chargingStations
: ChargingStationData
[] = []
9 const wrapper
= shallowMount(CSTable
, {
10 props
: { chargingStations
, idTag
: '0' },
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)')