mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 01:24:05 -08:00
22 lines
598 B
TypeScript
22 lines
598 B
TypeScript
import { WorkflowPage, NDV } from '../pages';
|
|
|
|
const workflowPage = new WorkflowPage();
|
|
const ndv = new NDV();
|
|
|
|
describe('HTTP Request node', () => {
|
|
beforeEach(() => {
|
|
workflowPage.actions.visit();
|
|
});
|
|
|
|
it('should make a request with a URL and receive a response', () => {
|
|
workflowPage.actions.addInitialNodeToCanvas('Manual');
|
|
workflowPage.actions.addNodeToCanvas('HTTP Request');
|
|
workflowPage.actions.openNode('HTTP Request');
|
|
ndv.actions.typeIntoParameterInput('url', 'https://catfact.ninja/fact');
|
|
|
|
ndv.actions.execute();
|
|
|
|
ndv.getters.outputPanel().contains('fact');
|
|
});
|
|
});
|