mirror of
https://github.com/n8n-io/n8n.git
synced 2026-09-17 17:42:47 +08:00
23 lines
642 B
TypeScript
23 lines
642 B
TypeScript
import { createComponentRenderer } from '@/__tests__/render';
|
|
import CanvasStopCurrentExecutionButton from './CanvasStopCurrentExecutionButton.vue';
|
|
|
|
const renderComponent = createComponentRenderer(CanvasStopCurrentExecutionButton);
|
|
|
|
describe('CanvasStopCurrentExecutionButton', () => {
|
|
it('should render correctly', () => {
|
|
const wrapper = renderComponent();
|
|
|
|
expect(wrapper.html()).toMatchSnapshot();
|
|
});
|
|
|
|
it('should render different title when loading', () => {
|
|
const wrapper = renderComponent({
|
|
props: {
|
|
stopping: true,
|
|
},
|
|
});
|
|
|
|
expect(wrapper.getByTitle('Stopping current execution')).toBeInTheDocument();
|
|
});
|
|
});
|