mirror of
https://github.com/appium/appium.git
synced 2026-02-07 18:18:54 -06:00
Lint and update JS sample code (#11927)
* Lint and update JS wd sample code * Lint and update JS webdriverio sample code * Add JS sample code to greenkeeper
This commit is contained in:
@@ -5,19 +5,21 @@ const assert = require("chai").assert;
|
||||
|
||||
androidOptions.capabilities.app = app;
|
||||
|
||||
describe("Create Android session", function() {
|
||||
describe("Create Android session", function () {
|
||||
let client;
|
||||
|
||||
before(async() => {
|
||||
before(async function () {
|
||||
client = await webdriverio.remote(androidOptions);
|
||||
});
|
||||
|
||||
it("should create and destroy a session", async function() {
|
||||
const res = await client.status();
|
||||
assert.isObject(res.build);
|
||||
const current_package = await client.getCurrentPackage();
|
||||
assert.equal(current_package, "io.appium.android.apis");
|
||||
const delete_session = await client.deleteSession();
|
||||
assert.isNull(delete_session);
|
||||
it("should create and destroy a session", async function () {
|
||||
const res = await client.status();
|
||||
assert.isObject(res.build);
|
||||
|
||||
const current_package = await client.getCurrentPackage();
|
||||
assert.equal(current_package, "io.appium.android.apis");
|
||||
|
||||
const delete_session = await client.deleteSession();
|
||||
assert.isNull(delete_session);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user