hunk.code_window:         uses: ./.github/actions/build-rust
           with:
             target: ${{ matrix.spec.target }}
         - name: Replace Version
           run: ./scripts/set-version.sh ${{ needs.set-build-version.outputs.version }}
         - uses: actions/download-artifact@v3
           with:
  
hunk.labels: keep keep add keep keep keep keep
hunk.after_edit:           nx_token: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
  
hunk.file_path: .github/workflows/nightly-build.yml
hunk.type: add
file: import { test } from '@affine-test/kit/playwright';
  import { expect } from '@playwright/test';
  
  import { openHomePage } from '../../libs/load-page';
  import { waitEditorLoad } from '../../libs/page-logic';
  import { clickSideBarAllPageButton } from '../../libs/sidebar';
  import { createFakeUser, loginUser } from '../../libs/utils';
  import { enableAffineCloudWorkspace } from '../../libs/workspace';
  
  test('authorization expired', async ({ page }) => {
    await openHomePage(page);
    await waitEditorLoad(page);
    const [a] = await createFakeUser();
    await loginUser(page, a);
    await enableAffineCloudWorkspace(page);
    await clickSideBarAllPageButton(page);
    await page.evaluate(() => localStorage.removeItem('affine-login-v2'));
    await openHomePage(page);
    await expect(page.getByTestId('new-workspace')).toBeVisible();
  });
  