mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(editor): Fix SQL editor issue (#7236)
Github issue / Community forum post (link here to close automatically):
This commit is contained in:
26
cypress/e2e/29-sql-editor.cy.ts
Normal file
26
cypress/e2e/29-sql-editor.cy.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { WorkflowPage, NDV } from '../pages';
|
||||
|
||||
const workflowPage = new WorkflowPage();
|
||||
const ndv = new NDV();
|
||||
|
||||
describe('SQL editors', () => {
|
||||
beforeEach(() => {
|
||||
workflowPage.actions.visit();
|
||||
});
|
||||
|
||||
it('should preserve changes when opening-closing Postgres node', () => {
|
||||
workflowPage.actions.addInitialNodeToCanvas('Manual');
|
||||
workflowPage.actions.addNodeToCanvas('Postgres');
|
||||
workflowPage.actions.openNode('Postgres');
|
||||
ndv.getters.parameterInput('operation').click();
|
||||
cy.get('div').contains('Execute Query').click();
|
||||
cy.get('div.cm-activeLine').type('SELECT * FROM `testTable`');
|
||||
ndv.actions.close();
|
||||
workflowPage.actions.openNode('Postgres');
|
||||
cy.get('div.cm-activeLine').type('{end} LIMIT 10');
|
||||
ndv.actions.close();
|
||||
workflowPage.actions.openNode('Postgres');
|
||||
|
||||
cy.get('div.cm-activeLine').contains('SELECT * FROM `testTable` LIMIT 10');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user