mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(editor): Add color selector to sticky node (#7453)
fixes: https://linear.app/n8n/issue/ADO-1223/feature-sticky-colors --------- Co-authored-by: Giulio Andreini <g.andreini@gmail.com> Co-authored-by: Mutasem <mutdmour@gmail.com>
This commit is contained in:
@@ -126,6 +126,7 @@ export class WorkflowPage extends BasePage {
|
||||
stickies: () => cy.getByTestId('sticky'),
|
||||
editorTabButton: () => cy.getByTestId('radio-button-workflow'),
|
||||
workflowHistoryButton: () => cy.getByTestId('workflow-history-button'),
|
||||
colors: () => cy.getByTestId('color'),
|
||||
};
|
||||
actions = {
|
||||
visit: (preventNodeViewUnload = true) => {
|
||||
@@ -328,6 +329,17 @@ export class WorkflowPage extends BasePage {
|
||||
deleteSticky: () => {
|
||||
this.getters.stickies().eq(0).realHover().find('[data-test-id="delete-sticky"]').click();
|
||||
},
|
||||
toggleColorPalette: () => {
|
||||
this.getters
|
||||
.stickies()
|
||||
.eq(0)
|
||||
.realHover()
|
||||
.find('[data-test-id="change-sticky-color"]')
|
||||
.click({ force: true });
|
||||
},
|
||||
pickColor: (index: number) => {
|
||||
this.getters.colors().eq(1).click();
|
||||
},
|
||||
editSticky: (content: string) => {
|
||||
this.getters.stickies().dblclick().find('textarea').clear().type(content).type('{esc}');
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user