fix(editor): Prevent excess runs in manual execution with run data (#9259)
This commit is contained in:
28
cypress/e2e/40-manual-partial-execution.cy.ts
Normal file
28
cypress/e2e/40-manual-partial-execution.cy.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { NDV, WorkflowPage } from '../pages';
|
||||
|
||||
const canvas = new WorkflowPage();
|
||||
const ndv = new NDV();
|
||||
|
||||
describe('Manual partial execution', () => {
|
||||
it('should execute parent nodes with no run data only once', () => {
|
||||
canvas.actions.visit();
|
||||
|
||||
cy.fixture('manual-partial-execution.json').then((data) => {
|
||||
cy.get('body').paste(JSON.stringify(data));
|
||||
});
|
||||
|
||||
canvas.actions.zoomToFit();
|
||||
|
||||
canvas.actions.openNode('Edit Fields');
|
||||
|
||||
cy.get('button').contains('Test step').click(); // create run data
|
||||
cy.get('button').contains('Test step').click(); // use run data
|
||||
|
||||
ndv.actions.close();
|
||||
|
||||
canvas.actions.openNode('Webhook1');
|
||||
|
||||
ndv.getters.nodeRunSuccessIndicator().should('exist');
|
||||
ndv.getters.outputRunSelector().should('not.exist'); // single run
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user