[MM-56695] Consolidate desktop and mobile Notifications to one and a new desktop notification sound settings (#26198)

Этот коммит содержится в:
M-ZubairAhmed
2024-04-08 18:59:05 +00:00
коммит произвёл GitHub
родитель a81ee87832
Коммит 9698cfcc19
42 изменённых файлов: 2395 добавлений и 2780 удалений

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

@@ -4,11 +4,21 @@
export function changeDesktopNotificationAs(category) {
// # Open settings modal
cy.uiOpenSettingsModal().within(() => {
// # Click "Desktop Notifications"
cy.findByText('Desktop Notifications').should('be.visible').click();
// # Click "Desktop and mobile notifications"
cy.findByText('Desktop and mobile notifications').should('be.visible').click();
// # Select category.
cy.get(category).check();
cy.get('#sendDesktopNotificationsSection').should('exist').within(() => {
if (category === 'all') {
// # Click "For all All new messages"
cy.findByText('All new messages').should('be.visible').click({force: true});
} else if (category === 'mentions') {
// # Click "For mentions"
cy.findByText('Mentions, direct messages, and group messages').should('be.visible').click({force: true});
} else if (category === 'nothing') {
// # Click "For nothing"
cy.findByText('Nothing').should('be.visible').click({force: true});
}
});
// # Click "Save" and close the modal
cy.uiSaveAndClose();