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
|
|
@ -328,8 +328,9 @@ test("imports and exports a toolbox payload", async ({ page }) => {
|
|||
|
||||
test("opens the local automatic backup settings modal", async ({ page }) => {
|
||||
await page.goto("/#/toolboxes");
|
||||
await expect(page.getByRole("button", { name: "Sauvegarde automatique", exact: true })).toBeVisible();
|
||||
await page.getByRole("button", { name: "Sauvegarde automatique", exact: true }).click();
|
||||
const backupButton = page.locator(".sidebar-note").getByRole("button", { name: "Sauvegarde automatique", exact: true });
|
||||
await expect(backupButton).toBeVisible();
|
||||
await backupButton.click();
|
||||
|
||||
const dialog = page.getByRole("dialog", { name: "Sauvegarde automatique" });
|
||||
await expect(dialog).toBeVisible();
|
||||
|
|
@ -343,9 +344,17 @@ test("opens the local automatic backup settings modal", async ({ page }) => {
|
|||
await expect(dialog.getByText("Dossier configuré :", { exact: true })).toBeVisible();
|
||||
await expect(dialog.getByText("Aucun dossier", { exact: true })).toBeVisible();
|
||||
await expect(dialog.getByRole("checkbox")).toBeVisible();
|
||||
const [settingsBox, compatibilityBox, guideBox] = await Promise.all([
|
||||
dialog.locator(".auto-backup-settings").boundingBox(),
|
||||
dialog.locator(".auto-backup-compatibility").boundingBox(),
|
||||
dialog.locator(".auto-backup-permission-guide").boundingBox()
|
||||
]);
|
||||
expect(compatibilityBox.y).toBeGreaterThanOrEqual(settingsBox.y + settingsBox.height);
|
||||
expect(guideBox.y).toBeGreaterThanOrEqual(compatibilityBox.y + compatibilityBox.height);
|
||||
|
||||
await dialog.getByRole("button", { name: "Fermer", exact: true }).last().click();
|
||||
await expect(dialog).toHaveCount(0);
|
||||
await expect(backupButton).toBeFocused();
|
||||
});
|
||||
|
||||
test("offers an actionable backup alert without requesting permission at startup", async ({ page }) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue