There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
test(core): fix selectMonthFromMonthPicker logic (#5498)
Peng Xiao922bc11f1647
diff --git a/tests/kit/utils/filter.ts b/tests/kit/utils/filter.tsindex 5e73966461..6985da85a2 100644--- a/tests/kit/utils/filter.ts+++ b/tests/kit/utils/filter.ts@@ -148,10 +148,10 @@ export const selectMonthFromMonthPicker = async (page: Page, date: Date) => {.getByTestId('month-picker-current-year').innerText());if (selectedYear > year) {- page.locator('[data-testid="month-picker-prev-button"]').click();+ await page.locator('[data-testid="month-picker-prev-button"]').click();return await selectMonth();} else if (selectedYear < year) {- page.locator('[data-testid="month-picker-next-button"]').click();+ await page.locator('[data-testid="month-picker-next-button"]').click();return await selectMonth();}// Click on the day cell