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(core): fix flaky e2e (#6559)

EYHN8bb597d7ad26
diff --git a/tests/kit/utils/workspace.ts b/tests/kit/utils/workspace.ts
index 52b126525e..219335b37a 100644
--- a/tests/kit/utils/workspace.ts
+++ b/tests/kit/utils/workspace.ts
@@ -8,7 +8,7 @@ interface CreateWorkspaceParams {
}
export async function openWorkspaceListModal(page: Page) {
- await page.getByTestId('workspace-name').click({
+ await page.getByTestId('app-sidebar').getByTestId('workspace-name').click({
delay: 50,
});
}