Skip to content

Commit 696bfb8

Browse files
fix assertion
1 parent 6d5ebce commit 696bfb8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

tests/pdf_viewer/test_download_triggered_on_content_disposition_attachment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ def test_download_panel_triggered_on_content_disposition_attachment(
5555
tabs.wait_for_num_tabs(2)
5656
tabs.switch_to_new_tab()
5757
## url_contains isn't working for some reason.
58-
assert (driver.current_url.endswith(".pdf"), f"New tab should be a pdf file.")
58+
assert driver.current_url.endswith(".pdf"), f"New tab should be a pdf file."

tests/pdf_viewer/test_pdf_input_numbers.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
from modules.page_object import GenericPdf
66

7+
TEST_VALUE = "12345"
8+
79

810
@pytest.fixture()
911
def test_case():
@@ -38,12 +40,9 @@ def test_pdf_input_numbers(
3840
"""
3941

4042
pdf = GenericPdf(driver, pdf_url=fillable_pdf_url)
41-
pdf.open()
4243

4344
# Clear the field and enter the test value
44-
numeric_field = pdf.get_element("zipcode-field")
45-
numeric_field.clear()
46-
numeric_field.send_keys("12345" + Keys.TAB)
45+
pdf.fill_element("zipcode-field", TEST_VALUE + Keys.TAB)
4746

4847
# Verify the value is still present
49-
pdf.element_attribute_contains("zipcode-field", "value", "12345")
48+
pdf.element_attribute_contains("zipcode-field", "value", TEST_VALUE)

0 commit comments

Comments
 (0)