Skip to content

Commit

Permalink
remove px_to_cm from background test
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago Perrotta committed Jun 7, 2023
1 parent aa9dbb3 commit 66aa3df
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions webdriver/tests/bidi/browsing_context/print/background.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import base64
import pytest

from tests.support.image import px_to_cm
from tests.support.pdf import assert_pdf


pytestmark = pytest.mark.asyncio


INLINE_BACKGROUND_RENDERING_TEST_CONTENT = """
<style>
:root {
Expand Down Expand Up @@ -39,8 +36,7 @@ async def test_background(
):
page = inline(INLINE_BACKGROUND_RENDERING_TEST_CONTENT)
await bidi_session.browsing_context.navigate(
context=top_context["context"], url=page, wait="complete"
)
context=top_context["context"], url=page, wait="complete")

print_value = await bidi_session.browsing_context.print(
context=top_context["context"],
Expand All @@ -52,8 +48,8 @@ async def test_background(
"left": 0
},
page={
"width": px_to_cm(96),
"height": px_to_cm(96),
"width": 2.54,
"height": 2.54,
},
)

Expand Down

1 comment on commit 66aa3df

@community-tc-integration
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh oh! Looks like an error! Details

HttpError: Invalid request.

Only 65535 characters are allowed; 5030248 were supplied.

Please sign in to comment.