department-of-veterans-affairs/vets-website

View on GitHub
src/applications/mhv-medications/util/dataDogConstants.js

Summary

Maintainability
A
2 hrs
Test Coverage
export const pageType = {
  ABOUT: 'About Page',
  DETAILS: 'Details Page',
  LIST: 'List Page',
  REFILL: 'Refill Page',
  DOCUMENTATION: 'Documentation',
};

export const dataDogActionNames = {
  medicationsListPage: {
    FILL_OR_REFILL_BUTTON: `Fill or Refill Button - ${pageType.LIST}`,
    MEDICATION_NAME_LINK_IN_CARD: `Medication Name Link In Card - ${
      pageType.LIST
    }`,
    PRINT_ALL_MEDICATIONS_OPTION: `Print All Medications Option - ${
      pageType.LIST
    }`,
    SHOW_MEDICATIONS_IN_ORDER_SELECT: `Show Medications In This Order - ${
      pageType.LIST
    }`,
    SORT_MEDICATIONS_BUTTON: `Sort Medications Button - ${pageType.LIST}`,
  },
  landingPage: {
    COMPOSE_A_MESSAGE_LINK: `Compose A Message Link - ${pageType.ABOUT}`,
    FIND_YOUR_VA_HEALTH_FACILITY_LINK: `Find Your VA Health Facility Link - ${
      pageType.ABOUT
    }`,
    GO_TO_YOUR_ALLERGY_AND_REACTION_RECORDS_LINK: `Go To Your Allergy And Reaction Records Link - ${
      pageType.ABOUT
    }`,
    GO_TO_YOUR_MEDICATIONS_LIST_ACTION_LINK: `Go To Your Medications List Action Link - ${
      pageType.ABOUT
    }`,
    GO_TO_YOUR_PROFILE_LINK: `Go To Your Profile Link - ${pageType.ABOUT}`,
    GO_TO_YOUR_SELF_ENTERED_MEDICATIONS_LINK: `Go To Your Self Entered Medications Link - ${
      pageType.ABOUT
    }`,
    MORE_WAYS_TO_MANAGE_ACCORDION: `More Ways To Manage Accordion - ${
      pageType.ABOUT
    }`,
    QUESTIONS_ABOUT_THIS_ACCORDION: `Questions About This Tool Accordion - ${
      pageType.ABOUT
    }`,
    REFILL_PRESCRIPTIONS_LINK: `Refill Prescriptions Action Link - ${
      pageType.ABOUT
    }`,
  },
  detailsPage: {
    COMPOSE_A_MESSAGE_LINK: `Compose A Message Link - ${pageType.DETAILS}`,
    LEARN_TO_RENEW_PRESCRIPTIONS_ACTION_LINK: `Learn How To Renew Prescriptions Action Link - ${
      pageType.DETAILS
    }`,
    RX_DOCUMENTATION_LINK: `Rx Documentation Link - ${pageType.DETAILS}`,
  },
  refillPage: {
    GO_TO_YOUR_MEDICATIONS_LIST_ACTION_LINK: `Go To Your Medications List Action Link - ${
      pageType.REFILL
    }`,
    GO_TO_YOUR_MEDICATIONS_LIST_ACTION_LINK_RENEW: `Go To Your Medications List Action Link - ${
      pageType.REFILL
    } - Renew Section`,
    LEARN_TO_RENEW_PRESCRIPTIONS_ACTION_LINK: `Learn How To Renew Prescriptions Action Link - ${
      pageType.REFILL
    } - Renew Section`,
    SELECT_ALL_CHECKBOXES: `Select All Checkbox - ${pageType.REFILL}`,
    SELECT_SINGLE_MEDICATION_CHECKBOX: `Select Single Medication Checkbox - ${
      pageType.REFILL
    }`,
    REQUEST_REFILLS_BUTTON: `Request Refills Button - ${pageType.REFILL}`,
  },
  shared: {
    DOWNLOAD_A_PDF_OF_THIS: 'Download A PDF Of This ',
    DOWNLOAD_A_TEXT_FILE_OF_THIS: 'Download A Text File Of This ',
    PHARMACY_PHONE_NUMBER_LINK: 'Pharmacy Phone Number Link - ',
    PRINT_OR_DOWNLOAD_BUTTON: 'Print Or Download Button - ',
    PRINT_THIS: 'Print This ',
    WHAT_TO_KNOW_BEFORE_YOU_PRINT_OR_DOWNLOAD_BUTTON:
      'What To Know Before You Print Or Download Button - ',
  },
};