diff --git a/apps/trading/client-pages/settings/settings-button.tsx b/apps/trading/client-pages/settings/settings-button.tsx
index 4f17c2601..e925576a7 100644
--- a/apps/trading/client-pages/settings/settings-button.tsx
+++ b/apps/trading/client-pages/settings/settings-button.tsx
@@ -1,7 +1,7 @@
import { Icon, NavigationLink } from '@vegaprotocol/ui-toolkit';
import { t } from '@vegaprotocol/i18n';
import { Links, Routes } from '../../pages/client-router';
-import { COG } from '@blueprintjs/icons/src/generated/iconNames';
+import { IconNames } from '@blueprintjs/icons';
export const SettingsButton = ({ withMobile }: { withMobile?: boolean }) => {
return (
@@ -9,7 +9,7 @@ export const SettingsButton = ({ withMobile }: { withMobile?: boolean }) => {
{withMobile ? (
t('Settings')
) : (
-
+
)}
);
diff --git a/apps/trading/components/navbar/navbar.spec.tsx b/apps/trading/components/navbar/navbar.spec.tsx
new file mode 100644
index 000000000..7c74a5bd8
--- /dev/null
+++ b/apps/trading/components/navbar/navbar.spec.tsx
@@ -0,0 +1,42 @@
+import { render, screen } from '@testing-library/react';
+import { MemoryRouter } from 'react-router-dom';
+import { MockedProvider } from '@apollo/client/testing';
+import type { VegaWalletContextShape } from '@vegaprotocol/wallet';
+import { VegaWalletContext } from '@vegaprotocol/wallet';
+import { Navbar } from './navbar';
+
+describe('Navbar', () => {
+ const pubKey = 'pubKey';
+ it('should be properly rendered', () => {
+ render(
+
+
+
+
+
+
+
+ );
+ expect(screen.getByTestId('Markets')).toBeInTheDocument();
+ expect(screen.getByTestId('Trading')).toBeInTheDocument();
+ expect(screen.getByTestId('Portfolio')).toBeInTheDocument();
+ });
+
+ it('Markets page route should not match empty market page', () => {
+ render(
+
+
+
+
+
+
+
+ );
+ expect(screen.getByTestId('Markets')).toHaveClass('active');
+ expect(screen.getByTestId('Trading')).not.toHaveClass('active');
+ });
+});
diff --git a/apps/trading/components/navbar/navbar.tsx b/apps/trading/components/navbar/navbar.tsx
index c2e5e7464..7853c3c94 100644
--- a/apps/trading/components/navbar/navbar.tsx
+++ b/apps/trading/components/navbar/navbar.tsx
@@ -75,7 +75,7 @@ export const Navbar = ({
-
+
{t('Trading')}