VulpesOS/gaia/apps/system/test/marionette/lockscreen_disabled_test.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

37 lines
1 KiB
JavaScript
Executable file

'use strict';
marionette('lockscreen disabled test', function() {
var assert = require('assert');
/**
Return the protocol + domain of the homescreen app.
@return {String} prefix of homescreen iframe.
*/
function homeDomain() {
var homescreenManifest = client.settings.get('homescreen.manifestURL');
var homescreen = homescreenManifest.split('/');
homescreen.pop();
return homescreen.join('/');
}
var client = marionette.client();
test.skip('launch test app', function() {
// XXX: this should be replaced with a region when we have fuller test
// coverage.
var lockscreen =
client.findElement('.lockScreenWindow.active');
// this is a race condition so we must wait for the lockscreen to be hidden.
// if we disalbe LockScreen, LockScreen window should never be instantiated.
client.waitFor(function() {
return !lockscreen;
});
var homescreen =
client.findElement('iframe[src*="' + homeDomain() + '"]');
assert(homescreen.displayed(), 'homescreen is visible');
});
});