chore: prohibit unnecessary await (#4586)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-10-12 05:04:58 +00:00
1 parent 5ebd82dc04
commit d05897b724
19 files changed
+104 -104

No files matched your search

@@ -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
);