cms-2665 refactor selenium tests