From 71e257cd4ea5ef4dc411dfdad4fda3dff659130f Mon Sep 17 00:00:00 2001 From: asim-shrestha Date: Wed, 28 Aug 2024 10:25:37 -0700 Subject: [PATCH] =?UTF-8?q?=E2=98=91=EF=B8=8F=20Icon=20button=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/mock_html/icon_buttons.html | 22 ++++++++++++++++++++++ tests/test_elements.py | 9 +++++++++ 2 files changed, 31 insertions(+) create mode 100644 tests/mock_html/icon_buttons.html diff --git a/tests/mock_html/icon_buttons.html b/tests/mock_html/icon_buttons.html new file mode 100644 index 00000000..79896ad8 --- /dev/null +++ b/tests/mock_html/icon_buttons.html @@ -0,0 +1,22 @@ + + + + + Title + + + + + + diff --git a/tests/test_elements.py b/tests/test_elements.py index defeea9f..ebf4cbeb 100644 --- a/tests/test_elements.py +++ b/tests/test_elements.py @@ -64,6 +64,15 @@ ["Display contents"], ["[ 0 ]"], ), + ( + "mock_html/icon_buttons.html", + { + 0: "//html/body/button[1]", + 1: "//html/body/button[2]", + }, + [], + ["[ $ 0 ]", "[ $ 1 ]"], + ) ], ) async def test_combined_elements_page(