Test Suite — VA-018
URL Canonicalization
Tests that relative and absolute hrefs to the same destination are treated as identical after canonicalization. Links that genuinely point to different destinations should still fire. Also tests trailing-slash normalization and http/https protocol equivalence.
VA018-01 — Relative vs absolute href, same destination
PASS — no duplicate-link-text. One link uses a relative href, the other uses the absolute equivalent. After canonicalization they resolve to the same URL. Same text "Test Hub", same nav landmark.
Both links point to the same destination. No duplicate violation expected.
VA018-02 — Trailing slash normalization
PASS — no duplicate-link-text. One link has a trailing slash, the other does not. Canonicalization normalizes both to the same canonical form.
VA018-03 — http vs https same hostname (protocol normalization)
PASS — no duplicate-link-text. Canonicalization normalizes both protocols to https so http and https variants of the same URL are treated as identical destinations.
VA018-04 — Genuinely different destinations (fires)
FAIL — vesper-duplicate-link-text. Both links have the same accessible name "Learn more" but point to genuinely different destinations. Canonicalization confirms they are different. Violation must fire — this is the positive baseline that proves the check is running.