mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 00:20:05 +01:00
Wallpaper test tweaks
This commit is contained in:
parent
6bb612d32d
commit
f8152f4b73
|
|
@ -85,7 +85,7 @@ const useWallpaper = (
|
|||
);
|
||||
const loadWallpaper = useCallback(
|
||||
async (keepCanvas?: boolean) => {
|
||||
if (!desktopRef.current) return;
|
||||
if (!desktopRef.current || window.DEBUG_DISABLE_WALLPAPER) return;
|
||||
|
||||
let config: WallpaperConfig | undefined;
|
||||
const { matches: prefersReducedMotion } = window.matchMedia(
|
||||
|
|
@ -487,7 +487,7 @@ const useWallpaper = (
|
|||
]);
|
||||
|
||||
useEffect(() => {
|
||||
if (sessionLoaded && !window.DEBUG_DISABLE_WALLPAPER) {
|
||||
if (sessionLoaded) {
|
||||
if (wallpaperTimerRef.current) {
|
||||
window.clearTimeout(wallpaperTimerRef.current);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import {
|
|||
contextMenuIsVisible,
|
||||
desktopIsVisible,
|
||||
didCaptureConsoleLogs,
|
||||
disableWallpaper,
|
||||
fileExplorerEntriesAreVisible,
|
||||
loadAppWithCanvas,
|
||||
mockPictureSlideshowRequest,
|
||||
|
|
@ -46,6 +47,7 @@ test("can change background", async ({ headless, browserName, page }) => {
|
|||
});
|
||||
|
||||
test.describe("can set backgound", () => {
|
||||
test.beforeEach(disableWallpaper);
|
||||
test.beforeEach(async ({ page }) => page.goto("/?url=/System/Icons/48x48"));
|
||||
test.beforeEach(windowsAreVisible);
|
||||
test.beforeEach(fileExplorerEntriesAreVisible);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user