Skip to content

Commit

Permalink
[TS migration] Migrate remaining Test files to TypeScript Expensify#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
pasyukevich committed Mar 19, 2024
1 parent e34f10e commit f3a35dd
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) => {
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 f3a35dd

Please sign in to comment.