Skip to content
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

Expanded unit test coverage for key UI components #395

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

saimedhi
Copy link
Collaborator

@saimedhi saimedhi commented Sep 20, 2024

Description

  • Added test cases for the search bar functionality in the Workflow List page and New Workflow page.
  • Included additional test cases to improve the test coverage for the Workflow Details page.

Issues Resolved

related to #95
closes #98
closes #100

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link
Member

@ohltyler ohltyler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one minor comment. Also, let's not close #95, that is supposed to cover full UT coverage for the plugin, and I'd estimate we are maybe 10/15% there. Since so far, this is just basic checks on the high-level base pages. But I think it's a good spot for now, since UX is still uncertain for the lower-level components for now. Could you help update / add to that meta issue with sub-issues to cover the rest of the UT coverage? Such as:

  • components under tools/
  • components under workflow_inputs/ (the largest remaining effort)
  • components under workspace/
  • all of the util fns (particularly the ones under public/utils/) (probably the second-largest remaining effort)
  • codecov test coverage integration like we have in the AD plugin

public/pages/workflow_detail/workflow_detail.test.tsx Outdated Show resolved Hide resolved
@saimedhi saimedhi merged commit 95049f7 into opensearch-project:main Sep 20, 2024
6 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 20, 2024
* Expanded test coverage for key UI components

Signed-off-by: saimedhi <[email protected]>

* Expanded test coverage for key UI components

Signed-off-by: saimedhi <[email protected]>

---------

Signed-off-by: saimedhi <[email protected]>
(cherry picked from commit 95049f7)
ohltyler pushed a commit that referenced this pull request Sep 20, 2024
* Expanded test coverage for key UI components

Signed-off-by: saimedhi <[email protected]>

* Expanded test coverage for key UI components

Signed-off-by: saimedhi <[email protected]>

---------

Signed-off-by: saimedhi <[email protected]>
(cherry picked from commit 95049f7)

Co-authored-by: Sai Medhini Reddy Maryada <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Workflow editor] Add UT coverage [Workflow editor] Add UT coverage
2 participants