mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
22 lines
749 B
TypeScript
22 lines
749 B
TypeScript
|
import { WorkflowPage as WorkflowPageClass } from '../pages/workflow';
|
||
|
|
||
|
const WorkflowPage = new WorkflowPageClass();
|
||
|
|
||
|
describe('PAY-1858 context menu', () => {
|
||
|
it('can use context menu on saved workflow', () => {
|
||
|
WorkflowPage.actions.visit();
|
||
|
cy.createFixtureWorkflow('Test_workflow_filter.json', 'test');
|
||
|
|
||
|
WorkflowPage.getters.canvasNodes().should('have.length', 5);
|
||
|
WorkflowPage.actions.deleteNodeFromContextMenu('Then');
|
||
|
WorkflowPage.getters.canvasNodes().should('have.length', 4);
|
||
|
|
||
|
WorkflowPage.actions.hitSaveWorkflow();
|
||
|
|
||
|
cy.reload();
|
||
|
WorkflowPage.getters.canvasNodes().should('have.length', 4);
|
||
|
WorkflowPage.actions.deleteNodeFromContextMenu('Code');
|
||
|
WorkflowPage.getters.canvasNodes().should('have.length', 3);
|
||
|
});
|
||
|
});
|