Skip to content

Commit 99820e7

Browse files
committed
[playwright] Test for mailto Uniform Resource Identifier (URI) scheme for email addresses
1 parent 9d5e26e commit 99820e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,9 @@ def test_switching_lang_sw_about(page: Page) -> None:
9595
def test_bpdevs_title_en(page: Page, title: str, url: str) -> None:
9696
page.goto(f"{live_server_url}/{url}")
9797
expect(page).to_have_title(title)
98+
99+
100+
def test_mailto_bpdevs(page: Page) -> None:
101+
page.goto(f"{live_server_url}")
102+
mailto = page.get_by_role("link", name="email")
103+
expect(mailto).to_have_attribute("href", "mailto:[email protected]")

0 commit comments

Comments
 (0)