chore: prohibit unnecessary await (#4586)
This commit is contained in:
@@ -24,7 +24,7 @@ test('Create new workspace, then delete it', async ({ page, workspace }) => {
|
||||
await openSettingModal(page);
|
||||
await openWorkspaceSettingPanel(page, 'Test Workspace');
|
||||
await page.getByTestId('delete-workspace-button').click();
|
||||
const workspaceNameDom = await page.getByTestId('workspace-name');
|
||||
const workspaceNameDom = page.getByTestId('workspace-name');
|
||||
const currentWorkspaceName = (await workspaceNameDom.evaluate(
|
||||
node => node.textContent
|
||||
)) as string;
|
||||
@@ -51,7 +51,7 @@ test('Create new workspace, then delete it', async ({ page, workspace }) => {
|
||||
test('Delete last workspace', async ({ page }) => {
|
||||
await openHomePage(page);
|
||||
await waitForEditorLoad(page);
|
||||
const workspaceNameDom = await page.getByTestId('workspace-name');
|
||||
const workspaceNameDom = page.getByTestId('workspace-name');
|
||||
const currentWorkspaceName = await workspaceNameDom.evaluate(
|
||||
node => node.textContent
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user