fix: Fix missing input panel in node details view (#9043)

This commit is contained in:
Tomi Turtiainen
2024-04-04 11:13:37 +03:00
committed by GitHub
parent 3c9a1d2da3
commit 71c54cba52
3 changed files with 665 additions and 15 deletions

View File

@@ -0,0 +1,25 @@
import { v4 as uuid } from 'uuid';
import { NDV, WorkflowPage as WorkflowPageClass } from '../pages';
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)
workflowPage.getters.successToast().should('be.visible');
workflowPage.actions.openNode('Discourse1');
ndv.getters.inputPanel().should('be.visible');
ndv.getters.outputPanel().should('be.visible');
});
});