[MM-59060] Remove pre release features section from advanced section of user settings (#27608)

Этот коммит содержится в:
M-ZubairAhmed
2024-07-18 13:01:57 +00:00
коммит произвёл GitHub
родитель eaa3c86a6a
Коммит e2d7d2d23c
19 изменённых файлов: 13 добавлений и 241 удалений

Просмотреть файл

@@ -60,10 +60,6 @@ describe('Verify Accessibility Support in different sections in Settings and Pro
{key: 'advancedCtrlSend', label: `Send Messages on ${isMac() ? '⌘+ENTER' : 'CTRL+ENTER'}`, type: 'radio'},
{key: 'formatting', label: 'Enable Post Formatting', type: 'radio'},
{key: 'joinLeave', label: 'Enable Join/Leave Messages', type: 'radio'},
// As only setting in advancedPreviewFeatures was related to editor preview this isn't required at the moment,
// may later on we can add it if we add more settings inside it
// {key: 'advancedPreviewFeatures', label: 'Preview Pre-release Features', type: 'checkbox'},
],
};
let url;

Просмотреть файл

@@ -14,7 +14,6 @@ describe('Messaging', () => {
before(() => {
// # Login as test user and visit off-topic
cy.apiInitSetup({loginAfter: true}).then(({offTopicUrl}) => {
cy.apiSaveShowMarkdownPreviewPreference();
cy.visit(offTopicUrl);
cy.postMessage('hello');
});

Просмотреть файл

@@ -143,8 +143,6 @@ describe('Message', () => {
});
it('MM-T3307 Focus remains in the RHS text box', () => {
cy.apiSaveShowMarkdownPreviewPreference();
cy.postMessage(MESSAGES.MEDIUM);
// # Open reply thread (RHS)

Просмотреть файл

@@ -72,7 +72,6 @@
"EnableUserStatuses": true,
"ExperimentalEnableAuthenticationTransfer": true,
"ClusterLogTimeoutMilliseconds": 2000,
"EnablePreviewFeatures": true,
"EnableTutorial": true,
"EnableOnboardingFlow": false,
"ExperimentalEnableDefaultChannelLeaveJoinMessages": true,

Просмотреть файл

@@ -73,7 +73,6 @@
"EnableUserStatuses": true,
"ExperimentalEnableAuthenticationTransfer": true,
"ClusterLogTimeoutMilliseconds": 2000,
"EnablePreviewFeatures": true,
"EnableTutorial": true,
"EnableOnboardingFlow": false,
"ExperimentalEnableDefaultChannelLeaveJoinMessages": true,

Просмотреть файл

@@ -76,24 +76,6 @@ Cypress.Commands.add('apiSaveMessageDisplayPreference', (value = 'clean') => {
});
});
/**
* Saves show markdown preview option preference of a user directly via API
* This API assume that the user is logged in and has cookie to access
* @param {String} value - Either "true" to show the options (default) or "false"
*/
Cypress.Commands.add('apiSaveShowMarkdownPreviewPreference', (value = 'true') => {
return cy.getCookie('MMUSERID').then((cookie) => {
const preference = {
user_id: cookie.value,
category: 'advanced_settings',
name: 'feature_enabled_markdown_preview',
value,
};
return cy.apiSaveUserPreference([preference]);
});
});
/**
* Saves teammate name display preference of a user directly via API
* This API assume that the user is logged in and has cookie to access

Просмотреть файл

@@ -159,7 +159,6 @@ const defaultServerConfig: AdminConfig = {
EnableUserStatuses: true,
ExperimentalEnableAuthenticationTransfer: true,
ClusterLogTimeoutMilliseconds: 2000,
EnablePreviewFeatures: true,
EnableTutorial: true,
EnableOnboardingFlow: true,
ExperimentalEnableDefaultChannelLeaveJoinMessages: true,