We added the 'Skip to main content' feature in bug 22807. It relies heavily on the present of a .maincontent class being found on every OPAC page. We have a coding guidline around this, but to date I don't think we have a QA script test for it.
Moved to gitlab: https://gitlab.com/koha-community/qa-test-tools/-/issues/80