mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
refactor(core): move setting dialog to workspace scope (#9706)
This commit is contained in:
@@ -282,7 +282,7 @@ export async function loginUserDirectly(
|
||||
|
||||
export async function enableCloudWorkspace(page: Page) {
|
||||
await clickSideBarSettingButton(page);
|
||||
await page.getByTestId('workspace-list-item-workspace:preference').click();
|
||||
await page.getByTestId('workspace-setting: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,7 +149,7 @@ export const expectPropertyOrdering = async (
|
||||
|
||||
export const openWorkspaceProperties = async (page: Page) => {
|
||||
await page.getByTestId('slider-bar-workspace-setting-button').click();
|
||||
await page.getByTestId('workspace-list-item-workspace:properties').click();
|
||||
await page.getByTestId('workspace-setting:properties').click();
|
||||
};
|
||||
|
||||
export const selectVisibilitySelector = async (
|
||||
|
||||
@@ -41,7 +41,7 @@ export async function confirmExperimentalPrompt(page: Page) {
|
||||
export async function openWorkspaceSettingPanel(page: Page) {
|
||||
await page
|
||||
.getByTestId('settings-sidebar')
|
||||
.getByTestId('workspace-list-item-workspace:preference')
|
||||
.getByTestId('workspace-setting:preference')
|
||||
.click();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user