Fix bug in precompiled preview with overlay

The bug treated all pages of png preview as if they were all first
page, showing overlay for address bar
This commit is contained in:
Pea Tyczynska
2019-04-24 18:29:01 +01:00
parent a348e6bbf2
commit 454690a008
2 changed files with 4 additions and 3 deletions

View File

@@ -1102,7 +1102,7 @@ def test_preview_letter_template_precompiled_s3_error(
"filetype, post_url, overlay",
[
('png', 'precompiled-preview.png', None),
('png', 'precompiled/overlay.png', 1),
('png', 'precompiled/overlay.png?page_number=1', 1),
('pdf', 'precompiled/overlay.pdf', 1)
]
)