-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ADO-1933-fix-tigger-connections
* master: fix(core): Ensure only leader handles waiting executions (#9014) fix(editor): Fix execution with wait node (#9051) fix(editor): Issue showing Auth2 callback section when all properties are overriden (#8999) fix(editor): Rerun failed nodes in manual executions (#9050) fix(editor): Canvas showing error toast when clicking outside of "import workflow by url" modal (#9001) fix: Workflows executed from other workflows not stopping (#9010) fix: Fix missing input panel in node details view (#9043) fix(editor): Prevent saving workflow while another save is in progress (#9048)
- Loading branch information
Showing
18 changed files
with
943 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { v4 as uuid } from 'uuid'; | ||
import { NDV, WorkflowPage as WorkflowPageClass } from '../pages'; | ||
|
||
const workflowPage = new WorkflowPageClass(); | ||
const ndv = new NDV(); | ||
|
||
describe('ADO-1338-ndv-missing-input-panel', () => { | ||
beforeEach(() => { | ||
workflowPage.actions.visit(); | ||
}); | ||
|
||
it('should show the input and output panels when node is missing input and output data', () => { | ||
cy.createFixtureWorkflow('Test_ado_1338.json', uuid()); | ||
|
||
// Execute the workflow | ||
workflowPage.getters.zoomToFitButton().click(); | ||
workflowPage.getters.executeWorkflowButton().click(); | ||
// Check success toast (works because Cypress waits enough for the element to show after the http request node has finished) | ||
workflowPage.getters.successToast().should('be.visible'); | ||
|
||
workflowPage.actions.openNode('Discourse1'); | ||
ndv.getters.inputPanel().should('be.visible'); | ||
ndv.getters.outputPanel().should('be.visible'); | ||
}); | ||
}); |
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,74 @@ | ||
import { WorkflowPage } from '../pages'; | ||
import { MessageBox as MessageBoxClass } from '../pages/modals/message-box'; | ||
|
||
const workflowPage = new WorkflowPage(); | ||
const messageBox = new MessageBoxClass(); | ||
|
||
before(() => { | ||
cy.fixture('Onboarding_workflow.json').then((data) => { | ||
cy.intercept('GET', '/rest/workflows/from-url*', { | ||
body: { data }, | ||
}).as('downloadWorkflowFromURL'); | ||
}); | ||
}); | ||
|
||
describe('Import workflow', () => { | ||
describe('From URL', () => { | ||
it('should import workflow', () => { | ||
workflowPage.actions.visit(true); | ||
workflowPage.getters.workflowMenu().click(); | ||
workflowPage.getters.workflowMenuItemImportFromURLItem().click(); | ||
|
||
messageBox.getters.modal().should('be.visible'); | ||
|
||
messageBox.getters.content().type('https://fakepage.com/workflow.json'); | ||
|
||
messageBox.getters.confirm().click(); | ||
|
||
workflowPage.actions.zoomToFit(); | ||
|
||
workflowPage.getters.canvasNodes().should('have.length', 4); | ||
|
||
workflowPage.getters.errorToast().should('not.exist'); | ||
|
||
workflowPage.getters.successToast().should('not.exist'); | ||
}); | ||
|
||
it('clicking outside modal should not show error toast', () => { | ||
workflowPage.actions.visit(true); | ||
|
||
workflowPage.getters.workflowMenu().click(); | ||
workflowPage.getters.workflowMenuItemImportFromURLItem().click(); | ||
|
||
cy.get('body').click(0, 0); | ||
|
||
workflowPage.getters.errorToast().should('not.exist'); | ||
}); | ||
|
||
it('canceling modal should not show error toast', () => { | ||
workflowPage.actions.visit(true); | ||
|
||
workflowPage.getters.workflowMenu().click(); | ||
workflowPage.getters.workflowMenuItemImportFromURLItem().click(); | ||
messageBox.getters.cancel().click(); | ||
|
||
workflowPage.getters.errorToast().should('not.exist'); | ||
}); | ||
}); | ||
|
||
describe('From File', () => { | ||
it('should import workflow', () => { | ||
workflowPage.actions.visit(true); | ||
|
||
workflowPage.getters.workflowMenu().click(); | ||
workflowPage.getters.workflowMenuItemImportFromFile().click(); | ||
workflowPage.getters | ||
.workflowImportInput() | ||
.selectFile('cypress/fixtures/Test_workflow-actions_paste-data.json', { force: true }); | ||
cy.waitForLoad(false); | ||
workflowPage.actions.zoomToFit(); | ||
workflowPage.getters.canvasNodes().should('have.length', 5); | ||
workflowPage.getters.nodeConnections().should('have.length', 5); | ||
}); | ||
}); | ||
}); |
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.