diff --git a/src/App.css b/src/App.css index 62184ea..ef5ee47 100644 --- a/src/App.css +++ b/src/App.css @@ -6,15 +6,17 @@ } html { - background-color: #D13B3B; + background-color: #f5f0e6; } + body { /**background-color: #272745;*/ background-color: #f5f0e6 ; color: white; font-family: "Titillium Web", sans-serif; margin: 0; + min-height: 100%; } button:hover { @@ -82,6 +84,12 @@ button:hover { justify-content: center; } +.no-drivers-message { + color: #000; + width: 100%; + text-align: center; +} + .standing-drivers { display: flex; flex-direction: column; diff --git a/src/App.tsx b/src/App.tsx index 6424a41..bf0ea23 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -141,7 +141,7 @@ function App() { : driversWithStandingsError ? "Could not load drivers." : filteredDrivers.length === 0 - ? "No drivers match your filters." + ?

No drivers match your filters.

: filteredDrivers.map((driver) => ( { expect(screen.getByText('Could not load driver details.')).toBeInTheDocument() }) -test('handles no driver', () => { - render() - expect(screen.getByText('No driver selected.')).toBeInTheDocument() +test('renders nothing when no driver is selected', () => { + const { container } = render() + expect(container).toBeEmptyDOMElement() }) test('shows team loading', () => {