Audit the project and secure toolbox data
This commit is contained in:
parent
96af62edf0
commit
e87edda5c7
40 changed files with 2324 additions and 125 deletions
|
|
@ -1,15 +1,18 @@
|
|||
// Rôle : vérifie les dimensions, sélections et échanges de cellules du tableau réel.
|
||||
import { expect, test } from "@playwright/test";
|
||||
import { Buffer } from "node:buffer";
|
||||
import { createToolboxImportPayload } from "./helpers/toolboxImport.js";
|
||||
|
||||
async function setup(page) {
|
||||
await page.goto("/#/toolboxes");
|
||||
await page.getByText("Importer une toolbox", { exact: true }).locator('input[type="file"]').setInputFiles({
|
||||
name: "table.json", mimeType: "application/json",
|
||||
buffer: Buffer.from(JSON.stringify({
|
||||
toolbox: { id: "table-fixture", name: "Table workflows", modules: [{ id: "grid", type: "table", title: "Tableau" }] },
|
||||
modules: { grid: { rows: 3, columns: 3, cells: { A1: "2", B1: "3", C1: "=A1+B1", A2: "4", B2: "6", C3: "removed" } } },
|
||||
})),
|
||||
buffer: Buffer.from(JSON.stringify(createToolboxImportPayload({
|
||||
id: "table-fixture",
|
||||
name: "Table workflows",
|
||||
modules: [{ id: "grid", type: "table", title: "Tableau" }],
|
||||
moduleData: { grid: { rows: 3, columns: 3, cells: { A1: "2", B1: "3", C1: "=A1+B1", A2: "4", B2: "6", C3: "removed" } } },
|
||||
}))),
|
||||
});
|
||||
await page.getByRole("link", { name: "Ouvrir Table workflows", exact: true }).first().click();
|
||||
const table = page.locator('[data-module-type="table"]');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue