mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-24 18:02:47 +08:00
fix: sidebar regression (#2195)
This commit is contained in:
@@ -179,8 +179,9 @@ test('When opening the website for the first time, the first folding sidebar wil
|
||||
const quickSearchTips = page.locator('[data-testid=quick-search-tips]');
|
||||
await expect(quickSearchTips).not.toBeVisible();
|
||||
await page.getByTestId('app-sidebar-arrow-button-collapse').click();
|
||||
await page.waitForTimeout(200);
|
||||
// fixme: when first close, the tooltip will not show
|
||||
await page.getByTestId('sliderBar-arrowButton-expand').click();
|
||||
await page.getByTestId('app-sidebar-arrow-button-collapse').click();
|
||||
const sliderBarArea = page.getByTestId('sliderBar-inner');
|
||||
await expect(sliderBarArea).not.toBeInViewport();
|
||||
await expect(quickSearchTips).toBeVisible();
|
||||
@@ -195,8 +196,8 @@ test('After appearing once, it will not appear a second time', async ({
|
||||
const quickSearchTips = page.locator('[data-testid=quick-search-tips]');
|
||||
await expect(quickSearchTips).not.toBeVisible();
|
||||
await page.getByTestId('app-sidebar-arrow-button-collapse').click();
|
||||
await page.waitForTimeout(200);
|
||||
await page.getByTestId('sliderBar-arrowButton-expand').click();
|
||||
await page.getByTestId('app-sidebar-arrow-button-collapse').click();
|
||||
const sliderBarArea = page.getByTestId('sliderBar');
|
||||
await expect(sliderBarArea).not.toBeVisible();
|
||||
await expect(quickSearchTips).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user