Skip to content

Commit

Permalink
adjust test to support the change in behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Aug 2, 2024
1 parent d982324 commit 0d09bdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_unwrap_height.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def test_should_render_template_check_container_size(page: Page):
b_box = pdf_container.bounding_box()
# Since we do not specify the width, we occupy all the available space, which should correspond to the
# parent element's width of the pdfContainer.
assert b_box['width'] == iframe_box['width']
# LF: This was changed with #58, where the proportions are maintained, or at least we try to
assert b_box['width'] < iframe_box['width']
assert b_box['height'] == 300

pdf_viewer = iframe_frame.locator('div[id="pdfViewer"]')
Expand Down

0 comments on commit 0d09bdc

Please sign in to comment.