Skip to content

Commit

Permalink
Merge pull request #288 from appium/isaac-web
Browse files Browse the repository at this point in the history
Remove ios-webviewapp dep and use uicatalog
  • Loading branch information
imurchie authored Nov 10, 2016
2 parents 2e90c0d + a56a3ea commit 53f3b1e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
"glob": "^7.1.0",
"gulp": "^3.8.11",
"ios-uicatalog": "^1.0.4",
"ios-webview-app": "^1.0.4",
"pre-commit": "^1.1.3",
"request-promise": "^2.0.0",
"sinon": "^1.17.4",
Expand Down
12 changes: 1 addition & 11 deletions test/functional/desired.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import uiCatalogApp from 'ios-uicatalog';
import iosWebViewApp from 'ios-webview-app';
import _ from 'lodash';
import path from 'path';
import glob from 'glob';
Expand Down Expand Up @@ -39,17 +38,8 @@ const UICATALOG_SIM_CAPS = _.defaults({
}, GENERIC_CAPS);
delete UICATALOG_SIM_CAPS.noReset; // do not want to have no reset on the tests that use this

const WEBVIEW_CAPS = _.defaults({
app: path.resolve('.', 'node_modules', 'ios-webview-app', iosWebViewApp[REAL_DEVICE ? 0 : 1]),
}, GENERIC_CAPS, REAL_DEVICE_CAPS);

const WEBVIEW_SIM_CAPS = _.defaults({
app: path.resolve('.', 'node_modules', 'ios-webview-app', iosWebViewApp[1]),
}, GENERIC_CAPS);

const SAFARI_CAPS = _.defaults({
browserName: 'Safari',
}, GENERIC_CAPS, REAL_DEVICE_CAPS);

export { UICATALOG_CAPS, UICATALOG_SIM_CAPS, WEBVIEW_CAPS, WEBVIEW_SIM_CAPS,
SAFARI_CAPS, PLATFORM_VERSION };
export { UICATALOG_CAPS, UICATALOG_SIM_CAPS, SAFARI_CAPS, PLATFORM_VERSION };
13 changes: 9 additions & 4 deletions test/functional/web/webview-e2e-specs.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
import _ from 'lodash';
import { WEBVIEW_CAPS } from '../desired';
import B from 'bluebird';
import { UICATALOG_CAPS } from '../desired';
import { initSession, deleteSession } from '../helpers/session';
import { GUINEA_PIG_PAGE } from './helpers';


chai.should();
chai.use(chaiAsPromised);

// TODO: the rd gets disconnected for some reason
describe.skip('Webview', function () {
describe('Webview', function () {
this.timeout(120 * 1000);

let driver;
before(async () => {
driver = await initSession(WEBVIEW_CAPS);
driver = await initSession(UICATALOG_CAPS);

let el = await driver.elementByAccessibilityId('Web View');
await driver.execute('mobile: scroll', {element: el, toVisible: true});
await el.click();
await B.delay(500);
});
after(async () => {
await deleteSession();
Expand Down

0 comments on commit 53f3b1e

Please sign in to comment.