Skip to content

Commit 4ae8467

Browse files
Reset UI-tests snapshots (#723)
* Reset UI-tests snapshots * Update Playwright Snapshots * Update Playwright Snapshots * UI-tests use same setup between bot and tests * Try again * Fixup --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 22c98a7 commit 4ae8467

File tree

62 files changed

+7
-20
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+7
-20
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -153,30 +153,17 @@ jobs:
153153
cp ./jupytercad_core/dist/jupytercad*.whl ./jupytercad_lab/dist/jupytercad*.whl ./jupytercad_app/dist/jupytercad*.whl ./jupytercad/dist/jupytercad*.whl .
154154
python -m pip install jupytercad*.whl
155155
156-
- name: Install dependencies
157-
shell: bash -l {0}
158-
working-directory: ui-tests
159-
env:
160-
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
161-
run: jlpm install
162-
163-
- name: Set up browser cache
164-
uses: actions/cache@v4
165-
with:
166-
path: |
167-
${{ github.workspace }}/pw-browsers
168-
key: ${{ runner.os }}-${{ hashFiles('ui-tests/yarn.lock') }}
169-
170-
- name: Install browser
156+
- name: Install
171157
shell: bash -l {0}
172-
run: npx playwright install chromium
173158
working-directory: ui-tests
159+
run: |
160+
jlpm install
161+
yarn playwright install chromium
174162
175163
- name: Execute integration tests
176164
shell: bash -l {0}
177165
working-directory: ui-tests
178-
run: |
179-
npx playwright test
166+
run: jlpm run test
180167

181168
- name: Upload Playwright Test report
182169
id: upload-galata-artifact

ui-tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"scripts": {
77
"start": "jupyter lab --config jupyter_server_test_config.py",
88
"start:lite": "cd ../dist && python -m http.server -b 127.0.0.1 8000",
9-
"test": "npx playwright test --workers 1",
10-
"test:lite": "npx playwright test tests/lite.spec.ts --workers 1 --config playwright-lite.config.js",
9+
"test": "npx playwright test --workers 1 --browser chromium",
10+
"test:lite": "npx playwright test tests/lite.spec.ts --workers 1 --config playwright-lite.config.js --browser chromium",
1111
"test:update": "npx playwright test --update-snapshots",
1212
"test:updatelite": "jlpm run test:lite --update-snapshots",
1313
"test:debug": "PWDEBUG=1 npx playwright test --workers 1"
12.7 KB
Binary file not shown.
18.7 KB
Binary file not shown.
13 KB
Binary file not shown.
15.4 KB

0 commit comments

Comments
 (0)