♻️(frontend) refacto Version modal to fit with the design system

We refactored the version modal to fit
the design system. We removed some dead code and
fixed some state issues.
This commit is contained in:
Anthony LC
2026-03-20 12:20:05 +01:00
parent a4326366c2
commit d9d7b70b71
7 changed files with 73 additions and 109 deletions

View File

@@ -164,11 +164,16 @@ test.describe('Doc Version', () => {
await expect(modal.getByText('World')).toBeHidden();
await page.getByRole('button', { name: 'Restore', exact: true }).click();
await expect(page.getByText('Your current document will')).toBeVisible();
await page.getByText('If a member is editing, his').click();
await expect(
page.getByText(
"The current document will be replaced, but you'll still find it in the version history.",
),
).toBeVisible();
await page.getByLabel('Restore', { exact: true }).click();
await page.waitForTimeout(500);
await expect(page.getByText('Hello')).toBeVisible();
await expect(page.getByText('World')).toBeHidden();
});