-
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
#2003 - Basic e2e tests for the low coverage parts of the application #2012
Conversation
...ts_/e2e/designation-agreement.institutions.controller.submitDesignationAgreement.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...-program-offering/_tests_/education-program-offering.institutions.createOffering.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...-program-offering/_tests_/education-program-offering.institutions.createOffering.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...-program-offering/_tests_/education-program-offering.institutions.createOffering.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...m-offering/_tests_/education-program-offering.institutions.updateProgramOffering.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...m-offering/_tests_/education-program-offering.institutions.updateProgramOffering.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...ts_/e2e/designation-agreement.institutions.controller.submitDesignationAgreement.e2e-spec.ts
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.
Thank you @andrepestana-aot for making the minor update. 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.
LGTM, nice work @andrepestana-aot
...gram-offering/_tests_/e2e/education-program-offering.institutions.createOffering.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...ram/_tests_/e2e/education-program.institutions.controller.createEducationProgram.e2e-spec.ts
Outdated
Show resolved
Hide resolved
@@ -29,5 +30,6 @@ export function createFakeEducationProgramOffering( | |||
offering.courseLoad = 45; | |||
offering.hasOfferingWILComponent = "no"; | |||
offering.offeringDeclaration = true; | |||
offering.offeringStatus = OfferingStatus.CreationPending; |
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.
I feel that looking at the overall purpose of this factory, offering status must be defaulted to approved, with supporting data. IMO Creation pending offering is only useful for those tests which check the initial status of the offering and otherwise we always would need an approved offering.
Thanks for adding tests and improving the coverage. Please have a look at the comments. |
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 doing all the changes, looks good 👍
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.
Good work @andrepestana-aot 👍 Thanks for doing the changes. I think you missed one comment #2012 (comment), please take a look
Kudos, SonarCloud Quality Gate passed!
|
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 doing the changes. 👍
Created e2e basic tests for:
Changed designation agreement factory to create entities with "Approved" status because the tests that create them need that the institution does not have any previous designation agreements with "Pending" status.