mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
feat(editor): Move element plus plugin config to design system test setup (#16319)
This commit is contained in:
committed by
GitHub
parent
396da25c62
commit
3864f0e1c1
@@ -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 ||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user