fix(editor): Only show push to git menu item to owners (#7766)

Removes the menu entry of "Push to Git" from the workflow menu for
non-owners, since they would not be able to push in the first place.
This commit is contained in:
Michael Auerswald
2023-11-21 15:20:15 +01:00
committed by GitHub
parent ff0b6511f7
commit 0d3d33dd1f
3 changed files with 34 additions and 9 deletions

View File

@@ -71,6 +71,7 @@ export class WorkflowPage extends BasePage {
workflowMenuItemImportFromFile: () => cy.getByTestId('workflow-menu-item-import-from-file'),
workflowMenuItemSettings: () => cy.getByTestId('workflow-menu-item-settings'),
workflowMenuItemDelete: () => cy.getByTestId('workflow-menu-item-delete'),
workflowMenuItemGitPush: () => cy.getByTestId('workflow-menu-item-push'),
// Workflow settings dialog elements
workflowSettingsModal: () => cy.getByTestId('workflow-settings-dialog'),
workflowSettingsErrorWorkflowSelect: () => cy.getByTestId('workflow-settings-error-workflow'),