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 Dec 5, 2015
1 parent 46c8775 commit 72ce9f5
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 72ce9f5

Please sign in to comment.