forked from webdriverio/webdriverio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make tests working in safari, run env tests via simple NPM commands
- Loading branch information
1 parent
15f9b18
commit 3b93c76
Showing
7 changed files
with
51 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/*jshint expr: true*/ | ||
describe('isEnabled', function() { | ||
|
||
before(h.setup()); | ||
|
||
it('should check if a single element is visible', function(done) { | ||
this.client | ||
.isEnabled('.waitForValueEnabled', function(err, isEnabled) { | ||
assert.equal(err, null); | ||
isEnabled.should.be.false; | ||
}) | ||
.isEnabled('.waitForValueEnabledReverse', function(err, isEnabled) { | ||
assert.equal(err, null); | ||
isEnabled.should.be.true; | ||
}) | ||
.call(done); | ||
}); | ||
|
||
it('should check multiple elements are visible', function(done) { | ||
this.client | ||
.isEnabled('form input', function(err, isEnabled) { | ||
assert.equal(err, null); | ||
isEnabled.should.be.an.instanceOf(Array); | ||
isEnabled.should.have.length(5); | ||
isEnabled.should.containEql(true); | ||
}) | ||
.call(done); | ||
}); | ||
|
||
}); |