VulpesOS/gaia/dev_apps/music-oga/test/marionette/lib/statusbar.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

28 lines
595 B
JavaScript
Executable file

/* global module */
'use strict';
function Statusbar(client) {
this.client = client;
}
module.exports = Statusbar;
Statusbar.Selector = Object.freeze({
playingIndicator: '#statusbar-playing'
});
Statusbar.prototype = {
client: null,
get playingIndicator() {
this.client.switchToFrame();
return this.client.findElement(Statusbar.Selector.playingIndicator);
},
waitForPlayingIndicatorShown: function(shouldBeShown) {
this.client.waitFor(function() {
var shown = this.playingIndicator.displayed();
return shown === shouldBeShown;
}.bind(this));
}
};