mirror of
https://github.com/appium/appium.git
synced 2026-01-13 22:00:05 -06:00
Update eslint-config-appium to the latest version 🚀 (#11952)
* chore(package): update eslint-config-appium to version 4.0.1 * chore: fix linting * chore: rebase and done
This commit is contained in:
committed by
Isaac A. Murchie
parent
97f324a58b
commit
10753839a9
@@ -1,24 +1,24 @@
|
||||
const webdriverio = require("webdriverio");
|
||||
const iosOptions = require("../../helpers/caps").iosOptions;
|
||||
const app = require("../../helpers/apps").iosTestApp;
|
||||
const assert = require("chai").assert;
|
||||
const webdriverio = require('webdriverio');
|
||||
const iosOptions = require('../../helpers/caps').iosOptions;
|
||||
const app = require('../../helpers/apps').iosTestApp;
|
||||
const assert = require('chai').assert;
|
||||
|
||||
iosOptions.capabilities.app = app;
|
||||
|
||||
describe("Create session", function () {
|
||||
describe('Create session', function () {
|
||||
let client;
|
||||
|
||||
beforeEach(async function () {
|
||||
client = await webdriverio.remote(iosOptions);
|
||||
});
|
||||
|
||||
it("should create and destroy IOS sessions", async function () {
|
||||
it('should create and destroy IOS sessions', async function () {
|
||||
const res = await client.status();
|
||||
assert.isObject(res.build);
|
||||
|
||||
const element = await client.findElement("class name", "XCUIElementTypeApplication");
|
||||
await client.getElementAttribute(element.ELEMENT, "name").then((attr) => {
|
||||
assert.equal(attr, "TestApp");
|
||||
const element = await client.findElement('class name', 'XCUIElementTypeApplication');
|
||||
await client.getElementAttribute(element.ELEMENT, 'name').then((attr) => {
|
||||
assert.equal(attr, 'TestApp');
|
||||
});
|
||||
|
||||
const destroySession = await client.deleteSession();
|
||||
|
||||
Reference in New Issue
Block a user