     casper.thenClick '.confirm_button'
 
     # White opens the game
-    createLoginSession WHITE_EMAIL
-    casper.thenOpen serverUrl
-    casper.thenClick (@lastGameSelector true)
+    goToGame WHITE_EMAIL
     # seeing the reverted proposal, she resumes play
     casper.thenClick '.resume_button'
 
     # White being the last to pass, Black has the turn
-    createLoginSession BLACK_EMAIL
-    casper.thenOpen serverUrl
-    casper.thenClick (@lastGameSelector true), =>  # our turn
+    goToGame BLACK_EMAIL
 
 registerTest new PassAndScoringTest
 

                                          'wwwwb',
                                          'bbbbb']

    # black opens the game and passes
    # (it should be black's turn since there are no actual moves in this game,
    # only setup stones)
    createLoginSession BLACK_EMAIL
    casper.thenOpen serverUrl
    casper.thenClick @lastGameSelector true  # our turn
    casper.thenClick '.pass_button'
    # for now we're not defining where the player should end up after passing.
    # navigate back to the game; it should not be our turn and there should no

    casper.thenClick '.confirm_button'

    # White then logs in and opens the game
    goToGame WHITE_EMAIL, =>
      # we are in marking mode and the white stones are already marked dead
      @assertGeneralPointCounts test,
        label: "White views Black's proposal"
