Skip to content

Commit

Permalink
Merge pull request #38589 from pasyukevich/feature/migrate-remaining-…
Browse files Browse the repository at this point in the history
…test-files

[NO QA] [TS migration] Migrate remaining Test files to TypeScript #38536
  • Loading branch information
AndrewGable authored Mar 20, 2024
2 parents 2b99e8a + 4093c5f commit cc7b664
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libs/E2E/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ export default {
updateNetworkCache,
getNetworkCache,
};
export type {TestResult, NativeCommand};
export type {TestResult, NativeCommand, NativeCommandPayload};
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import type {NativeCommandPayload} from '@libs/E2E/client';
import adbBackspace from './adbBackspace';
import adbTypeText from './adbTypeText';
// eslint-disable-next-line rulesdir/prefer-import-module-contents
import {NativeCommandsAction} from './NativeCommandsAction';

const executeFromPayload = (actionName, payload) => {
const executeFromPayload = (actionName?: string, payload?: NativeCommandPayload): boolean => {
switch (actionName) {
case NativeCommandsAction.scroll:
throw new Error('Not implemented yet');
case NativeCommandsAction.type:
return adbTypeText(payload.text);
return adbTypeText(payload?.text ?? '');
case NativeCommandsAction.backspace:
return adbBackspace();
default:
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit cc7b664

Please sign in to comment.