Skip to content

Commit

Permalink
feat: live painting (#49)
Browse files Browse the repository at this point in the history
## Motivation

We improved live-painting:

- advanced python script lifecycle control
- first version of a e2e test

---------

Co-authored-by: Tim Pietrusky <[email protected]>
  • Loading branch information
pixelass and TimPietrusky authored Feb 22, 2024
1 parent ac522fe commit 416d0aa
Show file tree
Hide file tree
Showing 31 changed files with 647 additions and 158 deletions.
24 changes: 24 additions & 0 deletions playwright/live-painting.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import type { ElectronApplication, Page } from "@playwright/test";
import { test, expect } from "@playwright/test";
import { _electron as electron } from "playwright";

let electronApp: ElectronApplication;
let page: Page;

test.beforeAll(async () => {
electronApp = await electron.launch({ args: ["."] });
const isPackaged = await electronApp.evaluate(async ({ app }) => app.isPackaged);

expect(isPackaged).toBe(false);
});

test.afterAll(async () => {
await electronApp.close();
});

test.skip("Open Live Painting", async () => {
page = await electronApp.firstWindow();

await page.getByTestId("sidebar-live-painting").click();
await expect(page.url()).toContain("live-painting");
});
Loading

0 comments on commit 416d0aa

Please sign in to comment.