feat(core): make some tabs in sidebar persistent for all docs page (#10014)
close AF-2164 
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* eslint-disable unicorn/prefer-dom-node-dataset */
|
||||
/* oxlint-disable unicorn/prefer-dom-node-dataset */
|
||||
import { test } from '@affine-test/kit/playwright';
|
||||
import {
|
||||
changeFilter,
|
||||
@@ -80,13 +80,16 @@ test('use monthpicker to modify the month of datepicker', async ({ page }) => {
|
||||
await clickDatePicker(page);
|
||||
const lastMonth = new Date();
|
||||
lastMonth.setMonth(lastMonth.getMonth() - 1);
|
||||
await selectMonthFromMonthPicker(page, lastMonth);
|
||||
await checkDatePickerMonth(page, lastMonth);
|
||||
const datePicker = page.locator(
|
||||
'[role="dialog"] [data-testid="date-picker-calendar"]'
|
||||
);
|
||||
await selectMonthFromMonthPicker(datePicker, lastMonth);
|
||||
await checkDatePickerMonth(datePicker, lastMonth);
|
||||
// change month
|
||||
const nextMonth = new Date();
|
||||
nextMonth.setMonth(nextMonth.getMonth() + 1);
|
||||
await selectMonthFromMonthPicker(page, nextMonth);
|
||||
await checkDatePickerMonth(page, nextMonth);
|
||||
await selectMonthFromMonthPicker(datePicker, nextMonth);
|
||||
await checkDatePickerMonth(datePicker, nextMonth);
|
||||
});
|
||||
|
||||
test('allow creation of filters by tags', async ({ page }) => {
|
||||
|
||||
Reference in New Issue
Block a user