🐛(frontend) close panel when unmount

When the panel is unmounted, the summary and
version panel should be closed.
This commit is contained in:
Anthony LC
2024-09-03 16:16:05 +02:00
committed by Anthony LC
parent 85044fd665
commit ddd93ab0c5
3 changed files with 27 additions and 4 deletions

View File

@@ -45,6 +45,13 @@ test.describe('Doc Version', () => {
await expect(page.getByText('Hello World')).toBeHidden();
await expect(page.getByText('It will create a version')).toBeVisible();
await page.getByLabel('Open the document options').click();
await page
.getByRole('button', {
name: 'Version history',
})
.click();
await expect(panel.getByText('Current version')).toBeVisible();
expect(await panel.locator('li').count()).toBe(2);