From 72ce9f5d8883d78206dd2b2cb0162774c00e81e9 Mon Sep 17 00:00:00 2001 From: Sebastian Herber Date: Sat, 5 Dec 2015 23:08:08 +0100 Subject: [PATCH] Updates test for close() fix So the test eventually .. i mean .. actually .. works. ;-) Related: #253 --- tests/steps/basic.coffee | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/steps/basic.coffee b/tests/steps/basic.coffee index 9144daa..03acb4e 100644 --- a/tests/steps/basic.coffee +++ b/tests/steps/basic.coffee @@ -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