mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
fix(editor): Redirect to workflows list after deleting a workflow (#9546)
This commit is contained in:
parent
105b11b653
commit
cadb59fecb
|
@ -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', () => {
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue