Skip to content

Commit

Permalink
fix(editor): Redirect to workflows list after deleting a workflow (#9546
Browse files Browse the repository at this point in the history
)
  • Loading branch information
MiloradFilipovic authored May 30, 2024
1 parent 105b11b commit cadb59f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cypress/e2e/7-workflow-actions.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
EDIT_FIELDS_SET_NODE_NAME,
INSTANCE_MEMBERS,
INSTANCE_OWNER,
WEBHOOK_NODE_NAME,
} from '../constants';
import { WorkflowPage as WorkflowPageClass } from '../pages/workflow';
import { WorkflowsPage as WorkflowsPageClass } from '../pages/workflows';
Expand Down Expand Up @@ -205,7 +204,7 @@ describe('Workflow Actions', () => {
cy.get('div[role=dialog][aria-modal=true]').should('be.visible');
cy.get('button.btn--confirm').should('be.visible').click();
WorkflowPage.getters.successToast().should('exist');
cy.url().should('include', '/workflow/new');
cy.url().should('include', WorkflowPages.url);
});

describe('duplicate workflow', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ async function onWorkflowMenuSelect(action: string): Promise<void> {
type: 'success',
});
await router.push({ name: VIEWS.NEW_WORKFLOW });
await router.push({ name: VIEWS.WORKFLOWS });
break;
}
default:
Expand Down

0 comments on commit cadb59f

Please sign in to comment.