Refactoring functional test in PathwayShowPage