2022-11-25 04:09:44 -08:00
|
|
|
import { WorkflowsPage as WorkflowsPageClass } from '../pages/workflows';
|
|
|
|
import { WorkflowPage as WorkflowPageClass } from '../pages/workflow';
|
|
|
|
|
|
|
|
const WorkflowsPage = new WorkflowsPageClass();
|
|
|
|
const WorkflowPage = new WorkflowPageClass();
|
|
|
|
|
|
|
|
describe('HTTP Request node', () => {
|
2022-11-28 09:11:33 -08:00
|
|
|
before(() => {
|
|
|
|
cy.resetAll();
|
2022-11-25 04:09:44 -08:00
|
|
|
cy.skipSetup();
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should make a request with a URL and receive a response', () => {
|
|
|
|
WorkflowsPage.actions.createWorkflowFromCard();
|
|
|
|
WorkflowPage.actions.addInitialNodeToCanvas('Manual Trigger');
|
|
|
|
WorkflowPage.actions.addNodeToCanvas('HTTP Request');
|
|
|
|
WorkflowPage.actions.openNodeNdv('HTTP Request');
|
2022-12-07 09:16:38 -08:00
|
|
|
WorkflowPage.actions.typeIntoParameterInput('url', 'https://catfact.ninja/fact');
|
2022-11-25 04:09:44 -08:00
|
|
|
|
|
|
|
WorkflowPage.actions.executeNodeFromNdv();
|
|
|
|
|
2022-12-07 09:16:38 -08:00
|
|
|
WorkflowPage.getters.ndvOutputPanel().contains('fact');
|
2022-11-25 04:09:44 -08:00
|
|
|
});
|
|
|
|
});
|