Skip to content

Commit a49be8e

Browse files
Reset UI-tests snapshots (#683)
* Wait more before taking notebook screenshot * change test * Update Playwright Snapshots * Remove old snapshots * update ui test config * update test workflow * Remove all snapshots * Update Playwright Snapshots * Update Playwright Snapshots --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 7196d0d commit a49be8e

33 files changed

+8
-20
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -177,29 +177,17 @@ jobs:
177177
cp ./jupytergis/dist/jupytergis*.whl ./jupytergis_core/dist/jupytergis*.whl ./jupytergis_lab/dist/jupytergis*.whl ./jupytergis_qgis/dist/jupytergis*.whl .
178178
python -m pip install jupytergis*.whl "jupyter-collaboration>=3,<4" "jupyterlab>=4.3,<5"
179179
180-
- name: Install dependencies
181-
shell: bash -l {0}
182-
working-directory: ui-tests
183-
env:
184-
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
185-
run: jlpm install
186-
187-
- name: Set up browser cache
188-
uses: actions/cache@v4
189-
with:
190-
path: |
191-
${{ github.workspace }}/pw-browsers
192-
key: ${{ runner.os }}-${{ hashFiles('ui-tests/yarn.lock') }}
193-
194-
- name: Install browser
180+
- name: Install
195181
shell: bash -l {0}
196-
run: npx playwright install chromium
197182
working-directory: ui-tests
183+
run: |
184+
jlpm install
185+
yarn playwright install chromium
198186
199187
- name: Execute integration tests
200188
shell: bash -l {0}
201189
working-directory: ui-tests
202-
run: npx playwright test --retries=2
190+
run: jlpm run test
203191

204192
- name: Upload Playwright Test report
205193
id: upload-galata-artifact

examples/jgis.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"source": [
1010
"from jupytergis import GISDocument\n",
1111
"\n",
12-
"doc = GISDocument(\"france_hiking.jGIS\")\n",
12+
"doc = GISDocument(\"local.jGIS\")\n",
1313
"doc"
1414
]
1515
}

ui-tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"scripts": {
77
"start": "JGIS_EXPOSE_MAPS=1 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",
9+
"test": "npx playwright test --workers 1 --browser chromium",
1010
"test:local": "npx playwright test --ignore-snapshots --workers 1",
11-
"test:lite": "npx playwright test tests/lite.spec.ts --workers 1 --config playwright-lite.config.js",
11+
"test:lite": "npx playwright test tests/lite.spec.ts --workers 1 --config playwright-lite.config.js --browser chromium",
1212
"test:locallite": "npx playwright test tests/lite.spec.ts --ignore-snapshots --workers 1 --config playwright-lite.config.js",
1313
"test:update": "npx playwright test --update-snapshots",
1414
"test:updatelite": "jlpm run test:lite --update-snapshots",
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)