feat(core): import template (#8000)
This commit is contained in:
@@ -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 });
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user