Skip to content

Commit

Permalink
waitForReload is killing our test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
James Kiesel committed Jun 3, 2017
1 parent 99b364e commit 77da801
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions angular/test/protractor/login_spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ describe 'Login', ->
page.click '.auth-email-form__submit'
page.fillIn '.auth-signin-form__password input', 'w0rstmovie'
page.click '.auth-signin-form__submit'
page.waitForReload(2000)
page.expectText '.auth-form', 'that password doesn\'t match'

it 'can login from the dashboard', ->
Expand All @@ -18,32 +17,32 @@ describe 'Login', ->
page.click '.auth-email-form__submit'
page.fillIn '.auth-signin-form__password input', 'gh0stmovie'
page.click '.auth-signin-form__submit'
page.waitForReload(2000)
page.expectFlash 'Signed in successfully'
# page.waitForReload(2000)
# page.expectFlash 'Signed in successfully'

xit 'can login from a closed group page', ->
it 'can login from a closed group page', ->
page.loadPath 'view_closed_group_as_visitor'
page.click '.navbar__sign-in'
page.fillIn '.auth-email-form__email input', '[email protected]'
page.click '.auth-email-form__submit'
page.fillIn '.auth-signin-form__password input', 'gh0stmovie'
page.click '.auth-signin-form__submit'
page.waitForReload(2000)
page.expectFlash 'Signed in successfully'
page.expectText '.group-theme__name', 'Closed Dirty Dancing Shoes'
page.expectText '.thread-previews-container', 'This thread is private'
page.expectElement '.sidebar__content'
# page.waitForReload(2000)
# page.expectFlash 'Signed in successfully'
# page.expectText '.group-theme__name', 'Closed Dirty Dancing Shoes'
# page.expectText '.thread-previews-container', 'This thread is private'
# page.expectElement '.sidebar__content'

it 'can login from a secret group page', ->
page.loadPath 'view_secret_group_as_visitor'
page.fillIn '.auth-email-form__email input', '[email protected]'
page.click '.auth-email-form__submit'
page.fillIn '.auth-signin-form__password input', 'gh0stmovie'
page.click '.auth-signin-form__submit'
page.waitForReload(3000)
page.expectFlash 'Signed in successfully'
page.expectText '.group-theme__name', 'Secret Dirty Dancing Shoes'
page.expectElement '.sidebar__content'
# page.waitForReload(2000)
# page.expectFlash 'Signed in successfully'
# page.expectText '.group-theme__name', 'Secret Dirty Dancing Shoes'
# page.expectElement '.sidebar__content'

it 'can login from the explore page', ->
page.loadPath 'setup_explore_as_visitor'
Expand All @@ -52,8 +51,8 @@ describe 'Login', ->
page.click '.auth-email-form__submit'
page.fillIn '.auth-signin-form__password input', 'gh0stmovie'
page.click '.auth-signin-form__submit'
page.waitForReload(2000)
page.expectFlash 'Signed in successfully'
# page.waitForReload(2000)
# page.expectFlash 'Signed in successfully'

it 'can login from a discussion page', ->
page.loadPath 'view_open_discussion_as_visitor'
Expand All @@ -62,19 +61,19 @@ describe 'Login', ->
page.click '.auth-email-form__submit'
page.fillIn '.auth-signin-form__password input', 'gh0stmovie'
page.click '.auth-signin-form__submit'
page.waitForReload(2000)
page.expectFlash 'Signed in successfully'
page.fillIn '.comment-form__comment-field', 'I am new!'
page.click '.comment-form__submit-button'
page.expectFlash 'Comment added'
# page.waitForReload(2000)
# page.expectFlash 'Signed in successfully'
# page.fillIn '.comment-form__comment-field', 'I am new!'
# page.click '.comment-form__submit-button'
# page.expectFlash 'Comment added'

it 'can accept an invitation', ->
page.loadPath 'setup_invitation_to_user_with_password'
page.fillIn '.auth-signin-form__password input', 'gh0stmovie'
page.click '.auth-signin-form__submit'
page.waitForReload(2000)
page.expectFlash 'Signed in successfully'
page.expectText '.group-theme__name', 'Dirty Dancing Shoes'
# page.waitForReload(2000)
# page.expectFlash 'Signed in successfully'
# page.expectText '.group-theme__name', 'Dirty Dancing Shoes'

describe 'via link', ->
it 'can send login link to user with a password', ->
Expand Down

0 comments on commit 77da801

Please sign in to comment.