Skip to content

Commit

Permalink
Repeat wallpaper setting if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
DustinBrett committed Oct 12, 2024
1 parent ad728dc commit bb1e855
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions e2e/components/system/Wallpaper.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { test } from "@playwright/test";
import { expect, test } from "@playwright/test";
import {
backgroundCanvasMaybeIsVisible,
backgroundIsUrl,
Expand Down Expand Up @@ -54,15 +54,17 @@ test.describe("can set backgound", () => {
test("via image", async ({ headless, browserName, page }) => {
await backgroundCanvasMaybeIsVisible({ browserName, headless, page });

await clickFileExplorerEntry("audio.png", { page }, true);
await contextMenuIsVisible({ page });
await expect(async () => {
await clickFileExplorerEntry("audio.png", { page }, true);
await contextMenuIsVisible({ page });

await clickContextMenuEntry(/^Set as background$/, { page });
await sessionIsWriteable({ page });
await clickContextMenuEntry(/^Tile$/, { page });
await clickContextMenuEntry(/^Set as background$/, { page });
await sessionIsWriteable({ page });
await clickContextMenuEntry(/^Tile$/, { page });

await backgroundIsUrl({ page });
await canvasBackgroundIsHidden({ page });
await backgroundIsUrl({ page });
await canvasBackgroundIsHidden({ page });
}).toPass();
});
});

Expand Down

0 comments on commit bb1e855

Please sign in to comment.