diff --git a/locust/webui/src/App.test.tsx b/locust/webui/src/App.test.tsx index b0c1625023..be98f40083 100644 --- a/locust/webui/src/App.test.tsx +++ b/locust/webui/src/App.test.tsx @@ -24,12 +24,4 @@ describe('App', () => { (vi.mocked(authConstants) as any).authArgs = undefined; }); - - it('renders the HTML Report when isReport is true', () => { - vi.mocked(swarmConstants).htmlReportProps = swarmReportMock; - - const { getByText } = renderWithProvider(); - - expect(getByText('Locust Test Report')).toBeTruthy(); - }); }); diff --git a/locust/webui/src/components/FallbackRender/FallbackRender.test.tsx b/locust/webui/src/components/FallbackRender/FallbackRender.test.tsx index 2019ac1fa4..ed0da5bb24 100644 --- a/locust/webui/src/components/FallbackRender/FallbackRender.test.tsx +++ b/locust/webui/src/components/FallbackRender/FallbackRender.test.tsx @@ -4,7 +4,7 @@ import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest'; import App from 'App'; import FallbackRender from 'components/FallbackRender/FallbackRender'; -import * as swarmConstants from 'constants/swarm'; +import * as authConstants from 'constants/auth'; import { renderWithProvider } from 'test/testUtils'; describe('Fallback', () => { @@ -24,7 +24,7 @@ describe('Fallback', () => { it('renders the FallbackRender when something unexpected happens', () => { // break the app - (vi.mocked(swarmConstants) as any).htmlReportProps = {}; + (vi.mocked(authConstants) as any).authArgs = { authProviders: {} }; const { getByText } = renderWithProvider( diff --git a/locust/webui/src/pages/Auth.tsx b/locust/webui/src/pages/Auth.tsx index 693696f33c..bab3e6a5b8 100644 --- a/locust/webui/src/pages/Auth.tsx +++ b/locust/webui/src/pages/Auth.tsx @@ -3,6 +3,7 @@ import { Alert, Box, Button, IconButton, TextField, Typography } from '@mui/mate import CssBaseline from '@mui/material/CssBaseline'; import { ThemeProvider } from '@mui/material/styles'; +import Logo from 'assets/logo.png'; import DarkLightToggle from 'components/Layout/Navbar/DarkLightToggle'; import { THEME_MODE } from 'constants/theme'; import { useSelector } from 'redux/hooks'; @@ -41,7 +42,7 @@ export default function Auth({ authProviders, error, usernamePasswordCallback }: }} > - +