diff --git a/web/app/components/plugins/marketplace/__tests__/plugin-type-switch.spec.tsx b/web/app/components/plugins/marketplace/__tests__/plugin-type-switch.spec.tsx
index 8f396cfc3a0..32a44deb225 100644
--- a/web/app/components/plugins/marketplace/__tests__/plugin-type-switch.spec.tsx
+++ b/web/app/components/plugins/marketplace/__tests__/plugin-type-switch.spec.tsx
@@ -5,6 +5,7 @@ import { Provider as JotaiProvider } from 'jotai'
import { describe, expect, it, vi } from 'vitest'
import { createNuqsTestWrapper } from '@/test/nuqs-testing'
import PluginTypeSwitch from '../plugin-type-switch'
+import styles from '../plugin-type-switch.module.css'
vi.mock('#i18n', async () => {
const { withSelectorKey } = await import('@/test/i18n-mock')
@@ -54,10 +55,13 @@ describe('PluginTypeSwitch', () => {
const categoryGroup = screen.getByRole('group', { name: 'marketplace.allPlugins' })
expect(categoryGroup).toHaveClass('w-full', 'justify-start', 'gap-1')
- expect(screen.getByRole('button', { name: 'category.all' })).toHaveAttribute(
- 'aria-pressed',
- 'true',
- )
+ const activeCategory = screen.getByRole('button', { name: 'category.all' })
+ const inactiveCategory = screen.getByRole('button', { name: 'category.models' })
+
+ expect(activeCategory).toHaveAttribute('aria-pressed', 'true')
+ expect(activeCategory).toHaveClass(styles.homeItem, styles.homeItemActive)
+ expect(inactiveCategory).toHaveClass(styles.homeItem)
+ expect(inactiveCategory).not.toHaveClass(styles.homeItemActive)
expect(screen.getByRole('button', { name: 'categorySingle.datasource' })).toBeInTheDocument()
expect(screen.getByRole('button', { name: 'categorySingle.agent' })).toBeInTheDocument()
diff --git a/web/app/components/plugins/marketplace/home/__tests__/home-catalog-navigation.spec.tsx b/web/app/components/plugins/marketplace/home/__tests__/home-catalog-navigation.spec.tsx
index dc54407ca59..681a412bf98 100644
--- a/web/app/components/plugins/marketplace/home/__tests__/home-catalog-navigation.spec.tsx
+++ b/web/app/components/plugins/marketplace/home/__tests__/home-catalog-navigation.spec.tsx
@@ -32,9 +32,13 @@ describe('HomeCatalogNavigation', () => {
expect(navigationSection).toHaveClass('px-9')
expect(navigationSection.firstElementChild).toHaveClass('w-full')
expect(navigationSection.firstElementChild).not.toHaveClass('mx-auto', 'max-w-[1200px]')
- expect(screen.getByText('plugin.marketplace.home.plugins')).toHaveAttribute(
- 'aria-current',
- 'page',
+ const activeTab = screen.getByText('plugin.marketplace.home.plugins')
+ expect(activeTab).toHaveAttribute('aria-current', 'page')
+ expect(activeTab.querySelector('[aria-hidden="true"]')).toHaveClass(
+ 'absolute',
+ 'h-0.5',
+ 'w-[21px]',
+ 'bg-text-accent',
)
expect(
screen.getByRole('link', { name: /plugin\.marketplace\.home\.templates/ }),
diff --git a/web/app/components/plugins/marketplace/home/home-catalog-navigation.tsx b/web/app/components/plugins/marketplace/home/home-catalog-navigation.tsx
index f8883c6f9c4..a38a63e125d 100644
--- a/web/app/components/plugins/marketplace/home/home-catalog-navigation.tsx
+++ b/web/app/components/plugins/marketplace/home/home-catalog-navigation.tsx
@@ -25,9 +25,13 @@ function HomeCatalogNavigation({ isMarketplacePlatform }: HomeCatalogNavigationP
>
{t(($) => $['marketplace.home.plugins'], { ns: 'plugin' })}
+
{