mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-13 16:14:07 -08:00
50bd5b9080
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in> Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
27 lines
950 B
TypeScript
27 lines
950 B
TypeScript
import { v4 as uuid } from 'uuid';
|
|
import { NDV, WorkflowPage as WorkflowPageClass } from '../pages';
|
|
import { successToast } from '../pages/notifications';
|
|
|
|
const workflowPage = new WorkflowPageClass();
|
|
const ndv = new NDV();
|
|
|
|
describe('ADO-1338-ndv-missing-input-panel', () => {
|
|
beforeEach(() => {
|
|
workflowPage.actions.visit();
|
|
});
|
|
|
|
it('should show the input and output panels when node is missing input and output data', () => {
|
|
cy.createFixtureWorkflow('Test_ado_1338.json', uuid());
|
|
|
|
// Execute the workflow
|
|
workflowPage.getters.zoomToFitButton().click();
|
|
workflowPage.getters.executeWorkflowButton().click();
|
|
// Check success toast (works because Cypress waits enough for the element to show after the http request node has finished)
|
|
successToast().should('be.visible');
|
|
|
|
workflowPage.actions.openNode('Discourse1');
|
|
ndv.getters.inputPanel().should('be.visible');
|
|
ndv.getters.outputPanel().should('be.visible');
|
|
});
|
|
});
|