Skip to content

Commit 2c1ae5a

Browse files
[py] marked all pdf printing tests as xfail for safari (#12494)
1 parent 04620a5 commit 2c1ae5a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

py/test/selenium/webdriver/common/print_pdf_tests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17+
import pytest
1718

1819
from selenium.webdriver.common.print_page_options import PrintOptions
1920

@@ -22,6 +23,7 @@
2223
PDF_MAGIC_NUMBER = "JVBER"
2324

2425

26+
@pytest.mark.xfail_safari(reason="no endpoint for print in safari")
2527
def test_pdf_with_2_pages(driver, pages):
2628
print_options = PrintOptions()
2729
print_options.page_ranges = ["1-2"]
@@ -33,13 +35,15 @@ def test_pdf_with_2_pages(driver, pages):
3335
assert base64code[START_INDEX:END_INDEX] == PDF_MAGIC_NUMBER
3436

3537

38+
@pytest.mark.xfail_safari(reason="no endpoint for print in safari")
3639
def test_pdf_with_all_pages(driver, pages):
3740
pages.load("printPage.html")
3841
base64code = driver.print_page()
3942

4043
assert base64code[START_INDEX:END_INDEX] == PDF_MAGIC_NUMBER
4144

4245

46+
@pytest.mark.xfail_safari(reason="no endpoint for print in safari")
4347
def test_valid_params(driver, pages):
4448
print_options = PrintOptions()
4549

@@ -53,6 +57,7 @@ def test_valid_params(driver, pages):
5357
assert base64code[START_INDEX:END_INDEX] == PDF_MAGIC_NUMBER
5458

5559

60+
@pytest.mark.xfail_safari(reason="no endpoint for print in safari")
5661
def test_session_id_is_not_preserved_after_page_is_printed(driver, pages):
5762
print_options = PrintOptions()
5863
print_options.margin_bottom = print_options.margin_top = print_options.margin_left = print_options.margin_right = 0

0 commit comments

Comments
 (0)