refactor(editor): Color palette updates, introduce dark mode (#6980)
Github issue / Community forum post (link here to close automatically): --------- Co-authored-by: Mutasem <mutdmour@gmail.com>
This commit is contained in:
@@ -80,14 +80,14 @@ describe('Data mapping', () => {
|
||||
.parameterExpressionPreview('value')
|
||||
.should('include.text', '0')
|
||||
.invoke('css', 'color')
|
||||
.should('equal', 'rgb(125, 125, 135)');
|
||||
.should('equal', 'rgb(113, 116, 122)');
|
||||
|
||||
ndv.getters.inputTbodyCell(2, 0).realHover();
|
||||
ndv.getters
|
||||
.parameterExpressionPreview('value')
|
||||
.should('include.text', '1')
|
||||
.invoke('css', 'color')
|
||||
.should('equal', 'rgb(125, 125, 135)');
|
||||
.should('equal', 'rgb(113, 116, 122)');
|
||||
|
||||
ndv.actions.execute();
|
||||
|
||||
@@ -96,14 +96,14 @@ describe('Data mapping', () => {
|
||||
.parameterExpressionPreview('value')
|
||||
.should('include.text', '0')
|
||||
.invoke('css', 'color')
|
||||
.should('equal', 'rgb(125, 125, 135)'); // todo update color
|
||||
.should('equal', 'rgb(113, 116, 122)'); // todo update color
|
||||
|
||||
ndv.getters.outputTbodyCell(2, 0).realHover();
|
||||
ndv.getters
|
||||
.parameterExpressionPreview('value')
|
||||
.should('include.text', '1')
|
||||
.invoke('css', 'color')
|
||||
.should('equal', 'rgb(125, 125, 135)');
|
||||
.should('equal', 'rgb(113, 116, 122)');
|
||||
});
|
||||
|
||||
it('maps expressions from json view', () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { INSTANCE_MEMBERS, INSTANCE_OWNER } from '../constants';
|
||||
import { SettingsUsersPage, WorkflowPage } from '../pages';
|
||||
import { MainSidebar, SettingsSidebar, SettingsUsersPage, WorkflowPage } from '../pages';
|
||||
import { PersonalSettingsPage } from '../pages/settings-personal';
|
||||
|
||||
/**
|
||||
@@ -25,6 +25,8 @@ const updatedPersonalData = {
|
||||
const usersSettingsPage = new SettingsUsersPage();
|
||||
const workflowPage = new WorkflowPage();
|
||||
const personalSettingsPage = new PersonalSettingsPage();
|
||||
const settingsSidebar = new SettingsSidebar();
|
||||
const mainSidebar = new MainSidebar();
|
||||
|
||||
describe('User Management', { disableAutoLogin: true }, () => {
|
||||
before(() => cy.enableFeature('sharing'));
|
||||
@@ -55,6 +57,21 @@ describe('User Management', { disableAutoLogin: true }, () => {
|
||||
usersSettingsPage.getters.userActionsToggle(INSTANCE_MEMBERS[1].email).should('exist');
|
||||
});
|
||||
|
||||
it('should be able to change theme', () => {
|
||||
personalSettingsPage.actions.loginAndVisit(INSTANCE_OWNER.email, INSTANCE_OWNER.password);
|
||||
|
||||
personalSettingsPage.actions.changeTheme('Dark');
|
||||
cy.get('body').should('have.attr', 'data-theme', 'dark');
|
||||
settingsSidebar.actions.back();
|
||||
mainSidebar.getters.logo().should('have.attr', 'src', '/n8n-dev-logo-dark-mode.svg');
|
||||
|
||||
cy.visit(personalSettingsPage.url);
|
||||
personalSettingsPage.actions.changeTheme('Light');
|
||||
cy.get('body').should('have.attr', 'data-theme', 'light');
|
||||
settingsSidebar.actions.back();
|
||||
mainSidebar.getters.logo().should('have.attr', 'src', '/n8n-dev-logo.svg');
|
||||
});
|
||||
|
||||
it('should delete user and their data', () => {
|
||||
usersSettingsPage.actions.loginAndVisit(INSTANCE_OWNER.email, INSTANCE_OWNER.password, true);
|
||||
usersSettingsPage.actions.opedDeleteDialog(INSTANCE_MEMBERS[0].email);
|
||||
|
||||
Reference in New Issue
Block a user