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:
Ricardo Espinoza
2023-11-08 08:23:57 -05:00
committed by GitHub
parent 020042ef1a
commit 8359364536
8 changed files with 251 additions and 13 deletions

View File

@@ -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}');
},