-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Development
: Refactor isAtLeast occurrences in client and unify spy testing
#5507
Development
: Refactor isAtLeast occurrences in client and unify spy testing
#5507
Conversation
Development
: Refactor isAtLeast occurrences in client
…ences # Conflicts: # src/main/webapp/app/exercises/shared/dashboards/tutor/exercise-assessment-dashboard.component.html
...p/app/course/dashboards/assessment-dashboard/assessment-dashboard-information.component.html
Outdated
Show resolved
Hide resolved
src/main/webapp/app/assessment/assessment-header/assessment-header.component.html
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally, found no issues.
…ences # Conflicts: # src/main/webapp/app/exam/manage/exam-status.component.ts # src/test/javascript/spec/component/exam/manage/student-exams/exam-status.component.spec.ts # src/test/javascript/spec/component/hestia/git-diff-report/full-git-diff-entry.component.spec.ts # src/test/javascript/spec/component/hestia/git-diff-report/full-git-diff-report.component.spec.ts # src/test/javascript/spec/component/programming-exercise/programming-exercise-detail.component.spec.ts
dac436d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks good. I did not find any other vialations in the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reapprove code. New changes consistent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-approve after merge
Checklist
General
Client
Motivation and Context
#3742 refactored the client code such that exercise/course objects store the current access rights in the client. There were not used in some components.
Additionally GitHub was complaining about the checking of some spies in the client. These are fixed and unified in the code as well. (Point 11: https://docs.artemis.ase.in.tum.de/dev/guidelines/client-tests/)
Description
This PR refactores the last components to also use the exercise/course objects for the access rights.
The occurrences using the Metis service (e.g. post-header.component) is intentionally left out.
For checking the spies, we use .toHaveBeenCalledOnce()/.toHaveBeenCalledTimes(...) instead of .toHaveBeenCalled() and .not.toHaveBeenCalled() instead of .toHaveBeenCalled(0). This is unified in this PR
Review Progress
Code Review