</select>
</div>
<div class="modern-bar__group">
- <ActionButton
+ <!-- <ActionButton
variant="ghost"
:pending="refreshPending"
title="Refresh charging stations"
@click="$emit('refresh')"
>
Refresh
- </ActionButton>
+ </ActionButton> -->
<ActionButton
variant="primary"
@click="$emit('add')"
expect(wrapper.emitted('switch-server')).toEqual([[1]])
})
- it('should emit refresh when refresh button is clicked', async () => {
- const wrapper = mountBar()
- const [refreshBtn] = wrapper.findAll('.modern-btn')
- await refreshBtn.trigger('click')
- expect(wrapper.emitted('refresh')).toHaveLength(1)
- })
+ // it('should emit refresh when refresh button is clicked', async () => {
+ // const wrapper = mountBar()
+ // const [refreshBtn] = wrapper.findAll('.modern-btn')
+ // await refreshBtn.trigger('click')
+ // expect(wrapper.emitted('refresh')).toHaveLength(1)
+ // })
it('should emit add when add-stations button is clicked', async () => {
const wrapper = mountBar()