Refactor cucumber test for page#edit