import { ACTIONS_IN_TEST } from "./recordedActions" ; interface ActionMeta { selector ? : string ; value ? : string ; } const ACTION_DESCRIPTIONS = { [ ACTIONS_IN_TEST . SET_DEVICE ] : ( meta ) => { return `Set user agent to ${ meta . value }` ; } , [ ACTIONS_IN_TEST . NAVIGATE_URL ] : ( meta ) => { return `Navigated to ${ meta . value }` ; } , [ ACTIONS_IN_TEST . CLICK ] : ( meta ) => { return `Clicked on ${ meta . selector }` ; } , [ ACTIONS_IN_TEST . HOVER ] : ( meta ) => { return `Hovered on ${ meta . selector }` ; } , [ ACTIONS_IN_TEST . ELEMENT_SCREENSHOT ] : ( meta ) => { return `Took screenshot of ${ meta . selector }` ; } , [ ACTIONS_IN_TEST . PAGE_SCREENSHOT ] : ( ) => { return `Took page screenshot` ; } , [ ACTIONS_IN_TEST . ADD_INPUT ] : ( meta ) => { return `Type ${ meta . value } in ${ meta . selector }` ; } , [ ACTIONS_IN_TEST . ASSERT_ELEMENT ] : ( meta ) => { return `Assert element info from ${ meta . selector }` ; } , [ ACTIONS_IN_TEST . VALIDATE_SEO ] : ( meta ) => { return `Validating SEO info` ; } , [ ACTIONS_IN_TEST . CUSTOM_CODE ] : ( meta ) => { return `Executing custom code` ; } , [ ACTIONS_IN_TEST . RUN_TEMPLATE ] : ( meta ) => { return 'Running a template with series of steps' ; } , [ ACTIONS_IN_TEST . RELOAD_PAGE ] : ( ) => { return 'Reloading page' ; } , [ ACTIONS_IN_TEST . BACK_PAGE ] : ( ) => { return 'Going back in history' ; } } ; export { ACTION_DESCRIPTIONS } ;