Skip to content

Commit

Permalink
Updates test for close() fix
Browse files Browse the repository at this point in the history
So the test eventually .. i mean .. actually .. works. ;-)

Related: #253
  • Loading branch information
whazap committed Feb 17, 2016
1 parent 0a549ae commit 1e358fc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/steps/basic.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ module.exports = ->
item.isVisible().should.eventually.eql(true)

@When /^I close the Share Button manually by calling the close method$/, ->
new @Widgets.ShareButton().click()
new @Widgets.Body().triggerCloseButton()

@Then /^I should no longer see any Social Network$/, ->
new @Widgets
.ShareButtonNetworks()
.each (item, i) ->
item.isVisible().should.eventually.eql(false)
.ShareButtonSocial()
.hasClass('active')
.should.eventually.be.false

0 comments on commit 1e358fc

Please sign in to comment.