From 6ba5436c7d7faa6bf7821d7bdb383943f928face Mon Sep 17 00:00:00 2001 From: Mutasem Aldmour Date: Thu, 14 Nov 2024 18:02:09 +0100 Subject: [PATCH] fix: test --- cypress/e2e/24-ndv-paired-item.cy.ts | 48 ++++++++++++++-------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/cypress/e2e/24-ndv-paired-item.cy.ts b/cypress/e2e/24-ndv-paired-item.cy.ts index 4c6f30cc52..49257a8a12 100644 --- a/cypress/e2e/24-ndv-paired-item.cy.ts +++ b/cypress/e2e/24-ndv-paired-item.cy.ts @@ -32,30 +32,30 @@ describe('NDV', () => { ndv.getters.inputTableRow(1).invoke('attr', 'data-test-id').should('equal', 'hovering-item'); ndv.actions.dragMainPanelToRight(); - ndv.getters.inputTableRow(1).realMouseMove(10, 10); + ndv.getters.inputTableRow(1).realMouseMove(10, 1); ndv.getters.outputTableRow(4).invoke('attr', 'data-test-id').should('equal', 'hovering-item'); - ndv.getters.inputTableRow(2).realMouseMove(10, 10); + ndv.getters.inputTableRow(2).realMouseMove(10, 1); ndv.getters.outputTableRow(2).invoke('attr', 'data-test-id').should('equal', 'hovering-item'); - ndv.getters.inputTableRow(3).realMouseMove(10, 10); + ndv.getters.inputTableRow(3).realMouseMove(10, 1); ndv.getters.outputTableRow(6).invoke('attr', 'data-test-id').should('equal', 'hovering-item'); // output to input ndv.actions.dragMainPanelToLeft(); - ndv.getters.outputTableRow(1).realMouseMove(10, 10); + ndv.getters.outputTableRow(1).realMouseMove(10, 1); ndv.getters.inputTableRow(4).invoke('attr', 'data-test-id').should('equal', 'hovering-item'); - ndv.getters.outputTableRow(4).realMouseMove(10, 10); + ndv.getters.outputTableRow(4).realMouseMove(10, 1); ndv.getters.inputTableRow(1).invoke('attr', 'data-test-id').should('equal', 'hovering-item'); - ndv.getters.outputTableRow(2).realMouseMove(10, 10); + ndv.getters.outputTableRow(2).realMouseMove(10, 1); ndv.getters.inputTableRow(2).invoke('attr', 'data-test-id').should('equal', 'hovering-item'); - ndv.getters.outputTableRow(6).realMouseMove(10, 10); + ndv.getters.outputTableRow(6).realMouseMove(10, 1); ndv.getters.inputTableRow(3).invoke('attr', 'data-test-id').should('equal', 'hovering-item'); - ndv.getters.outputTableRow(1).realMouseMove(10, 10); + ndv.getters.outputTableRow(1).realMouseMove(10, 1); ndv.getters.inputTableRow(4).invoke('attr', 'data-test-id').should('equal', 'hovering-item'); }); @@ -77,32 +77,32 @@ describe('NDV', () => { ndv.actions.switchInputMode('Table'); ndv.actions.switchOutputMode('Table'); - ndv.getters.backToCanvas().realMouseMove(10, 10); // reset to default hover + ndv.getters.backToCanvas().realMouseMove(10, 1); // reset to default hover ndv.getters.outputHoveringItem().should('not.exist'); ndv.getters.parameterExpressionPreview('value').should('include.text', '1111'); ndv.actions.selectInputNode('Set1'); - ndv.getters.backToCanvas().realMouseMove(10, 10); // reset to default hover + ndv.getters.backToCanvas().realMouseMove(10, 1); // reset to default hover ndv.getters.inputTableRow(1).should('have.text', '1000'); ndv.getters.inputTableRow(1).invoke('attr', 'data-test-id').should('equal', 'hovering-item'); ndv.actions.dragMainPanelToRight(); - ndv.getters.inputTbodyCell(1, 0).realMouseMove(10, 10); + ndv.getters.inputTbodyCell(1, 0).realMouseMove(10, 1); ndv.getters.outputHoveringItem().should('have.text', '1000'); ndv.getters.parameterExpressionPreview('value').should('include.text', '1000'); ndv.actions.selectInputNode('Sort'); ndv.actions.dragMainPanelToLeft(); ndv.actions.changeOutputRunSelector('1 of 2 (6 items)'); - ndv.getters.backToCanvas().realMouseMove(10, 10); // reset to default hover + ndv.getters.backToCanvas().realMouseMove(10, 1); // reset to default hover ndv.getters.inputTableRow(1).should('have.text', '1111'); ndv.getters.inputTableRow(1).invoke('attr', 'data-test-id').should('equal', 'hovering-item'); ndv.actions.dragMainPanelToRight(); - ndv.getters.inputTbodyCell(1, 0).realMouseMove(10, 10); + ndv.getters.inputTbodyCell(1, 0).realMouseMove(10, 1); ndv.getters.outputHoveringItem().should('have.text', '1111'); ndv.getters.parameterExpressionPreview('value').should('include.text', '1111'); }); @@ -138,10 +138,10 @@ describe('NDV', () => { ndv.actions.dragMainPanelToLeft(); ndv.getters.outputTableRow(1).should('have.text', '1111'); - ndv.getters.outputTableRow(1).realMouseMove(10, 10); + ndv.getters.outputTableRow(1).realMouseMove(10, 1); ndv.getters.outputTableRow(3).should('have.text', '4444'); - ndv.getters.outputTableRow(3).realMouseMove(10, 10); + ndv.getters.outputTableRow(3).realMouseMove(10, 1); ndv.getters.inputTableRow(3).should('have.text', '4444'); ndv.getters.inputTableRow(3).invoke('attr', 'data-test-id').should('equal', 'hovering-item'); @@ -150,7 +150,7 @@ describe('NDV', () => { ndv.getters.inputTableRow(1).should('have.text', '1000'); ndv.actions.dragMainPanelToRight(); - ndv.getters.inputTableRow(1).realMouseMove(10, 10); + ndv.getters.inputTableRow(1).realMouseMove(10, 1); ndv.getters.outputTableRow(1).should('have.text', '1000'); ndv.getters @@ -161,7 +161,7 @@ describe('NDV', () => { ndv.getters.outputTableRow(3).should('have.text', '2000'); ndv.actions.dragMainPanelToLeft(); - ndv.getters.outputTableRow(3).realMouseMove(10, 10); + ndv.getters.outputTableRow(3).realMouseMove(10, 1); ndv.getters.inputTableRow(3).should('have.text', '2000'); @@ -182,14 +182,14 @@ describe('NDV', () => { ndv.actions.switchOutputBranch('False Branch (2 items)'); ndv.getters.outputTableRow(1).should('have.text', '8888'); ndv.actions.dragMainPanelToLeft(); - ndv.getters.outputTableRow(1).realMouseMove(10, 10); + ndv.getters.outputTableRow(1).realMouseMove(10, 1); ndv.getters.inputTableRow(5).should('have.text', '8888'); ndv.getters.inputTableRow(5).invoke('attr', 'data-test-id').should('equal', 'hovering-item'); ndv.getters.outputTableRow(2).should('have.text', '9999'); - ndv.getters.outputTableRow(2).realMouseMove(10, 10); + ndv.getters.outputTableRow(2).realMouseMove(10, 1); ndv.getters.inputTableRow(6).should('have.text', '9999'); @@ -205,29 +205,29 @@ describe('NDV', () => { ndv.actions.dragMainPanelToLeft(); ndv.actions.changeOutputRunSelector('1 of 2 (2 items)'); ndv.getters.outputTableRow(1).should('have.text', '8888'); - ndv.getters.outputTableRow(1).realMouseMove(10, 10); + ndv.getters.outputTableRow(1).realMouseMove(10, 1); ndv.getters.inputHoveringItem().should('not.exist'); ndv.getters.inputTableRow(1).should('have.text', '1111'); ndv.actions.dragMainPanelToRight(); - ndv.getters.inputTableRow(1).realMouseMove(10, 10); + ndv.getters.inputTableRow(1).realMouseMove(10, 1); ndv.getters.outputHoveringItem().should('not.exist'); ndv.actions.switchInputBranch('False Branch'); ndv.getters.inputTableRow(1).should('have.text', '8888'); ndv.actions.dragMainPanelToRight(); - ndv.getters.inputTableRow(1).realMouseMove(10, 10); + ndv.getters.inputTableRow(1).realMouseMove(10, 1); ndv.actions.dragMainPanelToLeft(); ndv.actions.changeOutputRunSelector('2 of 2 (4 items)'); ndv.getters.outputTableRow(1).should('have.text', '1111'); - ndv.getters.outputTableRow(1).realMouseMove(10, 10); + ndv.getters.outputTableRow(1).realMouseMove(10, 1); ndv.actions.changeOutputRunSelector('1 of 2 (2 items)'); ndv.getters.inputTableRow(1).should('have.text', '8888'); ndv.actions.dragMainPanelToRight(); - ndv.getters.inputTableRow(1).realMouseMove(10, 10); + ndv.getters.inputTableRow(1).realMouseMove(10, 1); ndv.getters.outputHoveringItem().should('have.text', '8888'); // todo there's a bug here need to fix ADO-534 // ndv.getters.outputHoveringItem().should('not.exist');