mirror of
https://github.com/appium/appium.git
synced 2026-10-29 04:36:39 +08:00
Update to new name for xcuitest driver
This commit is contained in:
+2
-2
@@ -7,7 +7,7 @@ import { FakeDriver } from 'appium-fake-driver';
|
||||
import { AndroidDriver } from 'appium-android-driver';
|
||||
import { IosDriver } from 'appium-ios-driver';
|
||||
import { SelendroidDriver } from 'appium-selendroid-driver';
|
||||
import { WebDriverAgentDriver } from 'appium-xcuitest-driver';
|
||||
import { XCUITestDriver } from 'appium-xcuitest-driver';
|
||||
import { YouiEngineDriver } from 'appium-youiengine-driver';
|
||||
import B from 'bluebird';
|
||||
import util from 'util';
|
||||
@@ -48,7 +48,7 @@ class AppiumDriver extends BaseDriver {
|
||||
return SelendroidDriver;
|
||||
} else if (caps.automationName.toLowerCase() === 'xcuitest') {
|
||||
// but if we do and it is 'XCUITest', act on it
|
||||
return WebDriverAgentDriver;
|
||||
return XCUITestDriver;
|
||||
} else if (caps.automationName.toLowerCase() === 'youiengine') {
|
||||
// but if we do and it is 'YouiEngine', act on it
|
||||
return YouiEngineDriver;
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@
|
||||
"appium-logger": "^2.1.0",
|
||||
"appium-selendroid-driver": "^1.3.4",
|
||||
"appium-support": "^2.3.0",
|
||||
"appium-xcuitest-driver": "^1.0.4",
|
||||
"appium-xcuitest-driver": "^2.0.0",
|
||||
"appium-youiengine-driver": "^1.0.3",
|
||||
"argparse": "^1.0.7",
|
||||
"asyncbox": "^2.3.1",
|
||||
|
||||
@@ -7,7 +7,7 @@ import _ from 'lodash';
|
||||
import sinon from 'sinon';
|
||||
import chai from 'chai';
|
||||
import chaiAsPromised from 'chai-as-promised';
|
||||
import { WebDriverAgentDriver } from 'appium-xcuitest-driver';
|
||||
import { XCUITestDriver } from 'appium-xcuitest-driver';
|
||||
|
||||
|
||||
chai.use(chaiAsPromised);
|
||||
@@ -176,14 +176,14 @@ describe('AppiumDriver', () => {
|
||||
let appium = new AppiumDriver({});
|
||||
(() => { appium.getDriverForCaps({}); }).should.throw(/platformName/);
|
||||
});
|
||||
it('should get WebDriverAgentDriver driver for automationName of XCUITest', () => {
|
||||
it('should get XCUITestDriver driver for automationName of XCUITest', () => {
|
||||
let appium = new AppiumDriver({});
|
||||
let driver = appium.getDriverForCaps({
|
||||
platformName: 'iOS',
|
||||
automationName: 'XCUITest'
|
||||
});
|
||||
driver.should.be.an.instanceof(Function);
|
||||
driver.should.equal(WebDriverAgentDriver);
|
||||
driver.should.equal(XCUITestDriver);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user