Skip to content

Commit

Permalink
tests: Fix screenshot suffix (#1297)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfehler authored Jun 12, 2024
1 parent a2fb5b6 commit 3cef5d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_screenshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def test_take_screenshot_with_suffix(browser_name, get_new_browser):
browser = get_new_browser(browser_name)
browser.visit(EXAMPLE_APP)

filename = browser.screenshot(suffix=".jpg")
assert ".jpg" in filename[-4:]
filename = browser.screenshot(suffix=".png")
assert ".png" in filename[-4:]


@pytest.mark.parametrize("browser_name", supported_browsers)
Expand Down

0 comments on commit 3cef5d8

Please sign in to comment.