mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 17:14:05 -08:00
b857c2cda0
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Co-authored-by: Mutasem Aldmour <mutasem@n8n.io>
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);
|
|
});
|
|
});
|