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

feat: Adds test id to side navigation #2972

Conversation

orangevolon
Copy link
Contributor

@orangevolon orangevolon commented Nov 1, 2024

Description

Adds testId prop to option inside the side navigation component.
The change will be reflected in select, multi-select, autosuggest and property filter components.

Related links, issue #, if available:

Collective PR: #2985
Project: Improving test utils API

How has this been tested?

Tests added to cover the change.

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link

codecov bot commented Nov 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.25%. Comparing base (ba58915) to head (73bd00a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2972   +/-   ##
=======================================
  Coverage   96.25%   96.25%           
=======================================
  Files         768      768           
  Lines       21750    21754    +4     
  Branches     7434     7378   -56     
=======================================
+ Hits        20935    20939    +4     
+ Misses        807      762   -45     
- Partials        8       53   +45     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@orangevolon orangevolon changed the base branch from main to feat/test-utils-project-m2 November 4, 2024 10:36
@orangevolon orangevolon changed the title Alamiami/adds test id to side navigation feat: adds test id to side navigation Nov 5, 2024
@orangevolon orangevolon changed the title feat: adds test id to side navigation feat: Adds test id to side navigation Nov 11, 2024
@orangevolon orangevolon force-pushed the alamiami/adds-test-id-to-side-navigation branch from 73bd00a to b0990f5 Compare November 11, 2024 13:22
@@ -22,18 +22,26 @@ it('Side navigation with all possible items', async () => {
type: 'link',
text: 'Page 1',
href: '#/page1',
// this test id deliberately contains double quotes
// to test the selector escaping
testId: '"link-page-1"',
Copy link
Contributor Author

@orangevolon orangevolon Nov 11, 2024

Choose a reason for hiding this comment

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

I'd liked to have a separate test case for this like this PR, but this particular component doesn't have any tests dedicated for test utils and to follow the existing structure I opted for this.

@orangevolon orangevolon marked this pull request as ready for review November 11, 2024 13:34
@orangevolon orangevolon requested a review from a team as a code owner November 11, 2024 13:34
@orangevolon orangevolon requested review from Al-Dani and removed request for a team November 11, 2024 13:34
@pan-kot pan-kot self-requested a review November 15, 2024 10:37
@orangevolon orangevolon requested review from pan-kot and removed request for Al-Dani and pan-kot November 15, 2024 10:37
@orangevolon orangevolon merged commit 860d4fe into feat/test-utils-project-m2 Nov 15, 2024
1 check passed
@orangevolon orangevolon deleted the alamiami/adds-test-id-to-side-navigation branch November 15, 2024 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants