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

Add unit tests for common sidebar functionality #10619

Merged
merged 45 commits into from
Aug 31, 2022

Conversation

tgolen
Copy link
Contributor

@tgolen tgolen commented Aug 28, 2022

Fixed Issues

This is part of the refactoring needed in this issue: #7948

Tests

The unit tests were based on the tests written in these PRs:
#6084
#5317

QA Steps

Same as in these PRs:
#6084
#5317

cc @luacmartins


if (this.props.inline) {
return (
<View style={[StyleUtils.getWidthAndHeightStyle(width, height), styles.bgTransparent, styles.overflowVisible]}>
<View
accessibilityHint={`${this.props.src.name} Icon`}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This small refactoring done in this file was to add this prop, which allowed the Icon to be targetted by the unit tests. The rest of the changes in this file are just some cleaning up.

@tgolen tgolen self-assigned this Aug 30, 2022
@tgolen tgolen changed the title Tgolen test sidebarlinks Add unit tests for common sidebar functionality Aug 30, 2022
@tgolen tgolen marked this pull request as ready for review August 30, 2022 13:15
@tgolen tgolen requested a review from a team as a code owner August 30, 2022 13:15
@melvin-bot melvin-bot bot requested review from danieldoglas and removed request for a team August 30, 2022 13:16
@luacmartins luacmartins self-requested a review August 30, 2022 16:33
Copy link
Contributor

@luacmartins luacmartins left a comment

Choose a reason for hiding this comment

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

Left a few small comments

src/pages/home/sidebar/SidebarLinks.js Outdated Show resolved Hide resolved
tests/unit/LHNOrderTest.js Outdated Show resolved Hide resolved
tests/unit/LHNOrderTest.js Show resolved Hide resolved
@tgolen tgolen requested a review from luacmartins August 31, 2022 06:42
Copy link
Contributor

@danieldoglas danieldoglas left a comment

Choose a reason for hiding this comment

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

LGTM

@danieldoglas danieldoglas merged commit 6cef6fb into main Aug 31, 2022
@danieldoglas danieldoglas deleted the tgolen-test-sidebarlinks branch August 31, 2022 08:16
@OSBotify
Copy link
Contributor

🚀 Deployed to staging by @danieldoglas in version: 1.1.95-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

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.

4 participants