Skip to content

Commit

Permalink
☑️ Icon button tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asim-shrestha committed Aug 28, 2024
1 parent 03c6c26 commit 71e257c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/mock_html/icon_buttons.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Title</title>
</head>
<body>
<button>
<svg width="100" height="100">
<rect x="50" y="20" rx="20" ry="20" width="150" height="150"
style="fill:red;stroke:black;stroke-width:5;opacity:0.5" />
</svg>
</button>
<button>
<image>
<svg width="100" height="100">
<circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
</svg>
</image>
</button>
</body>
</html>
9 changes: 9 additions & 0 deletions tests/test_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 71e257c

Please sign in to comment.