mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
refactor(core): Move frontend settings to @n8n/api-types (no-changelog) (#10856)
This commit is contained in:
committed by
GitHub
parent
3c15890a5b
commit
430c14ad19
@@ -15,6 +15,7 @@
|
||||
"start": "cd ..; pnpm start"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@n8n/api-types": "workspace:*",
|
||||
"@types/lodash": "catalog:",
|
||||
"eslint-plugin-cypress": "^3.3.0",
|
||||
"n8n-workflow": "workspace:*"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import 'cypress-real-events';
|
||||
import FakeTimers from '@sinonjs/fake-timers';
|
||||
import type { IN8nUISettings } from 'n8n-workflow';
|
||||
import type { FrontendSettings } from '@n8n/api-types';
|
||||
import { WorkflowPage } from '../pages';
|
||||
import {
|
||||
BACKEND_BASE_URL,
|
||||
@@ -86,8 +86,8 @@ Cypress.Commands.add('signout', () => {
|
||||
cy.getCookie(N8N_AUTH_COOKIE).should('not.exist');
|
||||
});
|
||||
|
||||
export let settings: Partial<IN8nUISettings>;
|
||||
Cypress.Commands.add('overrideSettings', (value: Partial<IN8nUISettings>) => {
|
||||
export let settings: Partial<FrontendSettings>;
|
||||
Cypress.Commands.add('overrideSettings', (value: Partial<FrontendSettings>) => {
|
||||
settings = value;
|
||||
});
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Load type definitions that come with Cypress module
|
||||
/// <reference types="cypress" />
|
||||
|
||||
import type { IN8nUISettings } from 'n8n-workflow';
|
||||
import type { FrontendSettings } from '@n8n/api-types';
|
||||
|
||||
Cypress.Keyboard.defaults({
|
||||
keystrokeDelay: 0,
|
||||
@@ -45,7 +45,7 @@ declare global {
|
||||
*/
|
||||
signinAsMember(index?: number): void;
|
||||
signout(): void;
|
||||
overrideSettings(value: Partial<IN8nUISettings>): void;
|
||||
overrideSettings(value: Partial<FrontendSettings>): void;
|
||||
enableFeature(feature: string): void;
|
||||
disableFeature(feature: string): void;
|
||||
enableQueueMode(): void;
|
||||
|
||||
Reference in New Issue
Block a user