mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
30 lines
831 B
TypeScript
30 lines
831 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.nodeRunTooltipIndicator().should('exist');
|
|
ndv.getters.outputRunSelector().should('not.exist'); // single run
|
|
});
|
|
});
|