-
Notifications
You must be signed in to change notification settings - Fork 14
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
#3222 - Provide Ministry the ability to edit Basic BCeID Profile Info (e2e tests) #3794
#3222 - Provide Ministry the ability to edit Basic BCeID Profile Info (e2e tests) #3794
Conversation
...controllers/student/_tests_/e2e/student.aest.controller.updateProfileInformation.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...controllers/student/_tests_/e2e/student.aest.controller.updateProfileInformation.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...controllers/student/_tests_/e2e/student.aest.controller.updateProfileInformation.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...controllers/student/_tests_/e2e/student.aest.controller.updateProfileInformation.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...controllers/student/_tests_/e2e/student.aest.controller.updateProfileInformation.e2e-spec.ts
Show resolved
Hide resolved
...controllers/student/_tests_/e2e/student.aest.controller.updateProfileInformation.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...controllers/student/_tests_/e2e/student.aest.controller.updateProfileInformation.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...controllers/student/_tests_/e2e/student.aest.controller.updateProfileInformation.e2e-spec.ts
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.
Great work, please take a look at the comments.
...controllers/student/_tests_/e2e/student.aest.controller.updateProfileInformation.e2e-spec.ts
Show resolved
Hide resolved
...controllers/student/_tests_/e2e/student.aest.controller.updateProfileInformation.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...controllers/student/_tests_/e2e/student.aest.controller.updateProfileInformation.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...controllers/student/_tests_/e2e/student.aest.controller.updateProfileInformation.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...controllers/student/_tests_/e2e/student.aest.controller.updateProfileInformation.e2e-spec.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/route-controllers/student/models/student.dto.ts
Outdated
Show resolved
Hide resolved
...controllers/student/_tests_/e2e/student.aest.controller.updateProfileInformation.e2e-spec.ts
Show resolved
Hide resolved
...controllers/student/_tests_/e2e/student.aest.controller.updateProfileInformation.e2e-spec.ts
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
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.
LGTM. Nice work @sh16011993
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.
Thanks for making the changes, looks good 👍
As a part of this PR, the following e2e tests were written:
StudentAESTController(e2e)-updateProfileInformation
√ Should allow the student profile update when the student is a Basic BCeID user. (5472 ms)
√ Should throw an HTTP Unprocessable Entity (422) error when the student is not a Basic BCeID user. (2619 ms)
√ Should throw an HTTP Forbidden (403) error when the ministry user performing the profile update does not have the associated role. (497 ms)
√ Should throw an HTTP Unprocessable Entity (422) error when the student is a Basic BCeID user but none of the user profile information that needs to be updated has changed. (3076 ms)
√ Should throw an HTTP Not Found (404) error when the student does not exist. (514 ms)
√ Should throw an HTTP Bad Request error when some mandatory profile update information is missing from the payload. (7 ms)
√ Should allow the student profile update when the student is a Basic BCeID user and the givenNames is not provided. (4945 ms)
Screenshot of the passed e2e tests: