🐛(frontend) close panel when unmount
When the panel is unmounted, the summary and version panel should be closed.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user