Verify imported toolbox content in e2e
All checks were successful
Deploy Sokko G / deploy (push) Successful in 16s

This commit is contained in:
Shinuwa 2026-08-24 21:48:51 +02:00
parent 2c07545a8a
commit 602486a1d7

View file

@ -115,7 +115,16 @@ test("imports and exports a toolbox payload", async ({ page }) => {
await page.goto("/#/toolboxes"); await page.goto("/#/toolboxes");
await expect(page.getByRole("main")).toBeVisible(); await expect(page.getByRole("main")).toBeVisible();
await page.getByText("Importer une toolbox").locator("input[type='file']").setInputFiles(fixturePath); await page.getByText("Importer une toolbox").locator("input[type='file']").setInputFiles(fixturePath);
await expect(page.getByRole("link", { name: "Ouvrir Fixture Toolbox" }).first()).toBeVisible(); const importedToolboxLink = page.getByRole("link", { name: "Ouvrir Fixture Toolbox" }).first();
await expect(importedToolboxLink).toBeVisible();
await importedToolboxLink.click();
await expect(page.getByRole("heading", { name: "Fixture Toolbox" })).toBeVisible();
const importedNotepad = page.locator("[data-module-type='notepad']");
await expect(importedNotepad).toBeVisible();
await expect(importedNotepad.getByRole("heading", { name: "Fixture Notes" })).toBeVisible();
await expect(importedNotepad.getByText("Imported fixture note")).toBeVisible();
await page.goto("/#/toolboxes");
const downloadPromise = page.waitForEvent("download"); const downloadPromise = page.waitForEvent("download");
await page.getByRole("button", { name: "Exporter Fixture Toolbox" }).click(); await page.getByRole("button", { name: "Exporter Fixture Toolbox" }).click();