mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
1c36c37a12
* test(editor): Fix default-owner and credentials saving e2e specs * test(editor): fix webhook node test * test(editor): add cy command for browser permissions * test(editor): add cy command for reading clipboard * Fix 3-default-owner spec * Resolve review comments * Merge spec * Fix http node and expression editor modal specs * Add optional param to credentials modal saving action to wait for the test endpoint * Improve sidebar items clicking and increase credentials saving timeout * Rename http e2e spec to fix ordering * Fix pasting and copying of nodes e2e spec * Make sure to only access error.cause if it exists * Wait longer for the keyboard press * Make sure to focus the body when typing * Try type delay * Use meta key based on the running platform * Fix flaky workflowTagElements getter Co-authored-by: Csaba Tuncsik <csaba@n8n.io>
25 lines
828 B
TypeScript
25 lines
828 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://catfact.ninja/fact');
|
|
|
|
WorkflowPage.actions.executeNodeFromNdv();
|
|
|
|
WorkflowPage.getters.ndvOutputPanel().contains('fact');
|
|
});
|
|
});
|