fix(core): prevent floating sidebar from disappearing unexpectedly (#8477)

close AF-1475

Fixed an issue where you couldn't create collection or use the rename function in the floating sidebar.

https://github.com/user-attachments/assets/41c2b6a8-8fc9-4f8b-ab51-bd7ce2a58738
This commit is contained in:
JimmFly
2024-10-19 13:24:07 +00:00
parent 01c3a3b4c0
commit 675a010dfc
4 changed files with 29 additions and 16 deletions

View File

@@ -92,8 +92,10 @@ test('Collapse Sidebar', async ({ page }) => {
await page
.locator('[data-testid=app-sidebar-arrow-button-collapse][data-show=true]')
.click();
await page.mouse.move(500, 500);
const sliderBarArea = page.getByTestId('app-sidebar');
await sliderBarArea.hover();
await page.mouse.move(600, 500);
await page.waitForTimeout(5000);
await expect(sliderBarArea).not.toBeInViewport();
});
@@ -101,8 +103,10 @@ test('Expand Sidebar', async ({ page }) => {
await page
.locator('[data-testid=app-sidebar-arrow-button-collapse][data-show=true]')
.click();
await page.mouse.move(500, 500);
const sliderBarArea = page.getByTestId('sliderBar-inner');
const sliderBarArea = page.getByTestId('app-sidebar');
await sliderBarArea.hover();
await page.mouse.move(600, 500);
await page.waitForTimeout(5000);
await expect(sliderBarArea).not.toBeInViewport();
await page