mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-27 04:12:38 -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();
|
||||
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();
|
||||
|
|
Loading…
Reference in a new issue