Add network connection endpoint

This commit is contained in:
Isaac Murchie
2014-06-07 11:39:44 -07:00
parent a18df98f56
commit 9d863079cc
12 changed files with 238 additions and 12 deletions
@@ -0,0 +1,37 @@
"use strict";
var setup = require("../../common/setup-base"),
desired = require('./desired');
describe('network connection details', function () {
var driver;
setup(this, desired).then(function (d) { driver = d; });
it('should get airplane mode', function (done) {
driver
.setNetworkConnection(1)
.getNetworkConnection().should.eventually.become(1)
.nodeify(done);
});
it('should get wifi alone', function (done) {
driver
.setNetworkConnection(2)
.getNetworkConnection().should.eventually.become(2)
.nodeify(done);
});
it('should get data alone', function (done) {
driver
.setNetworkConnection(4)
.getNetworkConnection().should.eventually.become(4)
.nodeify(done);
});
it('should get wifi and data', function (done) {
driver
.setNetworkConnection(6)
.getNetworkConnection().should.eventually.become(6)
.nodeify(done);
});
});