mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-27 13:39:44 -08:00
29 lines
774 B
TypeScript
29 lines
774 B
TypeScript
|
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
|
||
|
});
|
||
|
});
|