UniversityOfSaskatchewanCMPT371 / term-project-2024-team-3

3 stars 2 forks source link

Qa/249 playwright smoke test #297

Closed redwing14e closed 6 months ago

redwing14e commented 6 months ago

initial version of #249

Description

added a starter playwright smoke test and integrated it into the workflows (will need to update after the code freeze for better coverage and fix ui changes) fixed some issues that playwright was having with cookies

github-actions[bot] commented 6 months ago

Backend Code Coverage Report

Overall Project 19.32% :x:

There is no coverage information present for the Files changed

github-actions[bot] commented 6 months ago

Frontend Code Coverage Report

St.:grey_question:
Category Percentage Covered / Total
🟑 Statements
71.21% (+71.21% πŸ”Ό)
512/719
πŸ”΄ Branches
55.79% (+55.79% πŸ”Ό)
130/233
🟑 Functions
69.94% (+69.94% πŸ”Ό)
121/173
🟑 Lines
71.87% (+71.87% πŸ”Ό)
511/711
Show new covered files 🐣
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :-: | :- | :- | :- | :- | :- | | 🟒 |
`...` / baseapi.ts
| 100% | 75% | 100% | 100% | | 🟒 | shared/api/Api.ts | 100% | 50% | 100% | 100% | | 🟒 |
`...` / useLogin.ts
| 100% | 100% | 100% | 100% | | 🟑 |
`...` / LoginPage.tsx
| 74.42% | 70% | 58.33% | 74.42% | | 🟒 |
`...` / useSignup.ts
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / SignUpPage.tsx
| 80.3% | 69.23% | 68.75% | 80.3% | | 🟑 |
`...` / index.ts
| 78.95% | 58.33% | 100% | 78.95% | | 🟒 |
`...` / useUpload.ts
| 100% | 100% | 100% | 100% | | πŸ”΄ |
`...` / index.tsx
| 0% | 100% | 0% | 0% | | πŸ”΄ |
`...` / FileDropzone.tsx
| 1.72% | 0% | 0% | 1.85% | | 🟒 |
`...` / PrivacyPolicy.tsx
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / useIsUserLoggedIn.ts
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / useAuth.tsx
| 90% | 50% | 100% | 88.89% | | 🟒 |
`...` / HelpPopup.tsx
| 85.71% | 56.25% | 100% | 85.71% | | 🟒 |
`...` / ProgressBar.tsx
| 93.55% | 89.47% | 100% | 93.55% | | 🟒 |
`...` / useGetUploadedFiles.ts
| 90.91% | 100% | 83.33% | 90.91% | | 🟒 |
`...` / useProcessFile.ts
| 100% | 50% | 100% | 100% | | 🟑 |
`...` / ErrorSnackbar.tsx
| 73.33% | 66.67% | 50% | 73.33% | | 🟒 |
`...` / UploadedFiles.tsx
| 91.11% | 66.67% | 100% | 91.11% | | 🟒 |
`...` / useGetProcessedDataList.ts
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / usePredictFile.ts
| 100% | 100% | 100% | 100% | | πŸ”΄ |
`...` / useDownload.ts
| 45.45% | 0% | 75% | 48.39% | | πŸ”΄ |
`...` / ProcessedDataPage.tsx
| 49.33% | 29.73% | 66.67% | 49.33% | | πŸ”΄ |
`...` / HomePage.tsx
| 57.14% | 100% | 33.33% | 57.14% | | 🟒 |
`...` / useGetPredictedDataList.ts
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / ProtectedRoute.tsx
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / useLogout.ts
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / LoadingSpinner.css
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / LoadingSpinner.tsx
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / Logout.tsx
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / Navbar.tsx
| 100% | 75% | 100% | 100% | | 🟒 |
`...` / useDeleteFile.ts
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / FileDropzoneControls.tsx
| 100% | 100% | 100% | 100% | | πŸ”΄ |
`...` / PredictedDataPage.tsx
| 50% | 35.71% | 16.67% | 51.72% | | πŸ”΄ |
`...` / FileUploadPage.tsx
| 45.45% | 25% | 40% | 45.45% | | πŸ”΄ |
`...` / GoogleLogin.tsx
| 0% | 0% | 0% | 0% |

Test suite run success

102 tests passing in 32 suites.

Report generated by πŸ§ͺjest coverage report action from f1b35b36e6d56aeb1b50695ed6ed01bea512a2cc