mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-13 16:14:07 -08:00
9a1e7b52f7
* WIP: Merge TriggerHelperPanel with MainPanel * WIP: Implement switching between views * Remove logging * WIP: Rework search * Fix category toggling and search results display * Fix node item description * Sort actions based on the root view * Adjust personalisation modal, make trigger canvas node round * Linting fixes * Fix filtering of API options * Fix types and no result state * Cleanup * Linting fixes * Adjust mode prop for node creator tracking * Fix merging of core nodes and filtering of single placeholder actions * Lint fixes * Implement actions override, fix node creator view item spacing and increase click radius of trigger node icon * Fix keyboard view navigation * WIP: E2E Tests * Address product review * Minor fixes & cleanup * Fix tests * Some more test fixes * Add specs to check actions and panels * Update personalisation survey snapshot
37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
import { WorkflowPage as WorkflowPageClass } from '../pages/workflow';
|
|
import { NDV } from '../pages/ndv';
|
|
|
|
const WorkflowPage = new WorkflowPageClass();
|
|
const ndv = new NDV();
|
|
|
|
describe('Code node', () => {
|
|
beforeEach(() => {
|
|
cy.resetAll();
|
|
cy.skipSetup();
|
|
});
|
|
|
|
it('should execute the placeholder in all-items mode successfully', () => {
|
|
WorkflowPage.actions.visit();
|
|
WorkflowPage.actions.addInitialNodeToCanvas('Manual');
|
|
WorkflowPage.actions.addNodeToCanvas('Code');
|
|
WorkflowPage.actions.openNode('Code');
|
|
|
|
ndv.actions.execute();
|
|
|
|
WorkflowPage.getters.successToast().contains('Node executed successfully');
|
|
});
|
|
|
|
it('should execute the placeholder in each-item mode successfully', () => {
|
|
WorkflowPage.actions.visit();
|
|
WorkflowPage.actions.addInitialNodeToCanvas('Manual');
|
|
WorkflowPage.actions.addNodeToCanvas('Code');
|
|
WorkflowPage.actions.openNode('Code');
|
|
ndv.getters.parameterInput('mode').click();
|
|
ndv.actions.selectOptionInParameterDropdown('mode', 'Run Once for Each Item');
|
|
|
|
ndv.actions.execute();
|
|
|
|
WorkflowPage.getters.successToast().contains('Node executed successfully');
|
|
});
|
|
});
|