feat(editor): Move element plus plugin config to design system test setup (#16319)

This commit is contained in:
Guillaume Jacquart
2025-06-13 11:46:50 +02:00
committed by GitHub
parent 396da25c62
commit 3864f0e1c1
2 changed files with 2 additions and 5 deletions

View File

@@ -1,12 +1,13 @@
import '@testing-library/jest-dom';
import { configure } from '@testing-library/vue';
import { config } from '@vue/test-utils';
import ElementPlus from 'element-plus';
import { N8nPlugin } from '@n8n/design-system/plugin';
configure({ testIdAttribute: 'data-test-id' });
config.global.plugins = [N8nPlugin];
config.global.plugins = [N8nPlugin, ElementPlus];
window.ResizeObserver =
window.ResizeObserver ||

View File

@@ -1,7 +1,5 @@
import userEvent from '@testing-library/user-event';
import { render, screen, waitFor, within } from '@testing-library/vue';
import { config } from '@vue/test-utils';
import ElementPlus from 'element-plus';
import { createComponentRenderer } from '@n8n/design-system/__tests__/render';
@@ -15,8 +13,6 @@ const getRenderedOptions = async () => {
return dropdown.querySelectorAll('.el-select-dropdown__item');
};
config.global.plugins.push(ElementPlus);
const itemFactory = () => ({
id: crypto.randomUUID() as string,
firstName: crypto.randomUUID() as string,