♻️(frontend) add modal confirmation restore version

Add modal confirmation restore version explaining
that the current version will be replaced
by the selected version, and that some data
may be lost.
This commit is contained in:
Anthony LC
2024-09-02 16:02:21 +02:00
committed by Anthony LC
parent accbda44e2
commit 296b5dbf59
6 changed files with 193 additions and 94 deletions

View File

@@ -119,6 +119,14 @@ test.describe('Doc Version', () => {
await panel.getByLabel('Open the version options').click();
await page.getByText('Restore the version').click();
await expect(page.getByText('Restore this version?')).toBeVisible();
await page
.getByRole('button', {
name: 'Restore',
})
.click();
await expect(panel.locator('li')).toHaveCount(3);
await panel.getByText('Current version').click();