From 3476cc5c2cdad0c7d3c7430e04b75c282a68fe1e Mon Sep 17 00:00:00 2001 From: Zesky665 Date: Wed, 14 Jun 2023 11:51:40 +0200 Subject: [PATCH 01/15] update frontend app doc --- frontend/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/README.md b/frontend/README.md index b9c5255..4a962c5 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -20,5 +20,10 @@ yarn build yarn lint ``` +### Run Cypress Tests +``` +yarn run cypress open +``` + ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). From de3b52277213f123801f6ed0ee16fb76a0972474 Mon Sep 17 00:00:00 2001 From: Zesky665 Date: Wed, 14 Jun 2023 12:53:32 +0200 Subject: [PATCH 02/15] Add manual instructions. --- frontend/cypress/README.md | 56 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 frontend/cypress/README.md diff --git a/frontend/cypress/README.md b/frontend/cypress/README.md new file mode 100644 index 0000000..1fd7156 --- /dev/null +++ b/frontend/cypress/README.md @@ -0,0 +1,56 @@ +# Tests and Verifications + +## Automatic Tests + +1. Does the landing pag load? + +2. On hitting show samples, does processing complete in an expected amount of time? Does it show all the results expected? + +3. After recieving results, can you click an image and does the page show the expected data/metadata/etc? + +4. After recieving results, does the summary page contain the correct data? + + +## Manual Tests + +1. Does the landing pag load? + +When you open the landing page. Either at https://www.trashai.org/ or http://localhost:5150 + +The page should loads in a reasonable timeframe. (<2 seconds) + +*You can use the `Network` tab in the dev tools for more fine grained analysis.* + +2. On hitting show samples, does processing complete in an expected amount of time? Does it show all the results expected? + +When the show samples button is pressed. (as depicted below) +![Instructions](misc/Show_Samples_Button.png "Show Title Button") + +Then the app will start processing images. (as depcited below) +![Processing](misc/Processing_Samples.png "Processing Samples Progress Bar") + +*The processing should be relatively quick, it it takes more than a minute, something is definetly wrong.* + +When the processing is done, the results will be available in the summary page. + +![Summary ](misc/Summary_Of_Samples.png "Summary of Sample Results") + +It should be populated like above. + +3. After recieving results, can you click an image and does the page show the expected data/metadata/etc? + +When one of the links in the summary table is clicked. + +![Open images](misc/Open_images.png "Open Images") + +Then the images will be displayed along with the segmentation and classes detected. + +![List Images](misc/Images_with_Segmentation.png "List Images") + +When the METADATA tab is opened, the relevant metadata for the image is displayed. + +![View Metadata](misc/Viewing_Metadata.png "View Metadata") + +4. After recieving results, does the summary page contain the correct data? + +*The summary page shows the results of processing a random sample of images, as long as it's not empty it can be considered as correct.* \ No newline at end of file From b186c5b773b109bd29eecbbf6dd97a436a39b13e Mon Sep 17 00:00:00 2001 From: Zesky665 Date: Wed, 14 Jun 2023 13:55:48 +0200 Subject: [PATCH 03/15] Added test-ids --- frontend/src/components/upload_control.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/components/upload_control.vue b/frontend/src/components/upload_control.vue index 354b5f3..137edcc 100644 --- a/frontend/src/components/upload_control.vue +++ b/frontend/src/components/upload_control.vue @@ -15,6 +15,7 @@