test(images-plugin): use
also sync package.json
MODIFY
packages/images-plugin/package.json
packages/images-plugin/package.json
"version": "1.3.5",
"description": "Plugin for working with images and image elements in Appium",
"keywords": [
- "appium",
- "opencv",
"automation",
- "image",
- "webdriver"
+ "javascript",
+ "selenium",
+ "webdriver",
+ "ios",
+ "android",
+ "firefoxos",
+ "testing"
],
"bugs": {
"url": "https://github.com/appium/appium/issues"

MODIFY
packages/images-plugin/test/e2e/plugin.e2e.spec.js
packages/images-plugin/test/e2e/plugin.e2e.spec.js
@@ -2,7 +2,7 @@ import path from 'path';
import {remote as wdio} from 'webdriverio';
import {MATCH_FEATURES_MODE, GET_SIMILARITY_MODE} from '../../lib/compare';
import {TEST_IMG_1_B64, TEST_IMG_2_B64, APPSTORE_IMG_PATH} from '../fixtures';
-import {pluginE2EHarness} from 'appium/test';
+import {pluginE2EHarness} from '@appium/plugin-test-support';
const THIS_PLUGIN_DIR = path.join(__dirname, '..', '..');
const APPIUM_HOME = path.join(THIS_PLUGIN_DIR, 'local_appium_home');

MODIFY
packages/images-plugin/tsconfig.json
packages/images-plugin/tsconfig.json
"compilerOptions": {
"outDir": "build",
"paths": {
- "@appium/opencv": ["../opencv"],
- "appium": ["../appium"]
+ "@appium/opencv": ["../opencv"]
}
},
- "extends": "../../config/tsconfig.base.json",
+ "extends": "../../config/tsconfig.plugin.json",
"include": ["lib"],
"references": [
{
"path": "../opencv"
- },
- {
- "path": "../appium"
}
]
}

test(images-plugin): use @appium/plugin-test-support

also sync package.json