VulpesOS/gaia/apps/settings/test/marionette/app/regions/notifications.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

36 lines
847 B
JavaScript
Executable file

'use strict';
var Base = require('../base');
/**
* Abstraction around settings notification panel
* @constructor
* @param {Marionette.Client} client for operations.
*/
function NotificationsPanel(client) {
// Call the Base constructor to initiate base class.
Base.call(this, client, null, NotificationsPanel.Selectors);
}
module.exports = NotificationsPanel;
NotificationsPanel.Selectors = {
'showOnLockScreenCheckbox': '#notifications gaia-switch'
};
NotificationsPanel.prototype = {
__proto__: Base.prototype,
get isShowOnLockScreenEnabled() {
return this.findElement('showOnLockScreenCheckbox')
.getAttribute('checked') &&
this.client.settings.get('lockscreen.notifications-preview.enabled');
},
tapOnShowOnLockScreen: function() {
this.waitForElement('showOnLockScreenCheckbox').click();
}
};