-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[#12588] Added unit tests for ExtensionConfirmModalComponent - average coverage 98% #12622
[#12588] Added unit tests for ExtensionConfirmModalComponent - average coverage 98% #12622
Conversation
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.
some changes, and also it appears that onConfirm
, setInstructorRowData
, setInstructorColumnData
, setInstructorTableData
is not being tested (while these are tested through snapshots, it would be good to test via code as well)
src/web/app/components/extension-confirm-modal/extension-confirm-modal.component.spec.ts
Show resolved
Hide resolved
src/web/app/components/extension-confirm-modal/extension-confirm-modal.component.spec.ts
Outdated
Show resolved
Hide resolved
…rm-modal.component.spec.ts Thank you for fixing this! Co-authored-by: Cedric Ong <[email protected]>
what happened? I just accpet your change of a single string? I think we didn't do anything wrong? |
no worries, our unstable E2E tests fail sometimes when it should not, i'll be re-running it and it should pass! |
I added more tests according to your advice, and also added tests for setStudentRowData , setStudentColumnData, setStudentTableData! By the way this is my first issue, I did learned from this experience, thank you for your review! |
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 to hear that the experience was fruitful for you!
just a few more changes!
src/web/app/components/extension-confirm-modal/extension-confirm-modal.component.spec.ts
Outdated
Show resolved
Hide resolved
src/web/app/components/extension-confirm-modal/extension-confirm-modal.component.spec.ts
Outdated
Show resolved
Hide resolved
src/web/app/components/extension-confirm-modal/extension-confirm-modal.component.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.
lgtm! thank you for your contribution to TEAMMATES
I really appretiate your patience for my code and comments!!! |
Folks, This PR seems to be stalling (no activities for the past 7 days). 🐌 😢 |
1 similar comment
Folks, This PR seems to be stalling (no activities for the past 7 days). 🐌 😢 |
Folks, This PR seems to be stalling (no activities for the past 11 days). 🐌 😢 |
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
… - average coverage 98% (TEAMMATES#12622) * All coverages are 100%, except branch, 94% * lint format passed * Update src/web/app/components/extension-confirm-modal/extension-confirm-modal.component.spec.ts Thank you for fixing this! Co-authored-by: Cedric Ong <[email protected]> * Added tests for every advice (and more * StudentRow and InstructorRow optimised * changes according to lint --------- Co-authored-by: Cedric Ong <[email protected]> Co-authored-by: Wei Qing <[email protected]>
Part of #12588
Outline of Solution
Added unit tests for ExtensionConfirmModalComponent, missed three branches, average coverage 98 - 99%