-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(editor): Fix SQL editor issue (#7236)
Github issue / Community forum post (link here to close automatically):
- Loading branch information
1 parent
e8e44f6
commit 647fc6c
Showing
7 changed files
with
167 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.