mirror of
https://github.com/appium/appium.git
synced 2026-01-14 14:19:56 -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,11 +1,11 @@
|
||||
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("Basic IOS interactions", function () {
|
||||
describe('Basic IOS interactions', function () {
|
||||
let client;
|
||||
|
||||
beforeEach(async function () {
|
||||
@@ -16,20 +16,20 @@ describe("Basic IOS interactions", function () {
|
||||
await client.deleteSession();
|
||||
});
|
||||
|
||||
it("should send keys to inputs", async function () {
|
||||
const elementId = await client.findElement("accessibility id", "TextField1");
|
||||
client.elementSendKeys(elementId.ELEMENT, "Hello World!");
|
||||
it('should send keys to inputs', async function () {
|
||||
const elementId = await client.findElement('accessibility id', 'TextField1');
|
||||
client.elementSendKeys(elementId.ELEMENT, 'Hello World!');
|
||||
|
||||
const elementValue = await client.findElement("accessibility id", "TextField1");
|
||||
await client.getElementAttribute(elementValue.ELEMENT, "value").then((attr) => {
|
||||
assert.equal(attr, "Hello World!");
|
||||
const elementValue = await client.findElement('accessibility id', 'TextField1');
|
||||
await client.getElementAttribute(elementValue.ELEMENT, 'value').then((attr) => {
|
||||
assert.equal(attr, 'Hello World!');
|
||||
});
|
||||
});
|
||||
|
||||
it("should click a button that opens an alert", async function () {
|
||||
const element = await client.findElement("accessibility id", "show alert");
|
||||
it('should click a button that opens an alert', async function () {
|
||||
const element = await client.findElement('accessibility id', 'show alert');
|
||||
await client.elementClick(element.ELEMENT);
|
||||
|
||||
assert.equal(await client.getAlertText(), "Cool title\nthis alert is so cool.");
|
||||
assert.equal(await client.getAlertText(), 'Cool title\nthis alert is so cool.');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user