[MM-56695] Consolidate desktop and mobile Notifications to one and a new desktop notification sound settings (#26198)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a81ee87832
Коммит
9698cfcc19
@@ -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();
|
||||
|
||||
Ссылка в новой задаче
Block a user