hunk.code_window:             path={currentWorkspaceId && paths.all(currentWorkspaceId)}
             >
               <span data-testid="all-pages">{t['All pages']()}</span>
             </RouteMenuLinkItem>
             <RouteMenuLinkItem
               data-testid="slider-bar-workspace-setting-button"
               icon={<SettingsIcon />}
               currentPath={currentPath}
               path={currentWorkspaceId && paths.setting(currentWorkspaceId)}
             >
               <span data-testid="settings">{t['Settings']()}</span>
             </RouteMenuLinkItem>
             {runtimeConfig.enableNewSettingModal ? (
               <MenuItem icon={<SettingsIcon />} onClick={onOpenSettingModal}>
                 <span data-testid="settings-modal-trigger">
                   {t['Settings']()}
  
hunk.labels: keep keep keep keep replace replace replace replace replace replace replace replace keep keep keep keep
hunk.after_edit:           {!runtimeConfig.enableNewSettingModal && (
               <RouteMenuLinkItem
                 data-testid="slider-bar-workspace-setting-button"
                 icon={<SettingsIcon />}
                 currentPath={currentPath}
                 path={currentWorkspaceId && paths.setting(currentWorkspaceId)}
               >
                 <span data-testid="settings">{t['Settings']()}</span>
               </RouteMenuLinkItem>
             )}
  
hunk.file_path: apps/web/src/components/root-app-sidebar/index.tsx
hunk.type: replace
file: import { test } from '@affine-test/kit/playwright';
  import { expect } from '@playwright/test';
  
  import { openHomePage } from '../libs/load-page';
  import { newPage, waitEditorLoad } from '../libs/page-logic';
  import { assertCurrentWorkspaceFlavour } from '../libs/workspace';
  
  test('should create a page with a local first avatar', async ({ page }) => {
    await openHomePage(page);
    await waitEditorLoad(page);
    await newPage(page);
    await page.getByTestId('workspace-name').click();
    await page.getByTestId('new-workspace').click({ delay: 50 });
    await page
      .getByTestId('create-workspace-input')
      .type('Test Workspace 1', { delay: 50 });
    await page.getByTestId('create-workspace-create-button').click();
    await page.getByTestId('workspace-name').click();
    await page.getByTestId('workspace-card').nth(1).click();
    await page.getByTestId('slider-bar-workspace-setting-button').click();
    await page
      .getByTestId('upload-avatar')
      .setInputFiles('./tests/fixtures/smile.png');
    await page.getByTestId('workspace-name').click();
    await page.getByTestId('workspace-card').nth(0).click();
    await page.waitForTimeout(1000);
    await page.getByTestId('workspace-name').click();
    await page.getByTestId('workspace-card').nth(1).click();
    const blobUrl = await page
      .getByTestId('workspace-avatar')
      .locator('img')
      .getAttribute('src');
    // out user uploaded avatar
    expect(blobUrl).toContain('blob:');
    await assertCurrentWorkspaceFlavour('local', page);
  });
  