fix(editor): Redirect to workflows list after deleting a workflow (#9546)

This commit is contained in:
Milorad FIlipović 2024-05-30 11:12:56 +02:00 committed by GitHub
parent 105b11b653
commit cadb59fecb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -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';
@ -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', () => {

View file

@ -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: