mirror of
https://github.com/n8n-io/n8n.git
synced 2024-09-11 21:17:50 +03:00
fix(editor): Make sticky node content parameter non require to support empty stickies (#9192)
This commit is contained in:
parent
93f23ea4b2
commit
f6142ff275
@ -243,6 +243,20 @@ describe('Canvas Actions', () => {
|
||||
expect($el).to.have.css('z-index', '-158');
|
||||
});
|
||||
});
|
||||
|
||||
it('Empty sticky should not error when activating workflow', () => {
|
||||
workflowPage.actions.addSticky();
|
||||
|
||||
workflowPage.getters.stickies().should('have.length', 1);
|
||||
|
||||
workflowPage.getters.stickies().dblclick();
|
||||
|
||||
workflowPage.actions.clearSticky();
|
||||
|
||||
workflowPage.actions.addNodeToCanvas('Schedule Trigger');
|
||||
|
||||
workflowPage.actions.activateWorkflow();
|
||||
});
|
||||
});
|
||||
|
||||
type Position = {
|
||||
|
@ -419,6 +419,9 @@ export class WorkflowPage extends BasePage {
|
||||
editSticky: (content: string) => {
|
||||
this.getters.stickies().dblclick().find('textarea').clear().type(content).type('{esc}');
|
||||
},
|
||||
clearSticky: () => {
|
||||
this.getters.stickies().dblclick().find('textarea').clear().type('{esc}');
|
||||
},
|
||||
shouldHaveWorkflowName: (name: string) => {
|
||||
this.getters.workflowNameInputContainer().invoke('attr', 'title').should('include', name);
|
||||
},
|
||||
|
@ -26,7 +26,6 @@ export class StickyNote implements INodeType {
|
||||
displayName: 'Content',
|
||||
name: 'content',
|
||||
type: 'string',
|
||||
required: true,
|
||||
default:
|
||||
"## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)",
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user