mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
test(editor): Wait for workflow to execute before navigating away in e2e test (no-changelog) (#13527)
This commit is contained in:
parent
6e8c401ff1
commit
24a38b99a1
|
@ -17,6 +17,7 @@ import {
|
||||||
openContextMenu,
|
openContextMenu,
|
||||||
} from '../composables/workflow';
|
} from '../composables/workflow';
|
||||||
import { NDV, WorkflowExecutionsTab } from '../pages';
|
import { NDV, WorkflowExecutionsTab } from '../pages';
|
||||||
|
import { clearNotifications, successToast } from '../pages/notifications';
|
||||||
import { WorkflowPage as WorkflowPageClass } from '../pages/workflow';
|
import { WorkflowPage as WorkflowPageClass } from '../pages/workflow';
|
||||||
|
|
||||||
const WorkflowPage = new WorkflowPageClass();
|
const WorkflowPage = new WorkflowPageClass();
|
||||||
|
@ -489,6 +490,9 @@ describe('Canvas Node Manipulation and Navigation', () => {
|
||||||
WorkflowPage.actions.addNodeToCanvas(CODE_NODE_NAME);
|
WorkflowPage.actions.addNodeToCanvas(CODE_NODE_NAME);
|
||||||
WorkflowPage.actions.executeWorkflow();
|
WorkflowPage.actions.executeWorkflow();
|
||||||
|
|
||||||
|
successToast().should('contain.text', 'Workflow executed successfully');
|
||||||
|
clearNotifications();
|
||||||
|
|
||||||
ExecutionsTab.actions.switchToExecutionsTab();
|
ExecutionsTab.actions.switchToExecutionsTab();
|
||||||
ExecutionsTab.getters.successfulExecutionListItems().should('have.length', 1);
|
ExecutionsTab.getters.successfulExecutionListItems().should('have.length', 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue