From b26573da4e39b0745998ad51abbe0f4ba66b5f4f Mon Sep 17 00:00:00 2001 From: Mahendra Paipuri Date: Sun, 15 Dec 2024 20:20:48 +0100 Subject: [PATCH] ci: Setup correct path to playwright tests in update snapshots workflow Signed-off-by: Mahendra Paipuri ci: Complete update snapshots workflow Signed-off-by: Mahendra Paipuri ci: Force update snapshots workflow Signed-off-by: Mahendra Paipuri ci; Revert changes Signed-off-by: Mahendra Paipuri --- .github/workflows/update-playwright-snapshots.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-playwright-snapshots.yml b/.github/workflows/update-playwright-snapshots.yml index c0ae798d..28b27d72 100644 --- a/.github/workflows/update-playwright-snapshots.yml +++ b/.github/workflows/update-playwright-snapshots.yml @@ -29,16 +29,21 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Install your project + - name: Install from source + run: HATCH_BUILD_HOOKS_ENABLE=true python -m pip install -e '.[test-ui]' + + - name: Uninstall jupyter-fs run: | - # Execute the required installation command + # Uninstall jupyter-fs as it overrides the original browser-test.js to + # check its own functionality (https://github.com/jpmorganchase/jupyter-fs/blob/main/jupyterfs/browser-test.js) + pip uninstall jupyter-fs -y - name: Update snapshots uses: jupyterlab/maintainer-tools/.github/actions/update-snapshots@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }} # Test folder within your repository - test_folder: playwright-tests + test_folder: jupyterlab/packages/jupyterlab-jupytext-extension/ui-tests/tests # Optional npm scripts (the default values are displayed) # Script to start the server or 'null' if Playwright is taking care of it