mirror of
https://github.com/appium/appium.git
synced 2026-05-04 01:11:11 -05:00
Add network connection endpoint
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user