Skip to content

Commit 427df9c

Browse files
committed
Debug other OSs
1 parent b271cca commit 427df9c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/tests.yml

+7
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ jobs:
313313
run: |
314314
python -mpytest -raR -n auto \
315315
--browser chromium --browser firefox --browser webkit \
316+
--slowmo=100 --tracing=on --video=on \
316317
--maxfail=50 --timeout=300 --durations=25 \
317318
--cov-report=xml --cov=lib --log-level=DEBUG --color=yes
318319
@@ -333,6 +334,12 @@ jobs:
333334
name: "${{ matrix.python-version }} ${{ matrix.os }} ${{ matrix.name-suffix }} result images"
334335
path: ./result_images
335336

337+
- uses: actions/upload-artifact@v3
338+
if: failure()
339+
with:
340+
name: "${{ matrix.python-version }} ${{ matrix.os }} ${{ matrix.name-suffix }} playwright"
341+
path: ./test-results
342+
336343
# Separate dependent job to only upload one issue from the matrix of jobs
337344
create-issue:
338345
if: ${{ failure() && github.event_name == 'schedule' }}

lib/matplotlib/tests/test_backend_webagg.py

+4
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,16 @@ def test_webagg_resize(random_port, page):
105105

106106
canvas = page.locator('canvas.mpl-canvas')
107107

108+
print(f'{orig_bbox=}')
108109
# Resize the canvas to be twice as big.
109110
bbox = canvas.bounding_box()
111+
print(f'{bbox=}')
110112
x, y = bbox['x'] + bbox['width'] - 1, bbox['y'] + bbox['height'] - 1
113+
print(f'{x=} {y=}')
111114
page.mouse.move(x, y)
112115
page.mouse.down()
113116
page.mouse.move(x + bbox['width'], y + bbox['height'])
117+
print(f'{x + bbox["width"]=} {y + bbox["height"]=}')
114118
page.mouse.up()
115119

116120
assert fig.bbox.height == orig_bbox.height * 2

0 commit comments

Comments
 (0)