North-Seattle-College / ad440-winter2021-thursday-repo

NSC AD 440 Winter 2021 Thursday cohort practicum repo
Apache License 2.0
2 stars 27 forks source link

Web UI test for users/{user-id} and upload results to Azure storage. #226

Closed natni closed 3 years ago

natni commented 3 years ago

This PR Resolves #199

Holds a GitHub action script that stores a screenshot of the UI test for users/{user_id}

*How it works

  1. Installs all the necessary npm packages including Puppeteer (high-level API to control Chrome or Chromium)
  2. Opens a web browser page
  3. Navigates to https://nscstrdevusw2thucommon.z5.web.core.windows.net/users/1
  4. Takes a screenshot and saves it to the provided path: test/results/ui-test-results/users-id/ and name it ui-user-user-id.png
  5. Takes that screenshot and stores it in nscstrdevusw2thucommon Azure Storage Container under the screenshots folder
DATE ACTIVITY TIME
02/20 Research on Puppeteer 3 hours
02/24 Implemented a script for testing 2 hours
02/26 GitHub action for storing test results 4 hours
03/02 Final brush up and glitches 3 hours