I renamed user_dashboard_main.feature to user_dashboard.feature and fixed small typo in user_dashboard_add_block.feature: http://drupalcode.org/project/doobie.git/commit/9e8c39b
1. "Scenario: Restore to default link"
and
"Scenario: Orientation of blocks in columns"
are doing basically the same thing as user_dashboard_defaults.feature file. I suggest we merge them with existing tests in that file.
2. Almost all the scenarios include additional step to follow "Dashboard", which isn't really needed. I suggest we include it once, to make sure the link works, and remove from the rest of scenarios to save us some time.
And I follow "Your Dashboard"
And I wait until the page is loaded
And I follow "Dashboard"
And I wait until the page is loaded
Comments
Comment #0.0
tvn commented.
Comment #1
pradeeprkara commentedAssigning and tagging
Comment #2
pradeeprkara commentedMerged user_dashboard_defaults.feature scenarios to user_dashboard.feature.
Removed
And I follow "Dashboard"from scenarios except from the first one.http://drupalcode.org/project/doobie.git/commit/9235006
http://drupalcode.org/project/doobie.git/commit/fd8bc0c
http://drupalcode.org/project/doobie.git/commit/abb7dfa
Comment #3
tvn commentedLooks good, thanks.
Comment #4
pradeeprkara commentedThis is ported to 7.x branch: http://drupal.org/node/1697680#comment-6812684
Comment #5
eliza411 commentedDo you think we could use this test to try out the Spin function defined here? http://docs.behat.org/cookbook/using_spin_functions.html We need the step "I wait for the page to load" to fail faster than it is right now, for sure (not sure what the timeout is set to, but it's waiting over a minute right now).
Comment #6
pradeeprkara commentedWe can depend on the spin method to force timeout but with limited capabilities.(Refer to: #1860452: Evaluate the Spin method#comment-6863638) As it now supports Goutte as well, I have added it in between steps that follow a page load. As it is not that helpful with selenium, have removed @javascript tag from some of the scenarios wherein it is actually not required.
http://drupalcode.org/project/doobie.git/commit/8ce0ce7
Comment #7
eliza411 commentedEverything here looks good except
Comment #8
eliza411 commentedUnassigning
Comment #8.0
eliza411 commented.