Files
clawfort/tests/test_accessibility_contract.py
Santhosh Janardhanan 679561bcdb
Some checks failed
quality-gates / lint-and-test (push) Has been cancelled
quality-gates / security-scan (push) Has been cancelled
First deployment
2026-02-13 09:14:04 -05:00

20 lines
755 B
Python

def test_homepage_has_skip_link_and_landmarks(client):
response = client.get("/")
assert response.status_code == 200
html = response.text
assert 'href="#main-content"' in html
assert '<main id="main-content">' in html
def test_modal_and_share_controls_have_accessible_labels(client):
response = client.get("/")
assert response.status_code == 200
html = response.text
assert 'aria-label="Close summary modal"' in html
assert 'aria-label="Share on X"' in html
assert 'aria-label="Share on WhatsApp"' in html
assert 'aria-label="Share on LinkedIn"' in html
assert 'aria-label="Copy article link"' in html
assert 'aria-label="Back to top"' in html
assert 'aria-label="Close policy modal"' in html