mirror of
https://github.com/appium/appium.git
synced 2026-11-08 10:45:05 +08:00
Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d35def9ed | ||
|
|
77727dc913 | ||
|
|
bbfc7ef51d | ||
|
|
21d337f976 | ||
|
|
1a73ac0b75 | ||
|
|
35d9dc7ebc | ||
|
|
2877f90981 |
+1
-1
@@ -130,7 +130,7 @@
|
||||
"eslint-plugin-mocha": "9.0.0",
|
||||
"eslint-plugin-promise": "5.2.0",
|
||||
"fancy-log": "1.3.3",
|
||||
"finalhandler": "1.1.2",
|
||||
"finalhandler": "1.2.0",
|
||||
"get-port": "5.1.1",
|
||||
"gulp": "4.0.2",
|
||||
"handlebars": "4.7.7",
|
||||
|
||||
@@ -3,6 +3,17 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
# [2.0.0-beta.27](https://github.com/appium/appium/compare/appium@2.0.0-beta.26...appium@2.0.0-beta.27) (2022-03-23)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **base-driver:** Use WeakRef to reference the driver instance in the log prefix generator ([#16636](https://github.com/appium/appium/issues/16636)) ([bbfc7ef](https://github.com/appium/appium/commit/bbfc7ef51d8a5c7e99072ee599ce2a6265017ea4))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0-beta.26](https://github.com/appium/appium/compare/appium@2.0.0-beta.25...appium@2.0.0-beta.26) (2022-03-22)
|
||||
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ class AppiumDriver extends BaseDriver {
|
||||
*/
|
||||
get log () {
|
||||
if (!this._log) {
|
||||
const instanceName = `${this.constructor.name}@${node.getObjectId(this).substring(0, 8)}`;
|
||||
const instanceName = `${this.constructor.name}@${node.getObjectId(this).substring(0, 4)}`;
|
||||
this._log = logger.getLogger(instanceName);
|
||||
}
|
||||
return this._log;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "appium",
|
||||
"version": "2.0.0-beta.26",
|
||||
"version": "2.0.0-beta.27",
|
||||
"description": "Automation for Apps.",
|
||||
"keywords": [
|
||||
"automation",
|
||||
@@ -56,7 +56,7 @@
|
||||
"@appium/support": "file:../support",
|
||||
"@babel/runtime": "7.17.8",
|
||||
"@sidvind/better-ajv-errors": "1.1.1",
|
||||
"ajv": "8.10.0",
|
||||
"ajv": "8.11.0",
|
||||
"ajv-formats": "2.1.1",
|
||||
"argparse": "2.0.1",
|
||||
"async-lock": "1.3.1",
|
||||
|
||||
@@ -3,6 +3,17 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [8.3.1](https://github.com/appium/appium/compare/@appium/base-driver@8.3.0...@appium/base-driver@8.3.1) (2022-03-23)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **base-driver:** Use WeakRef to reference the driver instance in the log prefix generator ([#16636](https://github.com/appium/appium/issues/16636)) ([bbfc7ef](https://github.com/appium/appium/commit/bbfc7ef51d8a5c7e99072ee599ce2a6265017ea4))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [8.3.0](https://github.com/appium/appium/compare/@appium/base-driver@8.2.4...@appium/base-driver@8.3.0) (2022-03-22)
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
const gulp = require('gulp');
|
||||
const boilerplate = require('@appium/gulp-plugins').boilerplate.use(gulp);
|
||||
|
||||
boilerplate({
|
||||
build: 'appium-base-driver',
|
||||
});
|
||||
@@ -108,10 +108,21 @@ class BaseDriver extends Protocol {
|
||||
|
||||
get log () {
|
||||
if (!this._log) {
|
||||
const instanceName = `${this.constructor.name}@${node.getObjectId(this).substring(0, 8)}`;
|
||||
this._log = logger.getLogger(() =>
|
||||
this.sessionId ? `${instanceName} (${this.sessionId.substring(0, 8)})` : instanceName
|
||||
);
|
||||
const instanceName = `${this.constructor.name}@${node.getObjectId(this).substring(0, 4)}`;
|
||||
// We don't want the self reference to be captured inside the below closure
|
||||
// to avoid possible memory leaks,
|
||||
// but NodeJS started supporting WeakRef only since v. 14.6
|
||||
const self = global.WeakRef ? new global.WeakRef(this) : this;
|
||||
this._log = logger.getLogger(() => {
|
||||
let sessionId = self?.sessionId;
|
||||
if (!sessionId && _.isFunction(self.deref)) {
|
||||
const ref = self.deref();
|
||||
if (ref?.sessionId) {
|
||||
sessionId = ref.sessionId;
|
||||
}
|
||||
}
|
||||
return sessionId ? `${instanceName} (${sessionId.substring(0, 8)})` : instanceName;
|
||||
});
|
||||
}
|
||||
|
||||
return this._log;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@appium/base-driver",
|
||||
"version": "8.3.0",
|
||||
"version": "8.3.1",
|
||||
"description": "Base driver class for Appium drivers",
|
||||
"keywords": [
|
||||
"automation",
|
||||
@@ -32,15 +32,20 @@
|
||||
"lib",
|
||||
"static",
|
||||
"test/basedriver",
|
||||
"!test/basedriver/fixtures",
|
||||
"!test/e2e/fixtures",
|
||||
"build",
|
||||
"!build/test/basedriver/fixtures"
|
||||
"!build/test/e2e/fixtures"
|
||||
],
|
||||
"scripts": {
|
||||
"dev": "gulp dev --no-notif",
|
||||
"build": "gulp transpile",
|
||||
"test": "gulp unit-test:run",
|
||||
"test:e2e": "gulp e2e-test:run"
|
||||
"build": "npm run build:sources && npm run build:test",
|
||||
"build:sources": "babel lib --root-mode=upward --out-dir=build/lib",
|
||||
"build:test": "babel test --root-mode=upward --out-dir=build/test --copy-files",
|
||||
"dev": "npm run build -- --watch",
|
||||
"fix": "npm run lint -- --fix",
|
||||
"lint": "eslint -c ../../.eslintrc --ignore-path ../../.eslintignore .",
|
||||
"test": "npm run test:unit",
|
||||
"test:e2e": "mocha --require ../../test/setup-babel.js --timeout 20s --slow 10s \"./test/e2e/**/*.spec.js\"",
|
||||
"test:unit": "mocha --require ../../test/setup-babel.js \"./test/unit/**/*.spec.js\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@appium/support": "file:../support",
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
# Driver Test Helpers
|
||||
|
||||
This directory contains modules which expose test suites that an external driver can use to test against the base implementation. They are published in the `@appium/base-driver` package.
|
||||
|
||||
Drivers wanting to leverage these suites will want to add `@appium/base-driver` to their `devDependencies`.
|
||||
@@ -2,7 +2,7 @@ import _ from 'lodash';
|
||||
import { BaseDriver, server, routeConfiguringFunction, DeviceSettings } from '../../lib';
|
||||
import axios from 'axios';
|
||||
import B from 'bluebird';
|
||||
import {TEST_HOST, getTestPort, createAppiumURL, METHODS} from '../helpers';
|
||||
import { TEST_HOST, getTestPort, createAppiumURL, METHODS } from '../helpers';
|
||||
import { PREFIXED_APPIUM_OPTS_CAP } from '../../lib/basedriver/capabilities';
|
||||
const {POST, DELETE} = METHODS;
|
||||
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
// transpile:mocha
|
||||
|
||||
import BaseDriver from '../../lib';
|
||||
import baseDriverE2ETests from './driver-e2e-tests';
|
||||
import BaseDriver from '../../../lib';
|
||||
import baseDriverE2ETests from '../../basedriver/driver-e2e-tests';
|
||||
baseDriverE2ETests(BaseDriver, {
|
||||
platformName: 'iOS',
|
||||
'appium:deviceName': 'Delorean'
|
||||
+4
-4
@@ -1,18 +1,18 @@
|
||||
import path from 'path';
|
||||
import url from 'url';
|
||||
import { fs } from '@appium/support';
|
||||
import { configureApp } from '../../lib/basedriver/helpers';
|
||||
import { configureApp } from '../../../lib/basedriver/helpers';
|
||||
import http from 'http';
|
||||
import finalhandler from 'finalhandler';
|
||||
import serveStatic from 'serve-static';
|
||||
import contentDisposition from 'content-disposition';
|
||||
import B from 'bluebird';
|
||||
import {TEST_HOST, getTestPort} from '../helpers';
|
||||
import { TEST_HOST, getTestPort } from '../../helpers';
|
||||
|
||||
|
||||
function getFixture (file) {
|
||||
// XXX: __dirname disallowed in native ESM
|
||||
return path.resolve(__dirname, '..', '..', '..', 'test', 'basedriver', 'fixtures', file);
|
||||
return path.resolve(__dirname, '..', 'fixtures', file);
|
||||
}
|
||||
|
||||
describe('app download and configuration', function () {
|
||||
@@ -72,7 +72,7 @@ describe('app download and configuration', function () {
|
||||
// use a local server so there is no dependency on the internet
|
||||
let server;
|
||||
before(function () {
|
||||
const dir = path.resolve(__dirname, '..', '..', '..', 'test', 'basedriver', 'fixtures');
|
||||
const dir = path.resolve(__dirname, '..', 'fixtures');
|
||||
const serve = serveStatic(dir, {
|
||||
index: false,
|
||||
setHeaders: (res, path) => {
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
import _ from 'lodash';
|
||||
import { server, routeConfiguringFunction,
|
||||
DEFAULT_WS_PATHNAME_PREFIX } from '../../lib';
|
||||
DEFAULT_WS_PATHNAME_PREFIX } from '../../../lib';
|
||||
import { FakeDriver } from '../protocol/fake-driver';
|
||||
import WebSocket from 'ws';
|
||||
import B from 'bluebird';
|
||||
import {TEST_HOST, getTestPort} from '../helpers';
|
||||
import {TEST_HOST, getTestPort} from '../../helpers';
|
||||
|
||||
|
||||
describe('Websockets (e2e)', function () {
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
// transpile:mocha
|
||||
|
||||
import { server } from '../../lib';
|
||||
import { server } from '../../../lib';
|
||||
import axios from 'axios';
|
||||
import { createSandbox } from 'sinon';
|
||||
import B from 'bluebird';
|
||||
import _ from 'lodash';
|
||||
import {TEST_HOST, getTestPort} from '../helpers';
|
||||
import {TEST_HOST, getTestPort} from '../../helpers';
|
||||
|
||||
|
||||
describe('server', function () {
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { JWProxy, server, routeConfiguringFunction } from '../../lib';
|
||||
import { JWProxy, server, routeConfiguringFunction } from '../../../lib';
|
||||
import { FakeDriver } from '../protocol/fake-driver';
|
||||
|
||||
describe('proxy', function () {
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable require-await */
|
||||
import { errors, BaseDriver, determineProtocol } from '../../lib';
|
||||
import { PROTOCOLS } from '../../lib/constants';
|
||||
import { errors, BaseDriver, determineProtocol } from '../../../lib';
|
||||
import { PROTOCOLS } from '../../../lib/constants';
|
||||
import { util } from '@appium/support';
|
||||
|
||||
|
||||
+3
-3
@@ -2,7 +2,7 @@
|
||||
|
||||
import {
|
||||
server, routeConfiguringFunction, errors, JWProxy, BaseDriver
|
||||
} from '../../lib';
|
||||
} from '../../../lib';
|
||||
import { FakeDriver } from './fake-driver';
|
||||
import axios from 'axios';
|
||||
import { createSandbox } from 'sinon';
|
||||
@@ -10,8 +10,8 @@ import { StatusCodes as HTTPStatusCodes } from 'http-status-codes';
|
||||
import { createProxyServer } from './helpers';
|
||||
import {
|
||||
MJSONWP_ELEMENT_KEY, W3C_ELEMENT_KEY
|
||||
} from '../../lib/constants';
|
||||
import {TEST_HOST, getTestPort} from '../helpers';
|
||||
} from '../../../lib/constants';
|
||||
import {TEST_HOST, getTestPort} from '../../helpers';
|
||||
|
||||
let port;
|
||||
let baseUrl;
|
||||
+3
-3
@@ -1,10 +1,10 @@
|
||||
import {
|
||||
parseCaps, validateCaps, mergeCaps, processCapabilities, findNonPrefixedCaps,
|
||||
promoteAppiumOptions, APPIUM_OPTS_CAP, stripAppiumPrefixes
|
||||
} from '../../lib/basedriver/capabilities';
|
||||
} from '../../../lib/basedriver/capabilities';
|
||||
import _ from 'lodash';
|
||||
import { desiredCapabilityConstraints } from '../../lib/basedriver/desired-caps';
|
||||
import { isW3cCaps } from '../../lib/helpers/capabilities';
|
||||
import { desiredCapabilityConstraints } from '../../../lib/basedriver/desired-caps';
|
||||
import { isW3cCaps } from '../../../lib/helpers/capabilities';
|
||||
|
||||
|
||||
describe('caps', function () {
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
// @ts-check
|
||||
|
||||
import B from 'bluebird';
|
||||
import { default as BaseDriver, errors } from '../../lib';
|
||||
import logger from '../../lib/basedriver/logger';
|
||||
import { default as BaseDriver, errors } from '../../../lib';
|
||||
import logger from '../../../lib/basedriver/logger';
|
||||
import { createSandbox } from 'sinon';
|
||||
|
||||
describe('Desired Capabilities', function () {
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import _ from 'lodash';
|
||||
import { BaseDriver } from '../../../lib';
|
||||
import { BaseDriver } from '../../../../lib';
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import logCommands from '../../../lib/basedriver/commands/log';
|
||||
import logCommands from '../../../../lib/basedriver/commands/log';
|
||||
import { createSandbox } from 'sinon';
|
||||
import _ from 'lodash';
|
||||
|
||||
+3
-2
@@ -1,7 +1,8 @@
|
||||
// transpile:mocha
|
||||
|
||||
import BaseDriver from '../../lib';
|
||||
import baseDriverUnitTests from './driver-tests';
|
||||
import BaseDriver from '../../../lib';
|
||||
import { baseDriverUnitTests } from '../../basedriver';
|
||||
|
||||
baseDriverUnitTests(BaseDriver, {
|
||||
platformName: 'iOS',
|
||||
'appium:deviceName': 'Delorean'
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { zip, fs, tempDir } from '@appium/support';
|
||||
import { configureApp, isPackageOrBundle, duplicateKeys, parseCapsArray } from '../../lib/basedriver/helpers';
|
||||
import { configureApp, isPackageOrBundle, duplicateKeys, parseCapsArray } from '../../../lib/basedriver/helpers';
|
||||
import sinon from 'sinon';
|
||||
|
||||
|
||||
@@ -134,4 +134,4 @@ describe('parseCapsArray', function () {
|
||||
it('should return an array without change', function () {
|
||||
parseCapsArray(['a', 'b']).should.eql(['a', 'b']);
|
||||
});
|
||||
});
|
||||
});
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import BaseDriver from '../../lib';
|
||||
import BaseDriver from '../../../lib';
|
||||
import { createSandbox } from 'sinon';
|
||||
|
||||
describe('timeout', function () {
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
// transpile:mocha
|
||||
|
||||
import { server, routeConfiguringFunction } from '../../lib';
|
||||
import { configureServer, normalizeBasePath } from '../../lib/express/server';
|
||||
import { server, routeConfiguringFunction } from '../../../lib';
|
||||
import { configureServer, normalizeBasePath } from '../../../lib/express/server';
|
||||
import { createSandbox } from 'sinon';
|
||||
import { getTestPort } from '../helpers';
|
||||
import { getTestPort } from '../../helpers';
|
||||
|
||||
const newMethodMap = {
|
||||
'/session/:sessionId/fake': {
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// transpile:mocha
|
||||
|
||||
import { welcome } from '../../lib/express/static';
|
||||
import { welcome } from '../../../lib/express/static';
|
||||
import { createSandbox } from 'sinon';
|
||||
|
||||
describe('welcome', function () {
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
import _ from 'lodash';
|
||||
import { PROTOCOLS } from '../../lib/constants';
|
||||
import ProtocolConverter, {COMMAND_URLS_CONFLICTS} from '../../lib/jsonwp-proxy/protocol-converter';
|
||||
import { PROTOCOLS } from '../../../lib/constants';
|
||||
import ProtocolConverter, {COMMAND_URLS_CONFLICTS} from '../../../lib/jsonwp-proxy/protocol-converter';
|
||||
|
||||
const {MJSONWP, W3C} = PROTOCOLS;
|
||||
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
// transpile:mocha
|
||||
|
||||
import { JWProxy } from '../../lib';
|
||||
import { JWProxy } from '../../../lib';
|
||||
import request from './mock-request';
|
||||
import { isErrorType, errors } from '../../lib/protocol/errors';
|
||||
import { getTestPort, TEST_HOST } from '../helpers';
|
||||
import { isErrorType, errors } from '../../../lib/protocol/errors';
|
||||
import { getTestPort, TEST_HOST } from '../../helpers';
|
||||
|
||||
function buildReqRes (url, method, body) {
|
||||
let req = {originalUrl: url, method, body};
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
// transpile:mocha
|
||||
|
||||
import { JWProxy } from '../../lib';
|
||||
import { getTestPort, TEST_HOST, createAppiumURL } from '../helpers';
|
||||
import { JWProxy } from '../../../lib';
|
||||
import { getTestPort, TEST_HOST, createAppiumURL } from '../../helpers';
|
||||
import _ from 'lodash';
|
||||
|
||||
describe('JWProxy', function () {
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import _ from 'lodash';
|
||||
import { statusCodes, getSummaryByCode } from '../../lib';
|
||||
import { statusCodes, getSummaryByCode } from '../../../lib';
|
||||
|
||||
|
||||
|
||||
+8
-5
@@ -1,9 +1,12 @@
|
||||
import {
|
||||
errors, errorFromMJSONWPStatusCode, errorFromW3CJsonCode, isErrorType
|
||||
} from '../../lib';
|
||||
import { getResponseForW3CError } from '../../lib/protocol/errors';
|
||||
} from '../../../lib';
|
||||
import { getResponseForW3CError } from '../../../lib/protocol/errors';
|
||||
import _ from 'lodash';
|
||||
import { StatusCodes as HTTPStatusCodes } from 'http-status-codes';
|
||||
import path from 'path';
|
||||
|
||||
const basename = path.basename(__filename);
|
||||
|
||||
|
||||
// Error codes and messages have been added according to JsonWireProtocol see
|
||||
@@ -341,7 +344,7 @@ describe('.getResponseForW3CError', function () {
|
||||
error.should.equal('unknown error');
|
||||
stacktrace.should.match(/at getResponseForW3CError/);
|
||||
stacktrace.should.match(/Some random error/);
|
||||
stacktrace.should.match(/errors-specs.js/);
|
||||
stacktrace.should.contain(basename);
|
||||
}
|
||||
});
|
||||
it('should return an error, message and stacktrace for a NoSuchElementError', function () {
|
||||
@@ -351,7 +354,7 @@ describe('.getResponseForW3CError', function () {
|
||||
const {error, message, stacktrace} = httpResponseBody.value;
|
||||
error.should.equal('no such element');
|
||||
message.should.match(/specific error message/);
|
||||
stacktrace.should.match(/errors-specs.js/);
|
||||
stacktrace.should.contain(basename);
|
||||
});
|
||||
it('should handle BadParametersError', function () {
|
||||
const badParamsError = new errors.BadParametersError('__FOO__', '__BAR__', '__HELLO_WORLD__');
|
||||
@@ -361,7 +364,7 @@ describe('.getResponseForW3CError', function () {
|
||||
error.should.equal('invalid argument');
|
||||
message.should.match(/__BAR__/);
|
||||
message.should.match(/__HELLO_WORLD__/);
|
||||
stacktrace.should.match(/errors-specs.js/);
|
||||
stacktrace.should.contain(basename);
|
||||
});
|
||||
it('should translate JSONWP errors', function () {
|
||||
const [httpStatus, httpResponseBody] = getResponseForW3CError({
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// transpile:mocha
|
||||
|
||||
import { _ } from 'lodash';
|
||||
import { METHOD_MAP, routeToCommandName } from '../../lib/protocol';
|
||||
import { METHOD_MAP, routeToCommandName } from '../../../lib/protocol';
|
||||
import crypto from 'crypto';
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// transpile:mocha
|
||||
|
||||
import { validators } from '../../lib/protocol/validators';
|
||||
import { validators } from '../../../lib/protocol/validators';
|
||||
|
||||
|
||||
|
||||
@@ -3,6 +3,14 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.16.11](https://github.com/appium/appium/compare/@appium/doctor@1.16.10...@appium/doctor@1.16.11) (2022-03-23)
|
||||
|
||||
**Note:** Version bump only for package @appium/doctor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.16.10](https://github.com/appium/appium/compare/@appium/doctor@1.16.9...@appium/doctor@1.16.10) (2022-03-22)
|
||||
|
||||
**Note:** Version bump only for package @appium/doctor
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@appium/doctor",
|
||||
"version": "1.16.10",
|
||||
"version": "1.16.11",
|
||||
"description": "Test environment for fitness to run Appium",
|
||||
"keywords": [
|
||||
"automation",
|
||||
|
||||
@@ -3,6 +3,14 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [3.2.6](https://github.com/appium/appium/compare/@appium/fake-driver@3.2.5...@appium/fake-driver@3.2.6) (2022-03-23)
|
||||
|
||||
**Note:** Version bump only for package @appium/fake-driver
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.2.5](https://github.com/appium/appium/compare/@appium/fake-driver@3.2.4...@appium/fake-driver@3.2.5) (2022-03-22)
|
||||
|
||||
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
const gulp = require('gulp');
|
||||
const boilerplate = require('@appium/gulp-plugins').boilerplate.use(gulp);
|
||||
|
||||
gulp.task('copy-screen.png', () => gulp.src('./screen.png').pipe(gulp.dest('./build/')));
|
||||
|
||||
gulp.task('copy-app.xml', () => gulp.src('./test/fixtures/app.xml').pipe(gulp.dest('./build/test/fixtures/')));
|
||||
|
||||
boilerplate({
|
||||
build: '@appium/fake-driver',
|
||||
testTimeout: 15000,
|
||||
watchE2E: true,
|
||||
postTranspile: ['copy-screen.png', 'copy-app.xml']
|
||||
});
|
||||
@@ -6,7 +6,7 @@ import xpath from 'xpath';
|
||||
import log from './logger';
|
||||
import { FakeElement } from './fake-element';
|
||||
|
||||
const SCREENSHOT = path.join(__dirname, '..', 'screen.png');
|
||||
const SCREENSHOT = path.join(__dirname, 'screen.png');
|
||||
|
||||
class FakeApp {
|
||||
constructor () {
|
||||
|
||||
|
Before Width: | Height: | Size: 244 KiB After Width: | Height: | Size: 244 KiB |
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@appium/fake-driver",
|
||||
"version": "3.2.5",
|
||||
"description": "Description goes here.",
|
||||
"version": "3.2.6",
|
||||
"description": "Mock driver used internally by Appium for testing. Ignore",
|
||||
"keywords": [
|
||||
"automation",
|
||||
"javascript",
|
||||
@@ -33,14 +33,16 @@
|
||||
"index.js",
|
||||
"lib",
|
||||
"build",
|
||||
"test/fixtures",
|
||||
"screen.png"
|
||||
"test/fixtures"
|
||||
],
|
||||
"scripts": {
|
||||
"dev": "gulp dev --no-notif",
|
||||
"build": "gulp transpile",
|
||||
"test": "gulp unit-test:run",
|
||||
"test:e2e": "gulp e2e-test:run"
|
||||
"build": "babel lib --root-mode=upward --out-dir=build/lib --copy-files",
|
||||
"dev": "npm run build -- --watch",
|
||||
"fix": "npm run lint -- --fix",
|
||||
"lint": "eslint -c ../../.eslintrc --ignore-path ../../.eslintignore .",
|
||||
"test": "npm run test:unit",
|
||||
"test:e2e": "mocha --require ../../test/setup-babel.js --timeout 20s --slow 10s \"./test/e2e/**/*.spec.js\"",
|
||||
"test:unit": "mocha --require ../../test/setup-babel.js \"./test/unit/**/*.spec.js\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@appium/base-driver": "file:../base-driver",
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { initSession, deleteSession, W3C_PREFIXED_CAPS } from './helpers';
|
||||
import { initSession, deleteSession, W3C_PREFIXED_CAPS } from '../helpers';
|
||||
|
||||
function alertTests () {
|
||||
describe('alerts', function () {
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { initSession, deleteSession, W3C_PREFIXED_CAPS } from './helpers';
|
||||
import { initSession, deleteSession, W3C_PREFIXED_CAPS } from '../helpers';
|
||||
|
||||
function contextTests () {
|
||||
describe('contexts, webviews, frames', function () {
|
||||
+2
-2
@@ -2,8 +2,8 @@
|
||||
|
||||
import axios from 'axios';
|
||||
import { baseDriverE2ETests } from '@appium/base-driver/build/test/basedriver';
|
||||
import { FakeDriver, startServer } from '../lib/index.js';
|
||||
import { BASE_CAPS, deleteSession, initSession, TEST_HOST, TEST_PORT, W3C_PREFIXED_CAPS } from './helpers';
|
||||
import { FakeDriver, startServer } from '../../lib/index.js';
|
||||
import { BASE_CAPS, deleteSession, initSession, TEST_HOST, TEST_PORT, W3C_PREFIXED_CAPS } from '../helpers';
|
||||
import contextTests from './context-tests';
|
||||
import findElementTests from './find-element-tests';
|
||||
import elementInteractionTests from './element-interaction-tests';
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import chaiWebdriverIOAsync from 'chai-webdriverio-async';
|
||||
|
||||
import { initSession, deleteSession, W3C_PREFIXED_CAPS } from './helpers';
|
||||
import { initSession, deleteSession, W3C_PREFIXED_CAPS } from '../helpers';
|
||||
|
||||
function elementTests () {
|
||||
describe('element interaction and introspection', function () {
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { initSession, deleteSession, W3C_PREFIXED_CAPS } from './helpers';
|
||||
import { initSession, deleteSession, W3C_PREFIXED_CAPS } from '../helpers';
|
||||
import chaiWebdriverIOAsync from 'chai-webdriverio-async';
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import chaiWebdriverIOAsync from 'chai-webdriverio-async';
|
||||
import { initSession, deleteSession, W3C_PREFIXED_CAPS } from './helpers';
|
||||
import { initSession, deleteSession, W3C_PREFIXED_CAPS } from '../helpers';
|
||||
|
||||
function generalTests () {
|
||||
describe('generic actions', function () {
|
||||
+5
-5
@@ -1,10 +1,10 @@
|
||||
import _ from 'lodash';
|
||||
|
||||
import contextCommands from '../lib/commands/contexts';
|
||||
import elementCommands from '../lib/commands/element';
|
||||
import findCommands from '../lib/commands/find';
|
||||
import generalCommands from '../lib/commands/general';
|
||||
import exportedCommands from '../lib/commands';
|
||||
import contextCommands from '../../lib/commands/contexts';
|
||||
import elementCommands from '../../lib/commands/element';
|
||||
import findCommands from '../../lib/commands/find';
|
||||
import generalCommands from '../../lib/commands/general';
|
||||
import exportedCommands from '../../lib/commands';
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
// transpile:mocha
|
||||
|
||||
import _ from 'lodash';
|
||||
import { FakeDriver } from '../lib';
|
||||
import { W3C_CAPS, W3C_PREFIXED_CAPS } from './helpers';
|
||||
import { FakeDriver } from '../../lib';
|
||||
import { W3C_CAPS, W3C_PREFIXED_CAPS } from '../helpers';
|
||||
import { baseDriverUnitTests } from '@appium/base-driver/build/test/basedriver';
|
||||
|
||||
|
||||
@@ -3,6 +3,17 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [2.56.1](https://github.com/appium/appium/compare/@appium/support@2.56.0...@appium/support@2.56.1) (2022-03-23)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **support:** add missing resolve-from dependency ([77727dc](https://github.com/appium/appium/commit/77727dc9139dcece87b25222f51a306a46040d8a))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.56.0](https://github.com/appium/appium/compare/@appium/support@2.55.4...@appium/support@2.56.0) (2022-03-22)
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@appium/support",
|
||||
"version": "2.56.0",
|
||||
"version": "2.56.1",
|
||||
"description": "Support libs used across appium packages",
|
||||
"keywords": [
|
||||
"automation",
|
||||
@@ -66,6 +66,7 @@
|
||||
"pluralize": "8.0.0",
|
||||
"pngjs": "6.0.0",
|
||||
"read-pkg": "5.2.0",
|
||||
"resolve-from": "5.0.0",
|
||||
"rimraf": "3.0.2",
|
||||
"sanitize-filename": "1.6.3",
|
||||
"semver": "7.3.5",
|
||||
|
||||
@@ -3,6 +3,14 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.3.13](https://github.com/appium/appium/compare/@appium/test-support@1.3.12...@appium/test-support@1.3.13) (2022-03-23)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.3.12](https://github.com/appium/appium/compare/@appium/test-support@1.3.11...@appium/test-support@1.3.12) (2022-03-22)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@appium/test-support",
|
||||
"version": "1.3.12",
|
||||
"version": "1.3.13",
|
||||
"description": "A collection of test utilities used across Appium packages",
|
||||
"keywords": [
|
||||
"automation",
|
||||
|
||||
Reference in New Issue
Block a user