mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user