Release RuneStone 0.1.4 with installable plugins and settings
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { mockFeaturePlugins } from "./pluginMocks.mjs";
|
||||
// Run against `pnpm dev`. PLAYWRIGHT_MODULE may point to a shared installation.
|
||||
import { createRequire } from "node:module";
|
||||
import assert from "node:assert/strict";
|
||||
@@ -71,6 +72,8 @@ await page.addInitScript(() => {
|
||||
window.__TAURI_EVENT_PLUGIN_INTERNALS__ = { unregisterListener: (_event, id) => callbacks.delete(id) };
|
||||
window.__TEST__ = { files, calls, emit, root };
|
||||
});
|
||||
await mockFeaturePlugins(page);
|
||||
|
||||
|
||||
const count = command => page.evaluate(command => window.__TEST__.calls.filter(c => c.command === command).length, command);
|
||||
const waitCount = (command, n) => page.waitForFunction(({ command, n }) => window.__TEST__.calls.filter(c => c.command === command).length === n, { command, n });
|
||||
@@ -78,7 +81,7 @@ const click = name => page.getByRole("button", { name, exact: true }).click();
|
||||
const menu = name => page.getByRole("menuitem", { name, exact: true }).click();
|
||||
const writes = () => page.evaluate(() => window.__TEST__.calls.filter(c => c.command === "pty_write").map(c => c.args.data).join(""));
|
||||
try {
|
||||
await page.goto("http://127.0.0.1:1420");
|
||||
await page.goto(process.env.SMOKE_URL || "http://127.0.0.1:1420");
|
||||
await page.getByText("smoke-workspace", { exact: true }).waitFor();
|
||||
await click("Terminal");
|
||||
await waitCount("pty_open", 1);
|
||||
@@ -181,7 +184,7 @@ try {
|
||||
await waitCount("pty_open", 8);
|
||||
await page.keyboard.press("Control+Shift+Alt+Backquote");
|
||||
await waitCount("pty_new_window", 2);
|
||||
await page.goto("http://127.0.0.1:1420/?terminalWindow=C%3A%5Csmoke-workspace");
|
||||
await page.goto((process.env.SMOKE_URL || "http://127.0.0.1:1420") + "/?terminalWindow=C%3A%5Csmoke-workspace");
|
||||
await waitCount("pty_open", 1);
|
||||
assert.equal(await count("workspace_open"), 0);
|
||||
assert.equal(await page.getByRole("button", { name: "Close terminal window", exact: true }).count(), 1);
|
||||
|
||||
Reference in New Issue
Block a user