Skip to content

Commit

Permalink
Debug other OSs
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed May 17, 2024
1 parent 785b169 commit f63df0d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ jobs:
run: |
pytest -rfEsXR -n auto \
--browser chromium --browser firefox --browser webkit \
--slowmo=100 --tracing=on --video=on \
--maxfail=50 --timeout=300 --durations=25 \
--cov-report=xml --cov=lib --log-level=DEBUG --color=yes
Expand Down Expand Up @@ -381,6 +382,12 @@ jobs:
name: "${{ matrix.python-version }} ${{ matrix.os }} ${{ matrix.name-suffix }} result images"
path: ./result_images

- uses: actions/upload-artifact@v3
if: failure()
with:
name: "${{ matrix.python-version }} ${{ matrix.os }} ${{ matrix.name-suffix }} playwright"
path: ./test-results

# Separate dependent job to only upload one issue from the matrix of jobs
create-issue:
if: ${{ failure() && github.event_name == 'schedule' }}
Expand Down
4 changes: 4 additions & 0 deletions lib/matplotlib/tests/test_backend_webagg.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,16 @@ def test_webagg_resize(random_port, page):

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

print(f'{orig_bbox=}')
# Resize the canvas to be twice as big.
bbox = canvas.bounding_box()
print(f'{bbox=}')
x, y = bbox['x'] + bbox['width'] - 1, bbox['y'] + bbox['height'] - 1
print(f'{x=} {y=}')
page.mouse.move(x, y)
page.mouse.down()
page.mouse.move(x + bbox['width'], y + bbox['height'])
print(f'{x + bbox["width"]=} {y + bbox["height"]=}')
page.mouse.up()

assert fig.bbox.height == orig_bbox.height * 2
Expand Down

0 comments on commit f63df0d

Please sign in to comment.