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
feat(core): add an option to throttle cpu in e2e (#5803)
Peng Xiaoafccf3d8c905
diff --git a/tests/kit/playwright.ts b/tests/kit/playwright.tsindex 0a0b42398b..6279afbff1 100644--- a/tests/kit/playwright.ts+++ b/tests/kit/playwright.ts@@ -67,6 +67,15 @@ export const test = baseTest.extend<{},});},+ page: async ({ page, context }, use) => {+ if (process.env.CPU_THROTTLE) {+ const cdpSession = await context.newCDPSession(page);+ await cdpSession.send('Emulation.setCPUThrottlingRate', {+ rate: parseInt(process.env.CPU_THROTTLE),+ });+ }+ await use(page);+ },context: async ({ context }, use) => {// workaround for skipping onboarding redirect on the webawait skipOnboarding(context);