-
Notifications
You must be signed in to change notification settings - Fork 14.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
chore: Rename SET_ACTIVE_TABS action, add a new action #26147
Conversation
|
||
it('SET_ACTIVE_TABS', () => { | ||
expect( | ||
dashboardStateReducer({ activeTabs: [] }, setActiveTabs(['tab1'])), |
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.
Should this be setActiveTab
instead of setActiveTabs
?
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.
No, it's a new test for the new action
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #26147 +/- ##
=======================================
Coverage 69.09% 69.09%
=======================================
Files 1941 1941
Lines 75891 75894 +3
Branches 8450 8450
=======================================
+ Hits 52436 52439 +3
Misses 21280 21280
Partials 2175 2175
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
(cherry picked from commit d00c17d)
(cherry picked from commit d00c17d)
SUMMARY
Previously
SET_ACTIVE_TABS
were in fact changing only 1 active tab in an array of tabs. I renamed it toSET_ACTIVE_TAB
and created a newSET_ACTIVE_TABS
action which allows us to programatically set active tabs state in the dashboard.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
No functional changes, added unit test for the new action.
ADDITIONAL INFORMATION