Skip to content

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.

fix(editor): slash menu e2e (#11289)

Mirone9f939d823e36
diff --git a/tests/blocksuite/e2e/slash-menu.spec.ts b/tests/blocksuite/e2e/slash-menu.spec.ts
index 512ea680aa..9a33e3c189 100644
--- a/tests/blocksuite/e2e/slash-menu.spec.ts
+++ b/tests/blocksuite/e2e/slash-menu.spec.ts
@@ -40,7 +40,7 @@ function formatWithTimezone(date: Date, timeZone: string = 'Asia/Tokyo') {
const tokyoDate = date.toLocaleString('en-US', { timeZone });
const year = tokyoDate.split(',')[0].split('/')[2];
const month = tokyoDate.split(',')[0].split('/')[0].padStart(2, '0');
- const day = tokyoDate.split(',')[0].split('/')[1];
+ const day = tokyoDate.split(',')[0].split('/')[1].padStart(2, '0');
return `${year}-${month}-${day}`;
}