CCTC-team / redcap_cypress

REDCap Cypress Test Framework
MIT License
0 stars 0 forks source link

24. e-Consent #78

Open MintooXavier opened 3 months ago

MintooXavier commented 3 months ago

Brief description: This is a framework used to take consent of a patient electronically.

User spec: https://github.com/CCTC-team/redcap_cypress/blob/redcap_val/user_requirement_specification/core/24_e_consent_framework.spec

Feature link: https://github.com/CCTC-team/redcap_rsvc/blob/redcap_val/Feature%20Tests/C/e-Consent%20framework_24/C.3.24.100%20-%20eConsent%20enable.feature https://github.com/CCTC-team/redcap_rsvc/blob/redcap_val/Feature%20Tests/C/e-Consent%20framework_24/C.3.24.200%20-%20eConsent%20footer.feature https://github.com/CCTC-team/redcap_rsvc/blob/redcap_val/Feature%20Tests/C/e-Consent%20framework_24/C.3.24.300%20-%20eConsent%20status.feature https://github.com/CCTC-team/redcap_rsvc/blob/redcap_val/Feature%20Tests/C/e-Consent%20framework_24/C.3.24.400%20-%20REDUNDANT.feature https://github.com/CCTC-team/redcap_rsvc/blob/redcap_val/Feature%20Tests/C/e-Consent%20framework_24/C.3.24.500%20-%20REDUNDANT.feature https://github.com/CCTC-team/redcap_rsvc/blob/redcap_val/Feature%20Tests/C/e-Consent%20framework_24/C.3.24.600%20-%20eConsent%20edit.feature https://github.com/CCTC-team/redcap_rsvc/blob/redcap_val/Feature%20Tests/C/e-Consent%20framework_24/C.3.24.700%20-%20REDUNDANT.feature https://github.com/CCTC-team/redcap_rsvc/blob/redcap_val/Feature%20Tests/C/e-Consent%20framework_24/C.3.24.800%20-%20eConsent%20repeat.feature

Pre review:

Post review:

MintooXavier commented 2 months ago

Scripts Pre-reviewed:

  1. C.3.24.100 - eConsent enable
  2. C.3.24.200 - eConsent footer
  3. C.3.24.300 - eConsent status
  4. C.3.24.400 - REDUNDANT
  5. C.3.24.500 - REDUNDANT
  6. C.3.24.600 - eConsent edit
  7. C.3.24.700 - REDUNDANT
  8. C.3.24.800 - eConsent repeat
MintooXavier commented 2 months ago
  1. C.3.24.100 - eConsent enable • When selecting ‘Auto-Archiver enabled’, Cypress is selecting 'Auto-Archiver + e-Consent Framework' for some reason. • Steps are not correct when 'Auto-Archiver enabled' is selected. This does not match with the original file in Theresa Baker's repository (which is correct) • Added a new step definition to select the options for e-consent Framework. • Modified the script to incorporate the actual steps when 'Auto-Archiver enabled' is selected • Script modified and pushed to MX_v13.1.37 and MX_v13.8.1

  2. C.3.24.200 - eConsent footer • When selecting ‘Auto-Archiver enabled’, Cypress is selecting 'Auto-Archiver + e-Consent Framework' for some reason. • Steps are not correct when 'Auto-Archiver enabled' is selected. This does not match with the original file in Theresa Baker's repository (which is correct) • Modified the e-consent Framework enabling step definition • Modified the script to incorporate the actual steps when 'Auto-Archiver enabled' is selected • Added a new step definition to verify downloaded PDF does not contain the given text. (Please check - in mintoo.js). Added this to the script as well • Script modified and pushed to MX_v13.1.37 and MX_v13.8.1

  3. C.3.24.300 - eConsent status • Modified the e-consent Framework enabling step definition • Script modified and pushed to MX_v13.1.37 and MX_v13.8.1

  4. C.3.24.600 - eConsent edit • Modified the e-consent Framework enabling step definition • #The PDF stays the same as before; eConsent changes only apply when you fill out via survey – Should we test this but how? • Script modified and pushed to MX_v13.1.37 and MX_v13.8.1

  5. C.3.24.800 - eConsent repeat • Modified the e-consent Framework enabling step definition • Modified the script to make Event Three a Repeated Event and modified steps to verify e-consent for repeating events • Script modified and pushed to MX_v13.1.37 and MX_v13.8.1

Added 2 new step definitions in mintoo.js. Pushed to branch (MX_v13.1.37, MX_v13.8.1 and redcap_val) in redcap_cypress