mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
test: Set up e2e tests for HTTP Request node (#4718)
* 🧪 Add test identifiers * ⚡ Add getters * 🧪 Add initial test * ⚡ Refactor to use actions * ⚡ Refactor per Oleg's advice * 🐛 Fix overlapping input label IDs
This commit is contained in:
23
cypress/e2e/4-http-request-node.cy.ts
Normal file
23
cypress/e2e/4-http-request-node.cy.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
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', () => {
|
||||
beforeEach(() => {
|
||||
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>');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user