mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 22:37:04 +08:00
@@ -282,7 +282,7 @@ export async function loginUserDirectly(
|
||||
|
||||
export async function enableCloudWorkspace(page: Page) {
|
||||
await clickSideBarSettingButton(page);
|
||||
await page.getByTestId('current-workspace-label').click();
|
||||
await page.getByTestId('workspace-list-item-workspace:preference').click();
|
||||
await page.getByTestId('publish-enable-affine-cloud-button').click();
|
||||
await page.getByTestId('confirm-enable-affine-cloud-button').click();
|
||||
// wait for upload and delete local workspace
|
||||
|
||||
@@ -149,9 +149,6 @@ export const expectPropertyOrdering = async (
|
||||
|
||||
export const openWorkspaceProperties = async (page: Page) => {
|
||||
await page.getByTestId('slider-bar-workspace-setting-button').click();
|
||||
await page
|
||||
.locator('[data-testid="workspace-list-item"] .setting-name')
|
||||
.click();
|
||||
await page.getByTestId('workspace-list-item-workspace:properties').click();
|
||||
};
|
||||
|
||||
|
||||
@@ -38,11 +38,11 @@ export async function confirmExperimentalPrompt(page: Page) {
|
||||
await page.getByTestId('experimental-confirm-button').click();
|
||||
}
|
||||
|
||||
export async function openWorkspaceSettingPanel(
|
||||
page: Page,
|
||||
workspaceName: string
|
||||
) {
|
||||
await page.getByTestId('settings-sidebar').getByText(workspaceName).click();
|
||||
export async function openWorkspaceSettingPanel(page: Page) {
|
||||
await page
|
||||
.getByTestId('settings-sidebar')
|
||||
.getByTestId('workspace-list-item-workspace:preference')
|
||||
.click();
|
||||
}
|
||||
|
||||
export async function clickUserInfoCard(page: Page) {
|
||||
|
||||
Reference in New Issue
Block a user