mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(editor): NDV in focus panel review batch 2 (no-changelog) (#19463)
This commit is contained in:
@@ -675,7 +675,7 @@ describe('ParameterInput.vue', () => {
|
||||
inputNode: { name: 'n1', runIndex: 0, branchIndex: 0 },
|
||||
});
|
||||
|
||||
it('should render mapper', async () => {
|
||||
it('should render mapper when the current value is empty', async () => {
|
||||
const rendered = renderComponent({
|
||||
global: { provide: { [ExpressionLocalResolveContextSymbol]: ctx } },
|
||||
props: {
|
||||
@@ -688,6 +688,37 @@ describe('ParameterInput.vue', () => {
|
||||
expect(rendered.queryByTestId('ndv-input-panel')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should render mapper when editor type is specified in the parameter', async () => {
|
||||
const rendered = renderComponent({
|
||||
global: { provide: { [ExpressionLocalResolveContextSymbol]: ctx } },
|
||||
props: {
|
||||
path: 'name',
|
||||
parameter: {
|
||||
displayName: 'Name',
|
||||
name: 'name',
|
||||
type: 'string',
|
||||
typeOptions: { editor: 'sqlEditor' },
|
||||
},
|
||||
modelValue: 'SELECT 1;',
|
||||
},
|
||||
});
|
||||
|
||||
expect(rendered.queryByTestId('ndv-input-panel')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should render mapper when the current value is an expression', async () => {
|
||||
const rendered = renderComponent({
|
||||
global: { provide: { [ExpressionLocalResolveContextSymbol]: ctx } },
|
||||
props: {
|
||||
path: 'name',
|
||||
parameter: { displayName: 'Name', name: 'name', type: 'string' },
|
||||
modelValue: '={{$today}}',
|
||||
},
|
||||
});
|
||||
|
||||
expect(rendered.queryByTestId('ndv-input-panel')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should not render mapper if given node property is a node setting', async () => {
|
||||
const rendered = renderComponent({
|
||||
global: { provide: { [ExpressionLocalResolveContextSymbol]: ctx } },
|
||||
|
||||
Reference in New Issue
Block a user