Skip to content

Commit b16392a

Browse files
committed
#RI-5572 - Explore Redis button opens not only Explore tab
1 parent 8545f6d commit b16392a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

redisinsight/ui/src/pages/home/components/capability-promotion/CapabilityPromotion.spec.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ describe('CapabilityPromotion', () => {
9696
fireEvent.click(screen.getByTestId('explore-redis-btn'))
9797

9898
const expectedActions = [
99+
changeSelectedTab(InsightsPanelTabs.Explore),
99100
toggleInsightsPanel()
100101
]
101102

redisinsight/ui/src/pages/home/components/capability-promotion/CapabilityPromotion.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useDispatch, useSelector } from 'react-redux'
55
import { useHistory } from 'react-router-dom'
66
import { filter } from 'lodash'
77

8-
import { insightsPanelSelector, openTutorialByPath, toggleInsightsPanel } from 'uiSrc/slices/panels/insights'
8+
import { changeSelectedTab, insightsPanelSelector, openTutorialByPath, toggleInsightsPanel } from 'uiSrc/slices/panels/insights'
99
import { sendEventTelemetry, TELEMETRY_EMPTY_VALUE, TelemetryEvent } from 'uiSrc/telemetry'
1010
import { guideLinksSelector } from 'uiSrc/slices/content/guide-links'
1111
import GUIDE_ICONS from 'uiSrc/components/explore-guides/icons'
@@ -53,6 +53,7 @@ const CapabilityPromotion = (props: Props) => {
5353

5454
const onClickExplore = () => {
5555
sendTelemetry()
56+
dispatch(changeSelectedTab(InsightsPanelTabs.Explore))
5657
dispatch(toggleInsightsPanel())
5758
}
5859

0 commit comments

Comments
 (0)