2024-06-07 06:12:59 -07:00
|
|
|
import { WorkflowExecutionsTab, WorkflowPage as WorkflowPageClass } from '../pages';
|
|
|
|
|
|
|
|
const workflowPage = new WorkflowPageClass();
|
|
|
|
const executionsTab = new WorkflowExecutionsTab();
|
|
|
|
|
|
|
|
describe('ADO-2106 connections should be colored correctly for pinned data in executions preview', () => {
|
|
|
|
beforeEach(() => {
|
|
|
|
workflowPage.actions.visit();
|
|
|
|
});
|
|
|
|
|
|
|
|
beforeEach(() => {
|
2024-06-12 23:39:53 -07:00
|
|
|
cy.createFixtureWorkflow('Webhook_set_pinned.json');
|
2024-06-07 06:12:59 -07:00
|
|
|
workflowPage.actions.deselectAll();
|
|
|
|
workflowPage.getters.zoomToFitButton().click();
|
|
|
|
|
|
|
|
workflowPage.getters.getConnectionBetweenNodes('Webhook', 'Set').should('have.class', 'pinned');
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should color connections for pinned data nodes for manual executions', () => {
|
|
|
|
workflowPage.actions.executeWorkflow();
|
|
|
|
|
|
|
|
executionsTab.actions.switchToExecutionsTab();
|
|
|
|
|
|
|
|
executionsTab.getters.successfulExecutionListItems().should('have.length', 1);
|
|
|
|
|
|
|
|
executionsTab.getters
|
|
|
|
.workflowExecutionPreviewIframe()
|
|
|
|
.should('be.visible')
|
|
|
|
.its('0.contentDocument.body')
|
|
|
|
.should('not.be.empty')
|
2024-06-24 03:13:18 -07:00
|
|
|
|
2024-06-07 06:12:59 -07:00
|
|
|
.then(cy.wrap)
|
2024-06-10 06:49:50 -07:00
|
|
|
.find('.jtk-connector[data-source-node="Webhook"][data-target-node="Set"]')
|
2024-06-07 06:12:59 -07:00
|
|
|
.should('have.class', 'success')
|
|
|
|
.should('have.class', 'has-run')
|
|
|
|
.should('have.class', 'pinned');
|
|
|
|
});
|
|
|
|
});
|