test(editor): Update 28-debug e2e tests for new canvas (no-changelog) (#12151)

This commit is contained in:
Alex Grozav 2024-12-11 17:22:42 +02:00 committed by GitHub
parent 7f3bcb964e
commit 9fc0ecb89b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -87,11 +87,28 @@ describe('Debug', () => {
confirmDialog.get('.btn--confirm').click();
cy.url().should('include', '/debug');
workflowPage.getters.canvasNodes().first().should('have.descendants', '.node-pin-data-icon');
cy.ifCanvasVersion(
() => {
workflowPage.getters
.canvasNodes()
.first()
.should('have.descendants', '.node-pin-data-icon');
workflowPage.getters
.canvasNodes()
.not(':first')
.should('not.have.descendants', '.node-pin-data-icon');
},
() => {
workflowPage.getters
.canvasNodes()
.first()
.should('have.descendants', '[data-test-id="canvas-node-status-pinned"]');
workflowPage.getters
.canvasNodes()
.not(':first')
.should('not.have.descendants', '[data-test-id="canvas-node-status-pinned"]');
},
);
cy.reload(true);
cy.wait(['@getExecution']);
@ -114,7 +131,18 @@ describe('Debug', () => {
confirmDialog.get('.btn--confirm').click();
cy.url().should('include', '/debug');
cy.ifCanvasVersion(
() => {
workflowPage.getters.canvasNodes().last().find('.node-info-icon').should('be.empty');
},
() => {
workflowPage.getters
.canvasNodes()
.last()
.find('[class*="statusIcons"]')
.should('not.exist');
},
);
workflowPage.getters.canvasNodes().first().dblclick();
ndv.actions.unPinData();