feat(core): import template (#8000)

This commit is contained in:
EYHN
2024-08-29 04:01:35 +00:00
parent 4ec45a247e
commit b96ad57568
67 changed files with 1835 additions and 974 deletions

View File

@@ -13,6 +13,7 @@ test('Create new workspace, then delete it', async ({ page, workspace }) => {
await waitForEditorLoad(page);
await clickSideBarCurrentWorkspaceBanner(page);
await page.getByTestId('new-workspace').click();
await page.waitForTimeout(1000);
await page
.getByTestId('create-workspace-input')
.pressSequentially('Test Workspace', { delay: 50 });

View File

@@ -83,7 +83,7 @@ test.skip('create multi workspace in the workspace list', async ({
await page.reload();
await openWorkspaceListModal(page);
await page.getByTestId('draggable-item').nth(1).click();
await page.getByTestId('workspace-card').nth(1).click();
await page.waitForTimeout(500);
const currentWorkspace = await workspace.current();
@@ -92,8 +92,8 @@ test.skip('create multi workspace in the workspace list', async ({
await openWorkspaceListModal(page);
await page.waitForTimeout(1000);
const sourceElement = page.getByTestId('draggable-item').nth(2);
const targetElement = page.getByTestId('draggable-item').nth(1);
const sourceElement = page.getByTestId('workspace-card').nth(2);
const targetElement = page.getByTestId('workspace-card').nth(1);
const sourceBox = await sourceElement.boundingBox();
const targetBox = await targetElement.boundingBox();

View File

@@ -173,7 +173,11 @@ export const selectVisibilitySelector = async (
})
.click();
await page.waitForTimeout(500);
await page.keyboard.press('Escape');
await page.waitForTimeout(500);
};
export const changePropertyVisibility = async (

View File

@@ -9,7 +9,7 @@ export async function clickSideBarAllPageButton(page: Page) {
}
export async function clickSideBarCurrentWorkspaceBanner(page: Page) {
return page.getByTestId('current-workspace').click();
return page.getByTestId('current-workspace-card').click();
}
export async function clickSideBarUseAvatar(page: Page) {