chore: fix typos (#21585)

This commit is contained in:
Noritaka Kobayashi
2025-09-14 09:14:42 +09:00
committed by GitHub
parent 34665dbe77
commit 9f8b55e7ab
10 changed files with 14 additions and 14 deletions

View File

@@ -121,7 +121,7 @@ async function _runAppiumJson(appiumHome, args) {
/**
* Runs the `appium` executable with the given args in JSON mode.
* Will reject with the contents of `STDOUT` (which were to be pasred) if parsing into JSON fails.
* Will reject with the contents of `STDOUT` (which were to be parsed) if parsing into JSON fails.
*
* The caller must wrap the call (in parens) with a docstring containing a return type.
* i.e., add `@type {MyType}` tag.

View File

@@ -3,7 +3,7 @@ import _ from 'lodash';
import { AppiumConfigJsonSchema } from '@appium/schema';
// this must be a `require` because babel will not compile `node_modules`
// TOOD: consider just copying this into fixtures so we can make it ESM
// TODO: consider just copying this into fixtures so we can make it ESM
const {default: fakeDriverSchema} = require('@appium/fake-driver/build/lib/fake-driver-schema');
const schema = _.cloneDeep(AppiumConfigJsonSchema);

View File

@@ -549,7 +549,7 @@ describe('Manifest', function () {
expect(manifest.getExtensionData(DRIVER_TYPE)).to.have.property('myDriver');
});
describe('when the underyling implementation emits "error"', function () {
describe('when the underlying implementation emits "error"', function () {
beforeEach(function () {
// @ts-expect-error
MockGlob.callsFake(() => {

View File

@@ -68,7 +68,7 @@ GET | `session/{sessionId}/alert_text` | G
POST | `session/{sessionId}/alert_text` | Sends keystrokes to the currently displayed dialog
POST | `session/{sessionId}/accept_alert` | Accepts the currently displayed alert dialog.
POST | `session/{sessionId}/dismiss_alert` | Dismisses the currently displayed alert dialog.
POST | `session/{sessionId}/moveto` | Move the pointer by an offset of the specificed element.
POST | `session/{sessionId}/moveto` | Move the pointer by an offset of the specified element.
POST | `session/{sessionId}/click` | Click on the current pointer position.
POST | `session/{sessionId}/touch/click` | Single tap on the touch enabled device.
POST | `session/{sessionId}/touch/down` | Finger down on the screen.
@@ -112,14 +112,14 @@ POST | `session/{sessionId}/appium/device/is_locked` | C
POST | `session/{sessionId}/appium/start_recording_screen` | start recording the screen.
POST | `session/{sessionId}/appium/stop_recording_screen` | stop recording the screen.
POST | `session/{sessionId}/appium/performanceData/types` | returns the information types of the system state which is supported to read as like cpu, memory, network traffic, and battery.
POST | `session/{sessionId}/appium/getPerformanceData` | returns the information of the system state which is supported to read as like cpu, memory, network traffic, and battery.
POST | `session/{sessionId}/appium/getPerformanceData` | returns the information of the system state which is supported to read as like cpu, memory, network traffic, and battery.
POST | `session/{sessionId}/appium/device/press_keycode` | Press a particular key code on the device.
POST | `session/{sessionId}/appium/device/long_press_keycode` | Press and hold a particular key code on the device.
POST | `session/{sessionId}/appium/device/keyevent` | Send a key code to the device.
GET | `session/{sessionId}/appium/device/current_activity` | Retrieve the current activity running on the device.
GET | `session/{sessionId}/appium/device/current_package` | Retrieve the current package running on the device.
POST | `session/{sessionId}/appium/device/install_app` | Install the given app onto the device.
POST | `session/{sessionId}/appium/device/remove_app` | Remote an app from the device.
POST | `session/{sessionId}/appium/device/remove_app` | Remove an app from the device.
POST | `session/{sessionId}/appium/device/app_installed` | Check whether the specified app is installed on the device.
POST | `session/{sessionId}/appium/device/hide_keyboard` | Hide the soft keyboard.
GET | `session/{sessionId}/appium/device/is_keyboard_shown` | Whether or not the soft keyboard is shown.

View File

@@ -59,13 +59,13 @@ process.on('exit', () => {
});
/**
* Perform inital application package configuration
* Perform initial application package configuration
* to prepare it for the further consumption by a driver:
*
* - Manages caching logic
* - Downloads the app from a remote URL to the local filesystem
* - Determines package name
* - Checks basic requiremenets on the application package
* - Checks basic requirements on the application package
*
* @param {string} app
* @param {string|string[]|import('@appium/types').ConfigureAppOptions} options

View File

@@ -3,7 +3,7 @@
import _ from 'lodash';
/**
* Determine whether the given agument is valid
* Determine whether the given argument is valid
* W3C capabilities instance.
*
* @param {any} caps

View File

@@ -421,7 +421,7 @@ export default class ImageElementFinder {
*/
/**
* Get a image that will be used for template maching.
* Get a image that will be used for template matching.
* Returns scaled image if scale ratio is provided.
*
* @param {Buffer} template - image used as a template to be

View File

@@ -414,7 +414,7 @@ describe('basic', function () {
log = new Log();
});
it('to nonexistant level', function() {
it('to nonexistent level', function() {
log.emitLog({ prefix: 'test', level: 'asdf' });
});
});
@@ -424,7 +424,7 @@ describe('basic', function () {
log = new Log();
});
it('with nonexistant stream', function() {
it('with nonexistent stream', function() {
log.stream = null;
(log._format('message') === undefined).should.be.true;
});

View File

@@ -62,7 +62,7 @@ describe('storage', function () {
(await fs.exists(path.join(storageRoot, tmpName))).should.be.false;
});
it('should only reset parital files if shouldPreserveFiles requested', async function () {
it('should only reset partial files if shouldPreserveFiles requested', async function () {
const name = 'foo.bar';
const tmpName = 'bar.baz.filepart';
await fs.writeFile(path.join(storageRoot, name), Buffer.alloc(1));

View File

@@ -28,7 +28,7 @@ async function parseXmlPlistFile(plistFilename) {
* @returns {Promise<any>} parsed plist JS Object
*/
async function parsePlistFile(plist, mustExist = true, quiet = true) {
// handle nonexistant file
// handle nonexistent file
if (!(await fs.exists(plist))) {
if (mustExist) {
throw log.errorWithException(`Plist file doesn't exist: '${plist}'`);