Refine toolbox navigation and local data controls
All checks were successful
Deploy Sokko G / deploy (push) Successful in 20s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 20s
This commit is contained in:
parent
954240adf9
commit
2f2e79d200
27 changed files with 614 additions and 302 deletions
|
|
@ -75,8 +75,10 @@ for (const fault of ["open", "read"]) {
|
|||
expect(await snapshot(page)).toEqual(original);
|
||||
|
||||
await page.evaluate(() => { window.location.hash = "/toolboxes"; });
|
||||
await page.getByRole("button", { name: "Données et préférences", exact: true }).click();
|
||||
const management = page.getByRole("dialog", { name: "Données et préférences" });
|
||||
const downloadPromise = page.waitForEvent("download");
|
||||
await page.getByRole("button", { name: "Exporter tout", exact: true }).click();
|
||||
await management.getByRole("button", { name: "Exporter tout", exact: true }).click();
|
||||
const download = await downloadPromise;
|
||||
const stream = await download.createReadStream();
|
||||
const chunks = [];
|
||||
|
|
@ -85,6 +87,7 @@ for (const fault of ["open", "read"]) {
|
|||
expect(exported.toolboxes[0].id).toBe("saved");
|
||||
expect(exported.modules["saved:note"].items[0].text).toBe("Ne pas perdre");
|
||||
expect(await snapshot(page)).toEqual(original);
|
||||
await management.getByRole("button", { name: "Fermer", exact: true }).last().click();
|
||||
|
||||
await page.getByRole("button", { name: "Nouvelle toolbox", exact: true }).click();
|
||||
await page.getByRole("textbox", { name: "Nom", exact: true }).fill("Après reprise");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue