|#1255| reviewed and refactored, added missing test, replaced .contains with assertEqual, added page objects for elements, added ids to elements, removed duplicate code