mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-16 22:07:09 +08:00
test(electron): fix cloud test (#4411)
This commit is contained in:
@@ -133,12 +133,15 @@ export async function loginUser(
|
||||
page: Page,
|
||||
userEmail: string,
|
||||
config?: {
|
||||
isElectron?: boolean;
|
||||
beforeLogin?: () => Promise<void>;
|
||||
afterLogin?: () => Promise<void>;
|
||||
}
|
||||
) {
|
||||
await openHomePage(page);
|
||||
await waitForEditorLoad(page);
|
||||
if (config?.isElectron !== true) {
|
||||
await openHomePage(page);
|
||||
await waitForEditorLoad(page);
|
||||
}
|
||||
|
||||
await clickSideBarCurrentWorkspaceBanner(page);
|
||||
await page.getByTestId('cloud-signin-button').click({
|
||||
|
||||
Reference in New Issue
Block a user