feat(editor): Redirect users to canvas if they don't have any workflows (#5629)
* 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
This commit is contained in:
@@ -22,22 +22,20 @@ import CustomCredential from '../fixtures/Custom_credential.json';
|
||||
// Load custom nodes and credentials fixtures
|
||||
beforeEach(() => {
|
||||
cy.intercept('GET', '/types/nodes.json', (req) => {
|
||||
req.continue((res) => {
|
||||
const nodes = res.body;
|
||||
req.on('response', (res) => {
|
||||
const nodes = res.body || [];
|
||||
|
||||
res.headers['cache-control'] = 'no-cache, no-store';
|
||||
nodes.push(CustomNodeFixture, CustomNodeWithN8nCredentialFixture, CustomNodeWithCustomCredentialFixture);
|
||||
res.send(nodes);
|
||||
});
|
||||
}).as('nodesIntercept');
|
||||
|
||||
cy.intercept('GET', '/types/credentials.json', (req) => {
|
||||
req.continue((res) => {
|
||||
const credentials = res.body;
|
||||
req.on('response', (res) => {
|
||||
const credentials = res.body || [];
|
||||
|
||||
res.headers['cache-control'] = 'no-cache, no-store';
|
||||
credentials.push(CustomCredential);
|
||||
res.send(credentials);
|
||||
});
|
||||
})
|
||||
}).as('credentialsIntercept');
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user