Refactor cucumber test for page#edit

@jiannis