Project

General

Profile

« Previous | Next » 

Revision bf39cd04

Added by Maria Agaphontzev 5 months ago

Fixes #37025 - Navigation should only have 1 item expended

View differences:

webpack/assets/javascripts/react_app/components/Layout/__tests__/Layout.test.js
await act(async () => {
await fireEvent.click(screen.getByText('Hosts'));
});
expect(screen.getByText('Monitor')).toBeVisible();
expect(screen.getByText('Dashboard')).not.toBeVisible();
expect(screen.getByText('All Hosts')).toBeVisible();
expect(screen.getByText('Dashboard')).toBeVisible();
});
});

Also available in: Unified diff