mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
refactor: guide atoms (#2196)
This commit is contained in:
@@ -179,15 +179,13 @@ 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();
|
||||
// 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();
|
||||
await page.locator('[data-testid=quick-search-got-it]').click();
|
||||
await expect(quickSearchTips).not.toBeVisible();
|
||||
});
|
||||
|
||||
test('After appearing once, it will not appear a second time', async ({
|
||||
page,
|
||||
}) => {
|
||||
@@ -196,8 +194,6 @@ 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.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();
|
||||
@@ -205,6 +201,7 @@ test('After appearing once, it will not appear a second time', async ({
|
||||
await expect(quickSearchTips).not.toBeVisible();
|
||||
await page.reload();
|
||||
await page.waitForSelector('v-line');
|
||||
await page.getByTestId('sliderBar-arrowButton-expand').click();
|
||||
await page.getByTestId('app-sidebar-arrow-button-collapse').click();
|
||||
await expect(quickSearchTips).not.toBeVisible();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user