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

[Task] Add a UI test for the React view /users to the Severless Artillery actions #192

Closed lbrown51 closed 3 years ago

lbrown51 commented 3 years ago

Is your feature request related to a problem? Please describe. Basically as above, there is no SA test for the /users portion of the React site. We would like for performance tests (via serverless artillery) to be used on the /users view of the React site for the project.

Describe alternatives you've considered We could manually test it, but that would make load testing very difficult.

toddysm commented 3 years ago
  1. Create a separate action for the UI test only. Name it "UI Test /users". Action file name should be ui-tests-users.yml
  2. In the action load the UI in the testing framework https://nscstrdevusw2thucommon.z5.web.core.windows.net/users
  3. Take a screenshot
  4. Save it to azure Storage container https://nscstrdevusw2thucommon.blob.core.windows.net/screenshots

The UI actions should be triggered last (after the other actions). /users /users/{user_id} /users/{user_id}/tasks /users/{user_id}/tasks/{task_id}

lbrown51 commented 3 years ago

Resolves #192

lbrown51 commented 3 years ago
DATE ACTIVITY TIME
2/23 Researching + reading relevant code in the codebase 45 minutes
2/24 Researching + looking at testing frameworks + slsart 45 minutes
2/25 Realized I didn't need slsart at all 15 minutes
2/25 Realized I didn't need slsart at all 15 minutes
2/27 Started programming the yaml file 45 minutes
2/27 Started programming the test file 45 minutes
2/27 Debugging connection string issues 60 minutes
3/1 Implemented a GitHub action to upload folder contents 45 minutes
3/1 Rewrote to be plain azure cli script to upload 45 minutes
3/1 Completed the test file 30 minutes
3/3 Wrote this PR 40 minutes