Skip to content

Commit

Permalink
test(editor): Wait for workflow to execute before navigating away in …
Browse files Browse the repository at this point in the history
…e2e test (no-changelog) (#13527)
  • Loading branch information
alexgrozav authored Feb 26, 2025
1 parent 6e8c401 commit 24a38b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cypress/e2e/12-canvas.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
openContextMenu,
} from '../composables/workflow';
import { NDV, WorkflowExecutionsTab } from '../pages';
import { clearNotifications, successToast } from '../pages/notifications';
import { WorkflowPage as WorkflowPageClass } from '../pages/workflow';

const WorkflowPage = new WorkflowPageClass();
Expand Down Expand Up @@ -489,6 +490,9 @@ describe('Canvas Node Manipulation and Navigation', () => {
WorkflowPage.actions.addNodeToCanvas(CODE_NODE_NAME);
WorkflowPage.actions.executeWorkflow();

successToast().should('contain.text', 'Workflow executed successfully');
clearNotifications();

ExecutionsTab.actions.switchToExecutionsTab();
ExecutionsTab.getters.successfulExecutionListItems().should('have.length', 1);

Expand Down

0 comments on commit 24a38b9

Please sign in to comment.