mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-22 05:07:05 +00:00
electron tests (#3684)
- fix setup to run with xserver and labwc - remove electronParams from calendar_spec.js (forgotten in https://github.com/MagicMirrorOrg/MagicMirror/pull/3680) fixes [running tests locally without labwc installed](https://github.com/MagicMirrorOrg/MagicMirror/pull/3681#issuecomment-2571736233) follow up to https://github.com/MagicMirrorOrg/MagicMirror/pull/3680
This commit is contained in:
@@ -13,7 +13,12 @@ exports.startApplication = async (configFilename, systemDate = null, electronPar
|
||||
}
|
||||
process.env.mmTestMode = "true";
|
||||
|
||||
electronParams.unshift("js/electron.js", "--enable-features=UseOzonePlatform", "--ozone-platform=wayland");
|
||||
// check environment for DISPLAY or WAYLAND_DISPLAY
|
||||
if (process.env.WAYLAND_DISPLAY) {
|
||||
electronParams.unshift("js/electron.js", "--enable-features=UseOzonePlatform", "--ozone-platform=wayland");
|
||||
} else {
|
||||
electronParams.unshift("js/electron.js");
|
||||
}
|
||||
|
||||
global.electronApp = await electron.launch({ args: electronParams });
|
||||
|
||||
|
Reference in New Issue
Block a user