Skip to content

Commit 78ad211

Browse files
authored
Fix playwright bot (#6880)
* Add `stdout` to the playwright config * tmp: test UI change * add env var * try on push * try triggers * more debug * uncomment condition * fix pr checkout * try additional jlpm * try copy yarnrc * try jlpm install * run base setup after * try jlpm install * try start_server_script * try installing yarn 3 * try alias * try with custom action * undo previous debug * undo test changes * Use `npm_client` * Update to upstream action
1 parent 185778b commit 78ad211

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/playwright-update.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,18 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@v3
2323

24-
- name: Base Setup
25-
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
26-
2724
- name: Checkout the branch from the PR that triggered the job
2825
run: |
2926
# PR branch remote must be checked out using https URL
3027
git config --global hub.protocol https
28+
3129
hub pr checkout ${{ github.event.issue.number }}
3230
env:
3331
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3432

33+
- name: Base Setup
34+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
35+
3536
- name: Build
3637
uses: ./.github/actions/build-dist
3738

@@ -55,9 +56,12 @@ jobs:
5556
jlpm playwright install
5657
5758
- name: Update snapshots
58-
uses: jupyterlab/maintainer-tools/.github/actions/update-snapshots@v1
59+
uses: jupyter-server/maintainer-tools/.github/actions/update-snapshots@v1
5960
with:
6061
github_token: ${{ secrets.GITHUB_TOKEN }}
62+
npm_client: jlpm
6163
test_folder: ui-tests
6264
start_server_script: 'null'
6365
update_script: test:update --browser ${{ matrix.browser }}
66+
env:
67+
DEBUG: pw:webserver

ui-tests/playwright.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = {
1313
port: 8888,
1414
timeout: 120 * 1000,
1515
reuseExistingServer: true,
16+
stdout: 'pipe',
1617
},
1718
],
1819
};

0 commit comments

Comments
 (0)