We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff5b126 commit e8ab88eCopy full SHA for e8ab88e
tests/test_unwrap_width.py
@@ -1,4 +1,5 @@
1
import os
2
+from math import ceil, floor
3
from pathlib import Path
4
5
import pytest
@@ -38,8 +39,8 @@ def test_should_render_template_check_container_size(page: Page):
38
39
expect(pdf_container).to_be_visible()
40
41
b_box = pdf_container.bounding_box()
- assert b_box['width'] == 400
42
- assert b_box['height'] >= 4216 # Firefox returns 4216.000091552734, while Chome 4216
+ assert floor(b_box['width']) == 400
43
+ assert floor(b_box['height']) == 4216 # Firefox returns 4216.000091552734, while Chome 4216
44
45
pdf_viewer = iframe_frame.locator('div[id="pdfViewer"]')
46
expect(pdf_viewer).to_be_visible()
0 commit comments