mirror of
https://github.com/appium/appium.git
synced 2026-04-30 15:30:20 -05:00
38 lines
944 B
JavaScript
38 lines
944 B
JavaScript
"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);
|
|
});
|
|
});
|