mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 13:27:31 -08:00
354edf6886
* feat(editor): Bring new users to empty canvas * Fix failing e2e tests and revert CLI implementation * Revert editor-ui Interface changes * Try to mock /settings and /active * Revert canvas test changes, reload after executions in 20-workflow-executions * Make sure we include manual executiosn before running them in 20-workflow-executions * Make sure to re-init node view when replacing empty workflows route, show phantom loader
42 lines
1.5 KiB
TypeScript
42 lines
1.5 KiB
TypeScript
// ***********************************************************
|
|
// This example support/e2e.js is processed and
|
|
// loaded automatically before your test files.
|
|
//
|
|
// This is a great place to put global configuration and
|
|
// behavior that modifies Cypress.
|
|
//
|
|
// You can change the location of this file or turn off
|
|
// automatically serving support files with the
|
|
// 'supportFile' configuration option.
|
|
//
|
|
// You can read more here:
|
|
// https://on.cypress.io/configuration
|
|
// ***********************************************************
|
|
|
|
import './commands';
|
|
import CustomNodeFixture from '../fixtures/Custom_node.json';
|
|
import CustomNodeWithN8nCredentialFixture from '../fixtures/Custom_node_n8n_credential.json';
|
|
import CustomNodeWithCustomCredentialFixture from '../fixtures/Custom_node_custom_credential.json';
|
|
import CustomCredential from '../fixtures/Custom_credential.json';
|
|
|
|
// Load custom nodes and credentials fixtures
|
|
beforeEach(() => {
|
|
cy.intercept('GET', '/types/nodes.json', (req) => {
|
|
req.on('response', (res) => {
|
|
const nodes = res.body || [];
|
|
|
|
res.headers['cache-control'] = 'no-cache, no-store';
|
|
nodes.push(CustomNodeFixture, CustomNodeWithN8nCredentialFixture, CustomNodeWithCustomCredentialFixture);
|
|
});
|
|
}).as('nodesIntercept');
|
|
|
|
cy.intercept('GET', '/types/credentials.json', (req) => {
|
|
req.on('response', (res) => {
|
|
const credentials = res.body || [];
|
|
|
|
res.headers['cache-control'] = 'no-cache, no-store';
|
|
credentials.push(CustomCredential);
|
|
})
|
|
}).as('credentialsIntercept');
|
|
})
|