Skip to content

[Cypress] Change population statistics test structure to mimic that o… #1635

[Cypress] Change population statistics test structure to mimic that o…

[Cypress] Change population statistics test structure to mimic that o… #1635

Triggered via push February 25, 2025 12:20
Status Failure
Total duration 8m 51s
Artifacts 3

staging.yaml

on: push
test  /  Check if new migrations have been added
5s
test / Check if new migrations have been added
test  /  Lint backend and frontend
1m 29s
test / Lint backend and frontend
test  /  Build anon sis-db and push to toska hub if new migrations have been added
0s
test / Build anon sis-db and push to toska hub if new migrations have been added
test  /  Build anon kone-db and push to toska hub if new migrations have been added
0s
test / Build anon kone-db and push to toska hub if new migrations have been added
test  /  Build anon user-db and push to toska hub if new migrations have been added
0s
test / Build anon user-db and push to toska hub if new migrations have been added
Matrix: test / test_end_to_end
test  /  Check services run correctly
2m 6s
test / Check services run correctly
Build and release frontend
0s
Build and release frontend
Build and release backend
0s
Build and release backend
Report deployment success to the "oodikone_notifications" channel
0s
Report deployment success to the "oodikone_notifications" channel
Report deployment failure to the "oodikone_notifications" channel
6s
Report deployment failure to the "oodikone_notifications" channel
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 10 warnings
test / Test teachers and users
Cypress tests: 1 failed
test / Test completed courses
Cypress tests: 1 failed
test / Lint backend and frontend: services/frontend/src/components/ColorizedCoursesTable/FacultiesTab/index.jsx#L39
React Hook useMemo has a missing dependency: 'selectedSemesters'. Either include it or remove the dependency array
test / Lint backend and frontend: services/frontend/src/components/ColorizedCoursesTable/FacultiesTab/index.jsx#L65
React Hook useMemo has a missing dependency: 'totalRow'. Either include it or remove the dependency array
test / Lint backend and frontend: services/frontend/src/components/ColorizedCoursesTable/index.jsx#L51
React Hook useEffect has a missing dependency: 'semesterFilter'. Either include it or remove the dependency array
test / Lint backend and frontend: services/frontend/src/components/ColorizedCoursesTable/selectorComponents.jsx#L76
React Hook useMemo has a missing dependency: 'getTextIn'. Either include it or remove the dependency array
test / Lint backend and frontend: services/frontend/src/components/CustomOpenUniPopulation/CustomOpenUniSearch.jsx#L37
React Hook useEffect has a missing dependency: 'searchList'. Either include it or remove the dependency array
test / Lint backend and frontend: services/frontend/src/components/CustomOpenUniPopulation/CustomOpenUniSearch.jsx#L44
React Hook useEffect has a missing dependency: 'searchList'. Either include it or remove the dependency array
test / Lint backend and frontend: services/frontend/src/components/CustomOpenUniPopulation/CustomOpenUniSearch.jsx#L51
React Hook useEffect has a missing dependency: 'searchList'. Either include it or remove the dependency array
test / Lint backend and frontend: services/frontend/src/components/CustomOpenUniPopulation/CustomOpenUniSearch.jsx#L84
React Hook useEffect has missing dependencies: 'parseQueryFromUrl' and 'setValues'. Either include them or remove the dependency array. If 'setValues' changes too often, find the parent component that defines it and wrap that definition in useCallback
test / Lint backend and frontend: services/frontend/src/components/CustomOpenUniPopulation/OpenUniPopulationResults/index.jsx#L232
React Hook useEffect has missing dependencies: 'getTextIn', 'isError', and 'isFetchingOrLoading'. Either include them or remove the dependency array
test / Lint backend and frontend: services/frontend/src/components/CustomPopulation/index.jsx#L44
The 'allSemesters' logical expression could make the dependencies of useMemo Hook (at line 84) change on every render. Move it inside the useMemo callback. Alternatively, wrap the initialization of 'allSemesters' in its own useMemo() Hook

Artifacts

Produced during runtime
Name Size
Cypress videos - Test completed courses
9.94 MB
Cypress videos - Test teachers and users
6.87 MB
backend-image
117 MB