feat(editor): Add Alt+Meta+O keyboard shortcut for the About modal (#18530)

This commit is contained in:
Charlie Kolb
2025-08-19 15:10:40 +02:00
committed by GitHub
parent df54c10172
commit 94526b9975
4 changed files with 17 additions and 0 deletions

View File

@@ -448,4 +448,9 @@ describe('Canvas Node Manipulation and Navigation', () => {
NDVDialog.actions.close();
});
});
it('should open and close the about modal on keyboard shortcut', () => {
WorkflowPage.actions.hitOpenAbout();
cy.getByTestId('close-about-modal-button').click();
});
});

View File

@@ -390,6 +390,9 @@ export class WorkflowPage extends BasePage {
hitDisableNodeShortcut: () => {
cy.get('body').type('d');
},
hitOpenAbout: () => {
cy.get('body').type(`{alt}{${META_KEY}}o`);
},
hitCopy: () => {
this.actions.hitComboShortcut(`{${META_KEY}}`, 'c');
},