Note: Auto-testing is (partially) possible. Can be done by checking if elements with roles such as "menu" have an aria-expanded attribute. However, automatically figuring out if an aria-expanded attribute is necessary might require a human tester/AI.