Fix toolbox persistence, table evaluation, and onboarding panel styling
Some checks failed
Deploy Sokko G / deploy (push) Failing after 2s

This commit is contained in:
Shinuwa 2026-09-09 15:02:48 +02:00
parent 0171c9fc98
commit 184314d913
9 changed files with 119 additions and 32 deletions

View file

@ -7,6 +7,15 @@ import { resetSokkoStorage } from "./helpers/storage.js";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const fixturePath = path.join(__dirname, "fixtures", "toolbox-export.json");
async function collectBrowserErrors(page) {
const errors = [];
page.on("pageerror", (error) => errors.push(`pageerror: ${error.stack || error.message}`));
page.on("console", (message) => {
if (message.type() === "error") errors.push(`console: ${message.text()}`);
});
return errors;
}
async function createToolbox(page, name) {
await page.goto("/#/toolboxes");
await expect(page.getByRole("main")).toBeVisible();
@ -35,6 +44,11 @@ function tableCell(table, address) {
test.beforeEach(async ({ page }) => {
await resetSokkoStorage(page);
page.browserErrors = await collectBrowserErrors(page);
});
test.afterEach(async ({ page }) => {
expect(page.browserErrors, page.browserErrors.join("\n")).toEqual([]);
});
test("creates a toolbox and lazy-loads an added tool", async ({ page }) => {