mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-28 12:50:50 -08:00
test(editor): Update 28-debug
e2e tests for new canvas (no-changelog) (#12151)
This commit is contained in:
parent
7f3bcb964e
commit
9fc0ecb89b
|
@ -87,11 +87,28 @@ describe('Debug', () => {
|
||||||
confirmDialog.get('.btn--confirm').click();
|
confirmDialog.get('.btn--confirm').click();
|
||||||
cy.url().should('include', '/debug');
|
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
|
workflowPage.getters
|
||||||
.canvasNodes()
|
.canvasNodes()
|
||||||
.not(':first')
|
.not(':first')
|
||||||
.should('not.have.descendants', '.node-pin-data-icon');
|
.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.reload(true);
|
||||||
cy.wait(['@getExecution']);
|
cy.wait(['@getExecution']);
|
||||||
|
@ -114,7 +131,18 @@ describe('Debug', () => {
|
||||||
confirmDialog.get('.btn--confirm').click();
|
confirmDialog.get('.btn--confirm').click();
|
||||||
cy.url().should('include', '/debug');
|
cy.url().should('include', '/debug');
|
||||||
|
|
||||||
|
cy.ifCanvasVersion(
|
||||||
|
() => {
|
||||||
workflowPage.getters.canvasNodes().last().find('.node-info-icon').should('be.empty');
|
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();
|
workflowPage.getters.canvasNodes().first().dblclick();
|
||||||
ndv.actions.unPinData();
|
ndv.actions.unPinData();
|
||||||
|
|
Loading…
Reference in a new issue