mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
* feat: Make use of db:reset in all test suites * refactor: Rename task to no longer use db: prefix * feat: wrap cypress tasks into commands * refactor: rename resetDatabase to resetAll * fix: update test:e2e:all to use --headless
25 lines
831 B
TypeScript
25 lines
831 B
TypeScript
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', () => {
|
|
before(() => {
|
|
cy.resetAll();
|
|
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');
|
|
WorkflowPage.actions.typeIntoParameterInput('url', 'https://google.com');
|
|
|
|
WorkflowPage.actions.executeNodeFromNdv();
|
|
|
|
WorkflowPage.getters.ndvOutputPanel().contains('<!doctype html>');
|
|
});
|
|
});
|